probit-socket-sdk
v0.0.1
Published
Software Development Kit designated for Probit Global Exchange
Downloads
7
Readme
ProbitSocketSDK-node
Installation
npm install ProBitSDK
How to Use
- Enter your API ID and Secret values as shown below.
API_CLIENT_ID = '12345678'
API_CLIENT_SECRET = '1a2b3c4d5e6f7g8h'
- Call the constructor of ProbitSDK.
const sdk: ProBitSDK = new ProBitSDK(API_CLIENT_ID, API_CLIENT_SECRET);
- You can call the functions below. More will be added if needed
await sdk.connectMyOrderBook(filter, market_id);
await sdk.connectMyBalance();
await sdk.connectOpenOrder();
In the case of filter, you can set it as follows.
- order_books_l0
- order_books_l1
- order_books_l2
- order_books_l3
- order_books_l4
- ticker
- recent_trades
For market_id, an example would look like this: (ex, BTC-USDT)
See test/test.ts for a detailed example.