Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exchange Info Endpoint #16

Closed
jafri opened this issue Jan 3, 2018 · 3 comments
Closed

Exchange Info Endpoint #16

jafri opened this issue Jan 3, 2018 · 3 comments

Comments

@jafri
Copy link

jafri commented Jan 3, 2018

Hi,

Can we get support for /api/v1/exchangeInfo endpoint that provides information about the LOT_SIZE and other exchange info on every pair.

Thanks

@wannesdemaeght
Copy link

request("https://api.binance.com/api/v1/exchangeInfo", function (error, body, data) {
	var array = JSON.parse(data).symbols
	for (i in array) {
		for (x = 1; x < NumberOfAlts+1; x++) {
			if (array[i].symbol == Market.Binance[x]) {
				Decimal.Amount.Binance[x]	= -Math.log10(array[i].filters[1].stepSize)
				Decimal.Price.Binance[x] 	= -Math.log10(array[i].filters[0].tickSize)
			}
		}
	}
})

@balthazar
Copy link
Member

The exchangeInfo is now availble in the library @wannesdemaeght 🙂

@wannesdemaeght
Copy link

haha, my bad :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants