Skip to content

Latest commit

 

History

History
60 lines (52 loc) · 1.85 KB

File metadata and controls

60 lines (52 loc) · 1.85 KB

Chainlink External Adapter for Binance DEX

Input Params

The following base and quote pair must be taken from this list

Required? Name Description Options Defaults to
base, from, or coin The symbol of the currency to query BTC, ETH, USD
quote, to, or market The symbol of the currency to convert to BTC, ETH, USD
  • endpoint: The path to get data from (optional)

Endpoints

Use the API_ENDPOINT env variable to set the API endpoint to use. This will default to dex-asiapacific.

Network Endpoint
Mainnet dex-asiapacific
dex-european
dex-atlantic
Testnet-Nile testnet-dex-atlantic
testnet-dex-asiapacific

Output

{
  "jobRunID": "1",
  "data": {
    "symbol": "BNB_BUSD-BD1",
    "baseAssetName": "BNB",
    "quoteAssetName": "BUSD-BD1",
    "priceChange": "-0.67720000",
    "priceChangePercent": "-4.1300",
    "prevClosePrice": "15.79610000",
    "lastPrice": "15.71260000",
    "lastQuantity": "5.59400000",
    "openPrice": "16.38980000",
    "highPrice": "16.39630000",
    "lowPrice": "15.71260000",
    "openTime": 1592472051001,
    "closeTime": 1592558451001,
    "firstId": "95085363-0",
    "lastId": "95288334-2",
    "bidPrice": "16.00820000",
    "bidQuantity": "7.91500000",
    "askPrice": "16.13910000",
    "askQuantity": "189.09900000",
    "weightedAvgPrice": "16.25508542",
    "volume": "1941.24500000",
    "quoteVolume": "31555.10329880",
    "count": 163,
    "result": 15.7126
  },
  "result": 15.7126,
  "statusCode": 200
}