get_pairs_by_token

get
Get all pairs by token address

https://api.sushipro.io/?action=get_pairs_by_token
Request
Response
Request
Query Parameters
action
required
string
get_pairs_by_token
token
required
string
The contract address of the requested token.
chainID
optional
integer
Network ID. 1 ( Ethereum ) by default.
Response
200: OK
Example : https://api2.sushipro.io/?chainID=1&action=get_pairs_by_token&token=0xe9f84de264e91529af07fa2c746e934397810334
[
{
"action": "get_pairs_by_token",
"chain": "Ethereum",
"number_of_results": 3,
"token": "0xe9f84de264e91529af07fa2c746e934397810334"
},
[
{
"Pair_ID": "0x255ed38500577a0c85cf8108c0097da80a76c5e1",
"Token_1_contract": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",
"Token_1_symbol": "SUSHI",
"Token_1_name": "SushiToken",
"Token_1_reserve": 237.38476248766318,
"Token_1_price": 1425.1793550357681,
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_2_symbol": "SAK3",
"Token_2_name": "Sake",
"Token_2_reserve": 0.16656483385679233,
"Token_2_price": 0.0007016660720396856
},
{
"Pair_ID": "0xd45afa3649e57a961c001b935ded1c79d81a9d23",
"Token_1_contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"Token_1_symbol": "USDC",
"Token_1_name": "USD Coin",
"Token_1_reserve": 114634.023631,
"Token_1_price": 10115.360582669226,
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_2_symbol": "SAK3",
"Token_2_name": "Sake",
"Token_2_reserve": 11.332668044222162,
"Token_2_price": 0.00009885955046558721
},
{
"Pair_ID": "0xfed8e81bd0fba2664e9bd9abfaffb77828f959b7",
"Token_1_contract": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"Token_1_symbol": "WETH",
"Token_1_name": "Wrapped Ether",
"Token_1_reserve": 1.0173282469510727,
"Token_1_price": 4.904175232170735,
"Token_2_contract": "0xe9f84de264e91529af07fa2c746e934397810334",
"Token_2_symbol": "SAK3",
"Token_2_name": "Sake",
"Token_2_reserve": 0.20744125133978394,
"Token_2_price": 0.203907885150623
}
]
]
404: Not Found
[
{
"action": "get_pairs_by_token",
"chain": "Ethereum",
"number_of_results": 0,
"token": "0xe9f84de264e91529af07fa2c746e93439810334",
"error": "No pairs found for this token"
}
]

‚Äč