Spot trading symbols
Function Name:
getTradingSymbolsSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getTradingSymbolsSpot(exchange, options) {
try {
let result = await exchange.getTradingSymbolsSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getTradingSymbolsSpot(myBingxExchange);
Recent Trades List
Function Name:
getRecentTradesListSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getRecentTradesListSpot(exchange, options) {
try {
let result = await exchange.getRecentTradesListSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getRecentTradesListSpot(myBingxExchange, {
symbol: "<string>"
});
Order Book
Function Name:
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getOrderBookSpot(exchange, options) {
try {
let result = await exchange.getOrderBookSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getOrderBookSpot(myBingxExchange, {
symbol: "<string>"
});
Kline/Candlestick Data
Function Name:
getKlineCandlestickInfoSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getKlineCandlestickInfoSpot(exchange, options) {
try {
let result = await exchange.getKlineCandlestickInfoSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getKlineCandlestickInfoSpot(myBingxExchange);
24hr Ticker Price Change Statistics
Function Name:
get24HrPriceChangeInfoSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function get24HrPriceChangeInfoSpot(exchange, options) {
try {
let result = await exchange.get24HrPriceChangeInfoSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await get24HrPriceChangeInfoSpot(myBingxExchange);
Order Book aggregation
Function Name:
getOrderBookAggregationSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getOrderBookAggregationSpot(exchange, options) {
try {
let result = await exchange.getOrderBookAggregationSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getOrderBookAggregationSpot(myBingxExchange);
Symbol Price Ticker
Function Name:
getSymbolPriceTickerSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getSymbolPriceTickerSpot(exchange, options) {
try {
let result = await exchange.getSymbolPriceTickerSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getSymbolPriceTickerSpot(myBingxExchange);
Symbol Order Book Ticker
Function Name:
getSymbolOrderBookTickerSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getSymbolOrderBookTickerSpot(exchange, options) {
try {
let result = await exchange.getSymbolOrderBookTickerSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getSymbolOrderBookTickerSpot(myBingxExchange);
Historical K-line
Function Name:
getHistoricalKlineSpot()
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getHistoricalKlineSpot(exchange, options) {
try {
let result = await exchange.getHistoricalKlineSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getHistoricalKlineSpot(myBingxExchange);
Old Trade Lookup
Function Name:
Usage:
import { createExchange } from "./exchanges/exchange.js";
let myBingxExchange = createExchange({
exchange: "bingx",
authenticate: "false",
label: "bingx"
});
async function getOldTradeSpot(exchange, options) {
try {
let result = await exchange.getOldTradeSpot(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
let result = await getOldTradeSpot(myBingxExchange, {
symbol: "<string>"
});