Get exchange rate

Provide the trade rate between two tokens, the trade rate update rate is 5-10s

Obtain exchange rate basic information port

POST /petty/getCoinRate

<Description of the endpoint>

Request Headers

Name
Value

Content-Type

application/json

Request Body

{
    "fromCoinContact": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
    "toCoinContact": "0x2170ed0880ac9a755fd29b2688956bd959",
    "fromCoinNetwork": "ETH",
    "toCoinNetwork": "BSC",
    "depositCoinAmt": "0.1"
}

Request parameter Description

parameter
Type
Required
说明

fromCoinContact

String

true

fromCoinContact

toCoinContact

String

true

toCoinContact

fromCoinNetwork

String

true

fromCoinNetwork

toCoinNetwork

String

true

toCoinNetwork

depositCoinAmt

String

true

depositCoinAmt

source

String

true

source

Response

{
    "resCode": "800",
    "resMsg": "成功",
    "data": {
        "instantRate": "1",
        "depositMin": "0.001",
        "depositMax": "0.5",
        "bridgeFee": "0.0005",
        "chainFee": "0.000005",
        "arrivalTime": "30"
    }
}

Provide the trade rate between two tokens, the trade rate update rate is 5-10s​

Response Parameter Description

field
data type
remarks

instantRate

String

"Exchange rate of received currency/deposited currency accurate to ten decimal places"

depositMin

String

Accurate to six decimal places

depositMax

String

BitcoiAccurate to six decimal places

bridgeFee

String

Accurate to six decimal places

chainFee

String

Accurate to six decimal places

arrivalTime

String

Estimated exchange time (in seconds)

Last updated