bybit-api 2.3.1 → 2.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -152
- package/lib/account-asset-client.d.ts +42 -0
- package/lib/account-asset-client.js +104 -0
- package/lib/account-asset-client.js.map +1 -0
- package/lib/constants/enum.d.ts +18 -0
- package/lib/constants/enum.js +18 -0
- package/lib/constants/enum.js.map +1 -1
- package/lib/copy-trading-client.d.ts +54 -0
- package/lib/copy-trading-client.js +112 -0
- package/lib/copy-trading-client.js.map +1 -0
- package/lib/index.d.ts +7 -1
- package/lib/index.js +7 -1
- package/lib/index.js.map +1 -1
- package/lib/inverse-client.d.ts +5 -13
- package/lib/inverse-client.js +6 -13
- package/lib/inverse-client.js.map +1 -1
- package/lib/inverse-futures-client.d.ts +4 -12
- package/lib/inverse-futures-client.js +5 -12
- package/lib/inverse-futures-client.js.map +1 -1
- package/lib/linear-client.d.ts +4 -12
- package/lib/linear-client.js +5 -12
- package/lib/linear-client.js.map +1 -1
- package/lib/spot-client-v3.d.ts +105 -0
- package/lib/spot-client-v3.js +222 -0
- package/lib/spot-client-v3.js.map +1 -0
- package/lib/spot-client.d.ts +5 -12
- package/lib/spot-client.js +6 -12
- package/lib/spot-client.js.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/types/request/account-asset.d.ts +76 -0
- package/lib/types/request/account-asset.js +3 -0
- package/lib/types/request/account-asset.js.map +1 -0
- package/lib/types/request/copy-trading.d.ts +47 -0
- package/lib/types/request/copy-trading.js +3 -0
- package/lib/types/request/copy-trading.js.map +1 -0
- package/lib/types/request/index.d.ts +7 -0
- package/lib/types/request/index.js +7 -0
- package/lib/types/request/index.js.map +1 -1
- package/lib/types/request/spot.d.ts +72 -0
- package/lib/types/{spot.js → request/spot.js} +0 -0
- package/lib/types/{spot.js.map → request/spot.js.map} +1 -1
- package/lib/types/request/unified-margin.d.ts +223 -0
- package/lib/types/request/unified-margin.js +3 -0
- package/lib/types/request/unified-margin.js.map +1 -0
- package/lib/types/request/usdc-options.d.ts +119 -0
- package/lib/types/request/usdc-options.js +3 -0
- package/lib/types/request/usdc-options.js.map +1 -0
- package/lib/types/request/usdc-perp.d.ts +86 -0
- package/lib/types/request/usdc-perp.js +3 -0
- package/lib/types/request/usdc-perp.js.map +1 -0
- package/lib/types/request/usdc-shared.d.ts +29 -0
- package/lib/types/request/usdc-shared.js +3 -0
- package/lib/types/request/usdc-shared.js.map +1 -0
- package/lib/types/shared.d.ts +16 -5
- package/lib/types/websockets.d.ts +40 -0
- package/lib/types/websockets.js +3 -0
- package/lib/types/websockets.js.map +1 -0
- package/lib/unified-margin-client.d.ts +137 -0
- package/lib/unified-margin-client.js +269 -0
- package/lib/unified-margin-client.js.map +1 -0
- package/lib/usdc-option-client.d.ts +100 -0
- package/lib/usdc-option-client.js +186 -0
- package/lib/usdc-option-client.js.map +1 -0
- package/lib/usdc-perpetual-client.d.ts +88 -0
- package/lib/usdc-perpetual-client.js +181 -0
- package/lib/usdc-perpetual-client.js.map +1 -0
- package/lib/util/BaseRestClient.d.ts +15 -2
- package/lib/util/BaseRestClient.js +92 -34
- package/lib/util/BaseRestClient.js.map +1 -1
- package/lib/util/WsStore.d.ts +28 -8
- package/lib/util/WsStore.js +11 -3
- package/lib/util/WsStore.js.map +1 -1
- package/lib/util/index.d.ts +5 -0
- package/lib/util/index.js +18 -0
- package/lib/util/index.js.map +1 -0
- package/lib/{logger.d.ts → util/logger.d.ts} +0 -0
- package/lib/{logger.js → util/logger.js} +0 -0
- package/lib/util/logger.js.map +1 -0
- package/lib/util/requestUtils.d.ts +5 -1
- package/lib/util/requestUtils.js +9 -20
- package/lib/util/requestUtils.js.map +1 -1
- package/lib/util/websocket-util.d.ts +8 -0
- package/lib/util/websocket-util.js +39 -0
- package/lib/util/websocket-util.js.map +1 -0
- package/lib/websocket-client.d.ts +6 -58
- package/lib/websocket-client.js +63 -114
- package/lib/websocket-client.js.map +1 -1
- package/package.json +1 -1
- package/lib/logger.js.map +0 -1
- package/lib/types/spot.d.ts +0 -30
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SpotClientV3 = void 0;
|
|
16
|
+
const util_1 = require("./util");
|
|
17
|
+
const BaseRestClient_1 = __importDefault(require("./util/BaseRestClient"));
|
|
18
|
+
/**
|
|
19
|
+
* REST API client for newer Spot V3 APIs.
|
|
20
|
+
*/
|
|
21
|
+
class SpotClientV3 extends BaseRestClient_1.default {
|
|
22
|
+
getClientType() {
|
|
23
|
+
// Follows the same authentication mechanism as other v3 APIs (e.g. USDC)
|
|
24
|
+
return util_1.REST_CLIENT_TYPE_ENUM.v3;
|
|
25
|
+
}
|
|
26
|
+
fetchServerTime() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const res = yield this.getServerTime();
|
|
29
|
+
return Number(res.time_now);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* Market Data Endpoints
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
/** Get all symbols */
|
|
38
|
+
getSymbols() {
|
|
39
|
+
return this.get('/spot/v3/public/symbols');
|
|
40
|
+
}
|
|
41
|
+
/** Get orderbook for symbol */
|
|
42
|
+
getOrderBook(symbol, limit) {
|
|
43
|
+
return this.get('/spot/v3/public/quote/depth', { symbol, limit });
|
|
44
|
+
}
|
|
45
|
+
/** Get merged orderbook for symbol */
|
|
46
|
+
getMergedOrderBook(symbol, scale, limit) {
|
|
47
|
+
return this.get('/spot/v3/public/quote/depth/merged', {
|
|
48
|
+
symbol,
|
|
49
|
+
scale,
|
|
50
|
+
limit,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/** Get public trading records (raw trades) */
|
|
54
|
+
getTrades(symbol, limit) {
|
|
55
|
+
return this.get('/spot/v3/public/quote/trades', { symbol, limit });
|
|
56
|
+
}
|
|
57
|
+
/** Get candles/klines */
|
|
58
|
+
getCandles(symbol, interval, limit, startTime, endTime) {
|
|
59
|
+
return this.get('/spot/v3/public/quote/kline', {
|
|
60
|
+
symbol,
|
|
61
|
+
interval,
|
|
62
|
+
limit,
|
|
63
|
+
startTime,
|
|
64
|
+
endTime,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/** Get latest information for symbol (24hr ticker) */
|
|
68
|
+
get24hrTicker(symbol) {
|
|
69
|
+
return this.get('/spot/v3/public/quote/ticker/24hr', { symbol });
|
|
70
|
+
}
|
|
71
|
+
/** Get last traded price */
|
|
72
|
+
getLastTradedPrice(symbol) {
|
|
73
|
+
return this.get('/spot/v3/public/quote/ticker/price', { symbol });
|
|
74
|
+
}
|
|
75
|
+
/** Get best bid/ask price */
|
|
76
|
+
getBestBidAskPrice(symbol) {
|
|
77
|
+
return this.get('/spot/v3/public/quote/ticker/bookTicker', { symbol });
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* Account Data Endpoints
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
/** -> Order API */
|
|
85
|
+
/** Create order */
|
|
86
|
+
submitOrder(params) {
|
|
87
|
+
return this.postPrivate('/spot/v3/private/order', params);
|
|
88
|
+
}
|
|
89
|
+
/** Get active order state */
|
|
90
|
+
getOrder(params) {
|
|
91
|
+
return this.getPrivate('/spot/v3/private/order', params);
|
|
92
|
+
}
|
|
93
|
+
/** Cancel order */
|
|
94
|
+
cancelOrder(params) {
|
|
95
|
+
return this.postPrivate('/spot/v3/private/cancel-order', params);
|
|
96
|
+
}
|
|
97
|
+
/** Batch cancel orders */
|
|
98
|
+
cancelOrderBatch(params) {
|
|
99
|
+
const orderTypes = params.orderTypes
|
|
100
|
+
? params.orderTypes.join(',')
|
|
101
|
+
: undefined;
|
|
102
|
+
return this.postPrivate('/spot/v3/private/cancel-orders', Object.assign(Object.assign({}, params), { orderTypes }));
|
|
103
|
+
}
|
|
104
|
+
/** Batch cancel up to 100 orders by ID */
|
|
105
|
+
cancelOrderBatchIDs(orderIds) {
|
|
106
|
+
const orderIdsCsv = orderIds.join(',');
|
|
107
|
+
return this.postPrivate('/spot/v3/private/cancel-orders-by-ids', {
|
|
108
|
+
orderIds: orderIdsCsv,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/** Get open orders */
|
|
112
|
+
getOpenOrders(symbol, orderId, limit) {
|
|
113
|
+
return this.getPrivate('/spot/v3/private/open-orders', {
|
|
114
|
+
symbol,
|
|
115
|
+
orderId,
|
|
116
|
+
limit,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/** Get order history */
|
|
120
|
+
getPastOrders(symbol, orderId, limit) {
|
|
121
|
+
return this.getPrivate('/spot/v3/private/history-orders', {
|
|
122
|
+
symbol,
|
|
123
|
+
orderId,
|
|
124
|
+
limit,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Get your trade history.
|
|
129
|
+
* If startTime is not specified, you can only query for records in the last 7 days.
|
|
130
|
+
* If you want to query for records older than 7 days, startTime is required.
|
|
131
|
+
*/
|
|
132
|
+
getMyTrades(params) {
|
|
133
|
+
return this.getPrivate('/spot/v3/private/my-trades', params);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* Wallet Data Endpoints
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
/** Get Wallet Balance */
|
|
141
|
+
getBalances() {
|
|
142
|
+
return this.getPrivate('/spot/v3/private/account');
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* API Data Endpoints
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
getServerTime() {
|
|
150
|
+
return this.get('/v2/public/time');
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* Leveraged Token Endpoints
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
/** Get all asset infos */
|
|
158
|
+
getLeveragedTokenAssetInfos(ltCode) {
|
|
159
|
+
return this.get('/spot/v3/public/infos', { ltCode });
|
|
160
|
+
}
|
|
161
|
+
/** Get leveraged token market info */
|
|
162
|
+
getLeveragedTokenMarketInfo(ltCode) {
|
|
163
|
+
return this.getPrivate('/spot/v3/private/reference', { ltCode });
|
|
164
|
+
}
|
|
165
|
+
/** Purchase leveraged token */
|
|
166
|
+
purchaseLeveragedToken(ltCode, ltAmount, serialNo) {
|
|
167
|
+
return this.postPrivate('/spot/v3/private/purchase', {
|
|
168
|
+
ltCode,
|
|
169
|
+
ltAmount,
|
|
170
|
+
serialNo,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/** Redeem leveraged token */
|
|
174
|
+
redeemLeveragedToken(ltCode, ltAmount, serialNo) {
|
|
175
|
+
return this.postPrivate('/spot/v3/private/redeem', {
|
|
176
|
+
ltCode,
|
|
177
|
+
ltAmount,
|
|
178
|
+
serialNo,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/** Get leveraged token purchase/redemption history */
|
|
182
|
+
getLeveragedTokenPRHistory(params) {
|
|
183
|
+
return this.getPrivate('/spot/v3/private/record', params);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* Cross Margin Trading Endpoints
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
/** Borrow margin loan */
|
|
191
|
+
borrowCrossMarginLoan(coin, qty) {
|
|
192
|
+
return this.postPrivate('/spot/v3/private/cross-margin-loan', {
|
|
193
|
+
coin,
|
|
194
|
+
qty,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/** Repay margin loan */
|
|
198
|
+
repayCrossMarginLoan(coin, qty) {
|
|
199
|
+
return this.postPrivate('/spot/v3/private/cross-margin-repay', {
|
|
200
|
+
coin,
|
|
201
|
+
qty,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/** Query borrowing info */
|
|
205
|
+
getCrossMarginBorrowingInfo(params) {
|
|
206
|
+
return this.getPrivate('/spot/v3/private/cross-margin-orders', params);
|
|
207
|
+
}
|
|
208
|
+
/** Query account info */
|
|
209
|
+
getCrossMarginAccountInfo() {
|
|
210
|
+
return this.getPrivate('/spot/v3/private/cross-margin-account');
|
|
211
|
+
}
|
|
212
|
+
/** Query interest & quota */
|
|
213
|
+
getCrossMarginInterestQuota(coin) {
|
|
214
|
+
return this.getPrivate('/spot/v3/private/cross-margin-loan-info', { coin });
|
|
215
|
+
}
|
|
216
|
+
/** Query repayment history */
|
|
217
|
+
getCrossMarginRepaymentHistory(params) {
|
|
218
|
+
return this.getPrivate('/spot/v3/private/cross-margin-repay-history', params);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
exports.SpotClientV3 = SpotClientV3;
|
|
222
|
+
//# sourceMappingURL=spot-client-v3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spot-client-v3.js","sourceRoot":"","sources":["../src/spot-client-v3.ts"],"names":[],"mappings":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SACT,CAAC,CAAC;IACL,CAAC;IAED,sDAAsD;IACtD,0BAA0B,CACxB,MAA2C;QAE3C,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IAEH,yBAAyB;IACzB,qBAAqB,CACnB,IAAY,EACZ,GAAW;QAEX,OAAO,IAAI,CAAC,WAAW,CAAC,oCAAoC,EAAE;YAC5D,IAAI;YACJ,GAAG;SACJ,CAAC,CAAC;IACL,CAAC;IAED,wBAAwB;IACxB,oBAAoB,CAAC,IAAY,EAAE,GAAW;QAC5C,OAAO,IAAI,CAAC,WAAW,CAAC,qCAAqC,EAAE;YAC7D,IAAI;YACJ,GAAG;SACJ,CAAC,CAAC;IACL,CAAC;IAED,2BAA2B;IAC3B,2BAA2B,CACzB,MAA4C;QAE5C,OAAO,IAAI,CAAC,UAAU,CAAC,sCAAsC,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IAED,yBAAyB;IACzB,yBAAyB;QACvB,OAAO,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;IAClE,CAAC;IAED,6BAA6B;IAC7B,2BAA2B,CAAC,IAAY;QACtC,OAAO,IAAI,CAAC,UAAU,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,8BAA8B;IAC9B,8BAA8B,CAC5B,MAA+C;QAE/C,OAAO,IAAI,CAAC,UAAU,CACpB,6CAA6C,EAC7C,MAAM,CACP,CAAC;IACJ,CAAC;CACF;AAxRD,oCAwRC"}
|
package/lib/spot-client.d.ts
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
1
|
import { NewSpotOrder, APIResponse, KlineInterval, OrderSide, OrderTypeSpot, SpotBalances, SpotLastPrice, SpotOrderQueryById, SpotSymbolInfo } from './types';
|
|
3
2
|
import BaseRestClient from './util/BaseRestClient';
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use SpotV3Client instead, which leverages the newer v3 APIs
|
|
5
|
+
* REST API client for Spot APIs (v1)
|
|
6
|
+
*/
|
|
5
7
|
export declare class SpotClient extends BaseRestClient {
|
|
6
|
-
|
|
7
|
-
* @public Creates an instance of the Spot REST API client.
|
|
8
|
-
*
|
|
9
|
-
* @param {string} key - your API key
|
|
10
|
-
* @param {string} secret - your API secret
|
|
11
|
-
* @param {boolean} [useLivenet=false]
|
|
12
|
-
* @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity
|
|
13
|
-
* @param {AxiosRequestConfig} [requestOptions={}] HTTP networking options for axios
|
|
14
|
-
*/
|
|
15
|
-
constructor(key?: string | undefined, secret?: string | undefined, useLivenet?: boolean, restClientOptions?: RestClientOptions, requestOptions?: AxiosRequestConfig);
|
|
8
|
+
getClientType(): "spot";
|
|
16
9
|
fetchServerTime(): Promise<number>;
|
|
17
10
|
getServerTime(): Promise<number>;
|
|
18
11
|
/**
|
package/lib/spot-client.js
CHANGED
|
@@ -15,19 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.SpotClient = void 0;
|
|
16
16
|
const BaseRestClient_1 = __importDefault(require("./util/BaseRestClient"));
|
|
17
17
|
const requestUtils_1 = require("./util/requestUtils");
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use SpotV3Client instead, which leverages the newer v3 APIs
|
|
20
|
+
* REST API client for Spot APIs (v1)
|
|
21
|
+
*/
|
|
18
22
|
class SpotClient extends BaseRestClient_1.default {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*
|
|
22
|
-
* @param {string} key - your API key
|
|
23
|
-
* @param {string} secret - your API secret
|
|
24
|
-
* @param {boolean} [useLivenet=false]
|
|
25
|
-
* @param {RestClientOptions} [restClientOptions={}] options to configure REST API connectivity
|
|
26
|
-
* @param {AxiosRequestConfig} [requestOptions={}] HTTP networking options for axios
|
|
27
|
-
*/
|
|
28
|
-
constructor(key, secret, useLivenet = false, restClientOptions = {}, requestOptions = {}) {
|
|
29
|
-
super(key, secret, requestUtils_1.getRestBaseUrl(useLivenet, restClientOptions), restClientOptions, requestOptions, requestUtils_1.REST_CLIENT_TYPE_ENUM.spot);
|
|
30
|
-
return this;
|
|
23
|
+
getClientType() {
|
|
24
|
+
return requestUtils_1.REST_CLIENT_TYPE_ENUM.spot;
|
|
31
25
|
}
|
|
32
26
|
fetchServerTime() {
|
|
33
27
|
return this.getServerTime();
|
package/lib/spot-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spot-client.js","sourceRoot":"","sources":["../src/spot-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"spot-client.js","sourceRoot":"","sources":["../src/spot-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAWA,2EAAmD;AACnD,sDAAyE;AAEzE;;;GAGG;AACH,MAAa,UAAW,SAAQ,wBAAc;IAC5C,aAAa;QACX,OAAO,oCAAqB,CAAC,IAAI,CAAC;IACpC,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAEK,aAAa;;YACjB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YAC5C,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC;QAC/B,CAAC;KAAA;IAED;;;;QAII;IAEJ,UAAU;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,YAAY,CAAC,MAAc,EAAE,KAAc;QACzC,OAAO,IAAI,CAAC,GAAG,CAAC,sBAAsB,EAAE;YACtC,MAAM;YACN,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAED,kBAAkB,CAChB,MAAc,EACd,KAAc,EACd,KAAc;QAEd,OAAO,IAAI,CAAC,GAAG,CAAC,6BAA6B,EAAE;YAC7C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G,CAAC;YAC7B,CAAC,CAAC,SAAS,CAAC;QAEd,OAAO,IAAI,CAAC,aAAa,CAAC,0BAA0B,kCAC/C,MAAM,KACT,UAAU,IACV,CAAC;IACL,CAAC;IAED,aAAa,CACX,MAAe,EACf,OAAgB,EAChB,KAAc;QAEd,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,EAAE;YAC7C,MAAM;YACN,OAAO;YACP,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CACX,MAAe,EACf,OAAgB,EAChB,KAAc;QAEd,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,EAAE;YAChD,MAAM;YACN,OAAO;YACP,KAAK;SACN,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CACT,MAAe,EACf,KAAc,EACd,MAAe,EACf,IAAa;QAEb,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE;YAC1C,MAAM;YACN,KAAK;YACL,MAAM;YACN,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IAEH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC7C,CAAC;CACF;AAjKD,gCAiKC"}
|
package/lib/types/index.d.ts
CHANGED
package/lib/types/index.js
CHANGED
|
@@ -13,5 +13,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./response"), exports);
|
|
14
14
|
__exportStar(require("./request"), exports);
|
|
15
15
|
__exportStar(require("./shared"), exports);
|
|
16
|
-
__exportStar(require("./
|
|
16
|
+
__exportStar(require("./websockets"), exports);
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
package/lib/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare type TransferAccountType = 'CONTRACT' | 'SPOT' | 'INVESTMENT' | 'OPTION' | 'UNIFIED';
|
|
2
|
+
export declare type TransferType = 'IN' | 'OUT';
|
|
3
|
+
export declare type TransferStatus = 'SUCCESS' | 'PENDING' | 'FAILED';
|
|
4
|
+
export declare type PageDirection = 'Prev' | 'Next';
|
|
5
|
+
export interface InternalTransferRequest {
|
|
6
|
+
transfer_id: string;
|
|
7
|
+
coin: string;
|
|
8
|
+
amount: string;
|
|
9
|
+
from_account_type: TransferAccountType;
|
|
10
|
+
to_account_type: TransferAccountType;
|
|
11
|
+
}
|
|
12
|
+
export interface SubAccountTransferRequest {
|
|
13
|
+
transfer_id: string;
|
|
14
|
+
coin: string;
|
|
15
|
+
amount: string;
|
|
16
|
+
sub_user_id: string;
|
|
17
|
+
type: TransferType;
|
|
18
|
+
}
|
|
19
|
+
export interface TransferQueryRequest {
|
|
20
|
+
transfer_id?: string;
|
|
21
|
+
coin?: string;
|
|
22
|
+
status?: TransferStatus;
|
|
23
|
+
start_time?: number;
|
|
24
|
+
end_time?: number;
|
|
25
|
+
direction?: PageDirection;
|
|
26
|
+
limit?: number;
|
|
27
|
+
cursor?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface EnableUniversalTransferRequest {
|
|
30
|
+
/** A comma-separated list of subaccount UIDs, for example "123,45,14,26,46" */
|
|
31
|
+
transferable_sub_ids?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface UniversalTransferRequest {
|
|
34
|
+
transfer_id: string;
|
|
35
|
+
coin: string;
|
|
36
|
+
amount: string;
|
|
37
|
+
from_member_id: string;
|
|
38
|
+
to_member_id: string;
|
|
39
|
+
from_account_type: TransferAccountType;
|
|
40
|
+
to_account_type: TransferAccountType;
|
|
41
|
+
}
|
|
42
|
+
export interface SupportedDepositListRequest {
|
|
43
|
+
coin?: string;
|
|
44
|
+
chain?: string;
|
|
45
|
+
page_index?: number;
|
|
46
|
+
page_size?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface DepositRecordsRequest {
|
|
49
|
+
start_time?: number;
|
|
50
|
+
end_time?: number;
|
|
51
|
+
coin?: string;
|
|
52
|
+
cursor?: string;
|
|
53
|
+
direction?: PageDirection;
|
|
54
|
+
limit?: number;
|
|
55
|
+
}
|
|
56
|
+
export interface WithdrawalRecordsRequest {
|
|
57
|
+
withdraw_id?: number;
|
|
58
|
+
start_time?: number;
|
|
59
|
+
end_time?: number;
|
|
60
|
+
coin?: string;
|
|
61
|
+
cursor?: string;
|
|
62
|
+
direction?: PageDirection;
|
|
63
|
+
limit?: number;
|
|
64
|
+
}
|
|
65
|
+
export interface AccountAssetInformationRequest {
|
|
66
|
+
/** Account type. Default value: ACCOUNT_TYPE_SPOT */
|
|
67
|
+
account_type?: string;
|
|
68
|
+
coin?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface WithdrawalRequest {
|
|
71
|
+
address: string;
|
|
72
|
+
amount: string;
|
|
73
|
+
coin: string;
|
|
74
|
+
chain: string;
|
|
75
|
+
tag?: string;
|
|
76
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-asset.js","sourceRoot":"","sources":["../../../src/types/request/account-asset.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OrderSide } from '../shared';
|
|
2
|
+
import { USDCOrderType } from './usdc-shared';
|
|
3
|
+
export interface CopyTradingOrderRequest {
|
|
4
|
+
side: OrderSide;
|
|
5
|
+
symbol: string;
|
|
6
|
+
orderType: USDCOrderType;
|
|
7
|
+
price: string;
|
|
8
|
+
qty: string;
|
|
9
|
+
takeProfit?: string;
|
|
10
|
+
stopLoss?: string;
|
|
11
|
+
tpTriggerBy?: string;
|
|
12
|
+
slTriggerBy?: string;
|
|
13
|
+
orderLinkId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CopyTradingTradingStopRequest {
|
|
16
|
+
symbol: string;
|
|
17
|
+
parentOrderId: string;
|
|
18
|
+
takeProfit?: string;
|
|
19
|
+
stopLoss?: string;
|
|
20
|
+
tpTriggerBy?: string;
|
|
21
|
+
slTriggerBy?: string;
|
|
22
|
+
parentOrderLinkId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CopyTradingOrderListRequest {
|
|
25
|
+
symbol?: string;
|
|
26
|
+
orderId?: string;
|
|
27
|
+
orderLinkId?: string;
|
|
28
|
+
copyTradeOrderType?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CopyTradingCancelOrderRequest {
|
|
31
|
+
symbol: string;
|
|
32
|
+
orderId?: string;
|
|
33
|
+
orderLinkId?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CopyTradingCloseOrderRequest {
|
|
36
|
+
symbol: string;
|
|
37
|
+
orderLinkId?: string;
|
|
38
|
+
parentOrderId?: string;
|
|
39
|
+
parentOrderLinkId?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface CopyTradingTransferRequest {
|
|
42
|
+
transferId: string;
|
|
43
|
+
coin: string;
|
|
44
|
+
amount: string;
|
|
45
|
+
fromAccountType: string;
|
|
46
|
+
toAccountType: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-trading.js","sourceRoot":"","sources":["../../../src/types/request/copy-trading.ts"],"names":[],"mappings":""}
|
|
@@ -10,5 +10,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./account-asset"), exports);
|
|
14
|
+
__exportStar(require("./copy-trading"), exports);
|
|
15
|
+
__exportStar(require("./spot"), exports);
|
|
13
16
|
__exportStar(require("./usdt-perp"), exports);
|
|
17
|
+
__exportStar(require("./usdc-perp"), exports);
|
|
18
|
+
__exportStar(require("./usdc-options"), exports);
|
|
19
|
+
__exportStar(require("./usdc-shared"), exports);
|
|
20
|
+
__exportStar(require("./unified-margin"), exports);
|
|
14
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B;AAC/B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,iDAA+B;AAC/B,gDAA8B;AAC9B,mDAAiC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { numberInString, OrderSide } from '../shared';
|
|
2
|
+
export declare type OrderTypeSpot = 'LIMIT' | 'MARKET' | 'LIMIT_MAKER';
|
|
3
|
+
export declare type OrderTimeInForce = 'GTC' | 'FOK' | 'IOC';
|
|
4
|
+
export interface NewSpotOrder {
|
|
5
|
+
symbol: string;
|
|
6
|
+
qty: number;
|
|
7
|
+
side: OrderSide;
|
|
8
|
+
type: OrderTypeSpot;
|
|
9
|
+
timeInForce?: OrderTimeInForce;
|
|
10
|
+
price?: number;
|
|
11
|
+
orderLinkId?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NewSpotOrderV3 {
|
|
14
|
+
symbol: string;
|
|
15
|
+
orderQty: string;
|
|
16
|
+
side: OrderSide;
|
|
17
|
+
orderType: OrderTypeSpot;
|
|
18
|
+
timeInForce?: OrderTimeInForce;
|
|
19
|
+
orderPrice?: string;
|
|
20
|
+
orderLinkId?: string;
|
|
21
|
+
orderCategory?: 0 | 1;
|
|
22
|
+
triggerPrice?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SpotOrderQueryById {
|
|
25
|
+
orderId?: string;
|
|
26
|
+
orderLinkId?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SpotSymbolInfo {
|
|
29
|
+
name: string;
|
|
30
|
+
alias: string;
|
|
31
|
+
baseCurrency: string;
|
|
32
|
+
quoteCurrency: string;
|
|
33
|
+
basePrecision: numberInString;
|
|
34
|
+
quotePrecision: numberInString;
|
|
35
|
+
minTradeQuantity: numberInString;
|
|
36
|
+
minTradeAmount: numberInString;
|
|
37
|
+
minPricePrecision: numberInString;
|
|
38
|
+
maxTradeQuantity: numberInString;
|
|
39
|
+
maxTradeAmount: numberInString;
|
|
40
|
+
category: numberInString;
|
|
41
|
+
}
|
|
42
|
+
export interface SpotMyTradesRequest {
|
|
43
|
+
symbol?: string;
|
|
44
|
+
orderId?: string;
|
|
45
|
+
limit?: string;
|
|
46
|
+
startTime?: number;
|
|
47
|
+
endTime?: number;
|
|
48
|
+
fromTradeId?: string;
|
|
49
|
+
toTradeId?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface SpotLeveragedTokenPRHistoryRequest {
|
|
52
|
+
ltCode?: string;
|
|
53
|
+
orderId?: string;
|
|
54
|
+
startTime?: number;
|
|
55
|
+
endTime?: number;
|
|
56
|
+
limit?: number;
|
|
57
|
+
orderType?: 1 | 2;
|
|
58
|
+
serialNo?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface SpotCrossMarginBorrowingInfoRequest {
|
|
61
|
+
startTime?: number;
|
|
62
|
+
endTime?: number;
|
|
63
|
+
coin?: string;
|
|
64
|
+
status?: 0 | 1 | 2;
|
|
65
|
+
limit?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface SpotCrossMarginRepaymentHistoryRequest {
|
|
68
|
+
startTime?: number;
|
|
69
|
+
endTime?: number;
|
|
70
|
+
coin?: string;
|
|
71
|
+
limit?: number;
|
|
72
|
+
}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spot.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"spot.js","sourceRoot":"","sources":["../../../src/types/request/spot.ts"],"names":[],"mappings":""}
|