Binance

getTokenPrice()

Get the price of a specific token pair

Signature

getTokenPrice(symbol: string): number | undefined

Example

const price = dataSource.get("binance").getTokenPrice("BTCUSDT");
// 25052.25

Last updated