1.21.0 • Published 2 months ago
bingx-api v1.21.0
Bingx API NodeJS Client
This library implements Bingx API for nodejs applications
Getting started
- Install via npm
npm i bingx-api -S
- Initialize Client
import { ApiAccount, BingxApiClient } from 'bingx-api';
const account = new ApiAccount('xxx', 'xxx');
const client = new BingxApiClient();
- Make any requests from api to bingx
const userBalance = await client
.getAccountService()
.getPerpetualSwapAccountAssetInformation();
- Works with sockets
const account = new ApiAccount('xxx', 'xxx');
stream = new BingxAccountSocketStream(account);
stream.heartbeat$.subscribe((v) => {})
stream.listenKeyExpired$.subscribe((v) => {})
stream.accountBalanceAndPositionPush$.subscribe((v) => {})
stream.accountOrderUpdatePushEvent$.subscribe((v) => {})
stream = new BingxMarketSocketStream(account);
stream.subscribe('BTC-USDT@trade');
stream.latestTradeDetail$.subscribe((v) => {})
Features supports
- Account Interface
- Get Perpetual Swap Account Asset Information
- Perpetual Swap Positions
- Get Account Profit and Loss Fund Flow
- Export fund flow
- User fee rate
- Trade Interface
- Trade order test
- Trade order
- Bulk order
- One-Click Close All Positions
- Cancel an Order
- Cancel a Batch of Orders
- Cancel All Orders
- Query all current pending orders
- Query Order
- Query Margin Mode
- Switch Margin Mode
- Query Leverage
- Switch Leverage
- User's Force Orders
- User's History Orders
- Adjust isolated margin
- Query historical transaction orders
- Listen Key
- Generate Listen Key
- Extend Listen Key Validity period
- Delete Listen Key
- Socket API
- Market Data
- Subscribe Market Depth Data
- Subscribe the Latest Trade Detail
- Subscribe K-Line Data
- Account Data
- Listen Key expired push
- Account balance and position update push
- Order update push
- Configuration updates such as leverage and margin mode
- Market Data
1.21.0
2 months ago
1.20.2
3 months ago
1.20.1
3 months ago
1.20.0
3 months ago
1.19.0
3 months ago
1.18.3
3 months ago
1.18.1
4 months ago
1.18.0
4 months ago
1.18.2
4 months ago
1.17.2
4 months ago
1.17.1
6 months ago
1.17.0
6 months ago
1.16.0
6 months ago
1.15.0
6 months ago
1.14.0
7 months ago
1.13.1
7 months ago
1.13.0
7 months ago
1.12.0
7 months ago
1.11.4
7 months ago
1.11.3
7 months ago
1.11.2
7 months ago
1.11.1
7 months ago
1.11.0
7 months ago
1.10.0
7 months ago
1.9.5
7 months ago
1.9.4
7 months ago
1.9.3
7 months ago
1.9.2
7 months ago
1.9.1
7 months ago
1.9.0
7 months ago
1.8.0
7 months ago
1.7.0
7 months ago
1.6.0
7 months ago
1.4.0
7 months ago
1.3.0
7 months ago
1.2.0
7 months ago