adshao / go-binance

A Go SDK for Binance API
MIT License
1.49k stars 661 forks source link

Can't find a way to call /api/v3/ticker/price with multiple symbols #380

Closed blarsy closed 4 weeks ago

blarsy commented 2 years ago

I am struggling to find how to gather prices of multiple symbols (not all of them at once, as happens when providing no value to the "symbol" Api parameter). I did not find a related Github issue either. As per https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#symbol-price-ticker, it is possible on the Binance API's /api/v3/ticker/price endpoint through a "symbols" parameter, but I don't find it in go-binance.

Am I missing something ?

adshao commented 2 years ago

I am struggling to find how to gather prices of multiple symbols (not all of them at once, as happens when providing no value to the "symbol" Api parameter). I did not find a related Github issue either. As per https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#symbol-price-ticker, it is possible on the Binance API's /api/v3/ticker/price endpoint through a "symbols" parameter, but I don't find it in go-binance.

Am I missing something ?

Hi @blarsy , symbols is a new parameter introduced in spot v3 API, it's appreciated that if you could submit a pr to add it, or I'll add it later.

blarsy commented 2 years ago

Ok, will do. It will be my first PR, but it's never too late to increase one's awesomeness ;-)

blarsy commented 2 years ago

Oops, wrong button :-/

sleeyax commented 5 months ago

I see the PR has been merged. This issue should therefore be closed.

xyq-c-cpp commented 4 weeks ago

completed, close this.