Home » Java » How to use Binance API, simple GET price by ticker

How to use Binance API, simple GET price by ticker

Posted by: admin December 28, 2021 Leave a comment


I would like to get only one pair from the response. And I can’t really understand how I should pass my parameter.

Instructions say:

Symbol price ticker

GET /api/v3/ticker/price

Latest price for a symbol or symbols.

Weight: 1 for a single symbol; 2 when the symbol parameter is omitted


Name Type Mandatory Description

symbol STRING NO –

If the symbol is not sent, prices for all symbols will be returned in an array."

I’m able to get all symbols in the response body, but can’t get a single one.
I have already tried (in Postman) these endpoints:

  1. https://api.binance.com/api/v3/ticker/price/btcusdt
  2. https://api.binance.com/api/v3/ticker/price/symbol=btcusdt
  3. https://api.binance.com/api/v3/ticker/price/?symbol=btcusdt

Here is the link to entire API:

So, which endpoint is correct? postman result

  1. https://api.binance.com/api/v3/ticker/price/?symbol=btcusdt

You must use Query without /

and Binance’s /api/v3/ticker/price endpoint need symbol query as Upper case.

so you must request as below