get_pair

get
Get data by pair address

https://api2.sushipro.io/?action=get_pair
Request
Response
Request
Query Parameters
action
required
string
get_pair
pair
required
string
The contract address of the requested pair.
chainID
optional
integer
Network ID. 1 ( Ethereum ) by default
Response
200: OK
Example : https://api2.sushipro.io/?chainID=1&action=get_pair&pair=0xceff51756c56ceffca006cd410b03ffc46dd3a58
[
{
"Token_1_contract": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"Token_1_symbol": "WBTC",
"Token_1_name": "Wrapped BTC",
"Token_1_reserve": 6786.39830856,
"Token_1_price": 0.06287991271842394,
"Token_2_contract": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"Token_2_symbol": "WETH",
"Token_2_name": "Wrapped Ether",
"Token_2_reserve": 107926.33156075567,
"Token_2_price": 15.903329962908774
}
]
404: Not Found
{
"action": "get_pair",
"chain": "Ethereum",
"error": "No data available"
}

‚Äč