Open enriquepiatti opened 3 years ago
This work for me:
const getLongShortRatio = async (symbol) => {
const url = 'https://fapi.binance.com/futures/data/globalLongShortAccountRatio';
return new Promise((resolve, reject) => {
binance.signedRequest(url, {symbol: 'BTCUSDT',period: '5m'}, (error, data) => {
if (error) {
reject(error);
} else {
resolve(data);
}
});
});
Is possible to call for example this method?
https://binance-docs.github.io/apidocs/futures/en/#top-trader-long-short-ratio-positions
it works fine with a simple request like:
https://www.binance.com/futures/data/globalLongShortAccountRatio?symbol=BTCUSDT&period=5m