GET /api/quote

Returns the current swap price data for a given sell & buy token.

Request

Response

Result is returned in the result field, and if there's any error message, it will be returned in the error field. result contents are defined as follows:

Example

Request: GET

https://api.nusa.finance/api/quote?sellToken=BTCB&buyToken=0xe9e7cea3dedca5984780bafc599bd69add087d56

Response

{
    "result": {
        "network": "bsc",
        "sell_token": {
            "name": "Binance-Peg BTCB Token",
            "symbol": "BTCB",
            "decimals": "18",
            "address": "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c"
        },
        "buy_token": {
            "name": "Binance-Peg BUSD Token",
            "symbol": "BUSD",
            "decimals": "18",
            "address": "0xe9e7cea3dedca5984780bafc599bd69add087d56"
        },
        "price": "22868.882110165316"
    }
}

Last updated