Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
26
rated 0 times [  32] [ 6]  / answers: 1 / hits: 90165  / 5 Years ago, sat, april 6, 2019, 12:00:00

I am working on a project relevant to crypto trading where I need to select a market pair of Binance Exchange and based on the pair choice I have to show various results like current price, 24 Hr price change, 24 Hr Volume and last 10 trade history of that market pair. I have gone through Binance Rest API Docs: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md ,and can't find the endpoint which can help me retrieve a list of market pairs.
Is there any documentation I am unaware about?



Thanks.


More From » reactjs

 Answers
25

You are looking for the /exchangeInfo public endpoint.



See more at https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md :



Exchange information



GET /api/v1/exchangeInfo



Current exchange trading rules and symbol information



Resulting symbols array of all coin pairs:



...
symbols: [{
symbol: ETHBTC,
status: TRADING,
baseAsset: ETH,
baseAssetPrecision: 8,
quoteAsset: BTC,
quotePrecision: 8,
orderTypes: [
// These are defined in the `ENUM definitions` section under `Order types (orderTypes)`.
// All orderTypes are optional.
],
icebergAllowed: false,
filters: [
// There are defined in the `Filters` section.
// All filters are optional.
]
}]
...

[#52295] Sunday, March 31, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cadendericki

Total Points: 482
Total Questions: 109
Total Answers: 103

Location: Ecuador
Member since Thu, Jun 4, 2020
4 Years ago
;