@volare.finance/nestjs.plugins 1.1.3 → 1.1.7
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 +81 -1
- package/dist/aws/aws.module.d.ts +1 -1
- package/dist/aws/aws.module.js +1 -2
- package/dist/aws/aws.module.js.map +1 -1
- package/dist/coingecko/coingecko.module.d.ts +1 -1
- package/dist/coingecko/coingecko.module.js +1 -2
- package/dist/coingecko/coingecko.module.js.map +1 -1
- package/dist/coingecko/coingecko.service.js +3 -3
- package/dist/coingecko/coingecko.service.js.map +1 -1
- package/dist/decorators/api.list.response.decorator.d.ts +6 -0
- package/dist/decorators/api.list.response.decorator.js +32 -0
- package/dist/decorators/api.list.response.decorator.js.map +1 -0
- package/dist/decorators/api.obj.response.decorator.d.ts +6 -0
- package/dist/decorators/api.obj.response.decorator.js +29 -0
- package/dist/decorators/api.obj.response.decorator.js.map +1 -0
- package/dist/decorators/index.d.ts +7 -0
- package/dist/decorators/index.js +11 -0
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/response.dto.d.ts +15 -0
- package/dist/decorators/response.dto.js +34 -0
- package/dist/decorators/response.dto.js.map +1 -0
- package/dist/exchanges/binance/binance.config.d.ts +2 -2
- package/dist/exchanges/binance/binance.module.d.ts +1 -1
- package/dist/exchanges/binance/binance.module.js +1 -2
- package/dist/exchanges/binance/binance.module.js.map +1 -1
- package/dist/exchanges/binance/binance.service.d.ts +6 -3
- package/dist/exchanges/binance/binance.service.js +16 -16
- package/dist/exchanges/binance/binance.service.js.map +1 -1
- package/dist/exchanges/bingx/bingx.config.d.ts +10 -0
- package/dist/exchanges/bingx/bingx.config.js +7 -0
- package/dist/exchanges/bingx/bingx.config.js.map +1 -0
- package/dist/exchanges/bingx/bingx.module.d.ts +9 -0
- package/dist/exchanges/bingx/bingx.module.js +27 -0
- package/dist/exchanges/bingx/bingx.module.js.map +1 -0
- package/dist/exchanges/bingx/bingx.service.d.ts +73 -0
- package/dist/exchanges/bingx/bingx.service.js +68 -0
- package/dist/exchanges/bingx/bingx.service.js.map +1 -0
- package/dist/exchanges/bingx/index.d.ts +7 -0
- package/dist/exchanges/bingx/index.js +11 -0
- package/dist/exchanges/bingx/index.js.map +1 -0
- package/dist/exchanges/bitget/bitget.config.d.ts +10 -0
- package/dist/exchanges/bitget/bitget.config.js +7 -0
- package/dist/exchanges/bitget/bitget.config.js.map +1 -0
- package/dist/exchanges/bitget/bitget.module.d.ts +9 -0
- package/dist/exchanges/bitget/bitget.module.js +27 -0
- package/dist/exchanges/bitget/bitget.module.js.map +1 -0
- package/dist/exchanges/bitget/bitget.service.d.ts +72 -0
- package/dist/exchanges/bitget/bitget.service.js +63 -0
- package/dist/exchanges/bitget/bitget.service.js.map +1 -0
- package/dist/exchanges/bitget/index.d.ts +7 -0
- package/dist/exchanges/bitget/index.js +11 -0
- package/dist/exchanges/bitget/index.js.map +1 -0
- package/dist/exchanges/bybit/bybit.config.d.ts +10 -0
- package/dist/exchanges/bybit/bybit.config.js +7 -0
- package/dist/exchanges/bybit/bybit.config.js.map +1 -0
- package/dist/exchanges/bybit/bybit.module.d.ts +9 -0
- package/dist/exchanges/bybit/bybit.module.js +27 -0
- package/dist/exchanges/bybit/bybit.module.js.map +1 -0
- package/dist/exchanges/bybit/bybit.service.d.ts +103 -0
- package/dist/exchanges/bybit/bybit.service.js +67 -0
- package/dist/exchanges/bybit/bybit.service.js.map +1 -0
- package/dist/exchanges/bybit/index.d.ts +7 -0
- package/dist/exchanges/bybit/index.js +11 -0
- package/dist/exchanges/bybit/index.js.map +1 -0
- package/dist/exchanges/gate.io/gate.io.config.d.ts +10 -0
- package/dist/exchanges/gate.io/gate.io.config.js +7 -0
- package/dist/exchanges/gate.io/gate.io.config.js.map +1 -0
- package/dist/exchanges/gate.io/gate.io.module.d.ts +9 -0
- package/dist/exchanges/gate.io/gate.io.module.js +27 -0
- package/dist/exchanges/gate.io/gate.io.module.js.map +1 -0
- package/dist/exchanges/gate.io/gate.io.service.d.ts +57 -0
- package/dist/exchanges/gate.io/gate.io.service.js +65 -0
- package/dist/exchanges/gate.io/gate.io.service.js.map +1 -0
- package/dist/exchanges/gate.io/index.d.ts +7 -0
- package/dist/exchanges/gate.io/index.js +11 -0
- package/dist/exchanges/gate.io/index.js.map +1 -0
- package/dist/exchanges/index.d.ts +6 -0
- package/dist/exchanges/index.js +6 -0
- package/dist/exchanges/index.js.map +1 -1
- package/dist/exchanges/lbank/lbank.config.d.ts +2 -2
- package/dist/exchanges/lbank/lbank.module.d.ts +1 -1
- package/dist/exchanges/lbank/lbank.module.js +1 -2
- package/dist/exchanges/lbank/lbank.module.js.map +1 -1
- package/dist/exchanges/lbank/lbank.service.d.ts +44 -26
- package/dist/exchanges/lbank/lbank.service.js +25 -45
- package/dist/exchanges/lbank/lbank.service.js.map +1 -1
- package/dist/exchanges/mexc/mexc.config.d.ts +2 -2
- package/dist/exchanges/mexc/mexc.module.d.ts +1 -1
- package/dist/exchanges/mexc/mexc.module.js +1 -2
- package/dist/exchanges/mexc/mexc.module.js.map +1 -1
- package/dist/exchanges/mexc/mexc.service.d.ts +3 -2
- package/dist/exchanges/mexc/mexc.service.js +12 -13
- package/dist/exchanges/mexc/mexc.service.js.map +1 -1
- package/dist/exchanges/okx/index.d.ts +7 -0
- package/dist/exchanges/okx/index.js +11 -0
- package/dist/exchanges/okx/index.js.map +1 -0
- package/dist/exchanges/okx/okx.config.d.ts +10 -0
- package/dist/exchanges/okx/okx.config.js +7 -0
- package/dist/exchanges/okx/okx.config.js.map +1 -0
- package/dist/exchanges/okx/okx.module.d.ts +9 -0
- package/dist/exchanges/okx/okx.module.js +27 -0
- package/dist/exchanges/okx/okx.module.js.map +1 -0
- package/dist/exchanges/okx/okx.service.d.ts +72 -0
- package/dist/exchanges/okx/okx.service.js +64 -0
- package/dist/exchanges/okx/okx.service.js.map +1 -0
- package/dist/exchanges/venkate/index.d.ts +7 -0
- package/dist/exchanges/venkate/index.js +11 -0
- package/dist/exchanges/venkate/index.js.map +1 -0
- package/dist/exchanges/venkate/venkate.config.d.ts +10 -0
- package/dist/exchanges/venkate/venkate.config.js +7 -0
- package/dist/exchanges/venkate/venkate.config.js.map +1 -0
- package/dist/exchanges/venkate/venkate.module.d.ts +9 -0
- package/dist/exchanges/venkate/venkate.module.js +27 -0
- package/dist/exchanges/venkate/venkate.module.js.map +1 -0
- package/dist/exchanges/venkate/venkate.service.d.ts +56 -0
- package/dist/exchanges/venkate/venkate.service.js +62 -0
- package/dist/exchanges/venkate/venkate.service.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/logger/logger.module.d.ts +1 -1
- package/dist/logger/logger.module.js +1 -2
- package/dist/logger/logger.module.js.map +1 -1
- package/dist/viabtc/viabtc.module.d.ts +1 -1
- package/dist/viabtc/viabtc.module.js +1 -2
- package/dist/viabtc/viabtc.module.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file gate.io.module.ts
|
|
4
|
+
* @date 2024
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.GateIoModule = void 0;
|
|
8
|
+
const config_1 = require("../../config");
|
|
9
|
+
const gate_io_service_1 = require("./gate.io.service");
|
|
10
|
+
class GateIoModule {
|
|
11
|
+
static forRoot(_options) {
|
|
12
|
+
return {
|
|
13
|
+
module: GateIoModule,
|
|
14
|
+
exports: [gate_io_service_1.GateIoService],
|
|
15
|
+
providers: [
|
|
16
|
+
{
|
|
17
|
+
provide: 'GateIoConstant',
|
|
18
|
+
useFactory: (constant) => constant.config(),
|
|
19
|
+
inject: [config_1.ConfigService],
|
|
20
|
+
},
|
|
21
|
+
gate_io_service_1.GateIoService,
|
|
22
|
+
],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.GateIoModule = GateIoModule;
|
|
27
|
+
//# sourceMappingURL=gate.io.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate.io.module.js","sourceRoot":"","sources":["../../../src/exchanges/gate.io/gate.io.module.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yCAA4D;AAE5D,uDAAkD;AAElD,MAAa,YAAY;IACvB,MAAM,CAAC,OAAO,CAAC,QAAwB;QACrC,OAAO;YACL,MAAM,EAAE,YAAY;YACpB,OAAO,EAAE,CAAC,+BAAa,CAAC;YACxB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,gBAAgB;oBACzB,UAAU,EAAE,CAAC,QAAqC,EAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE;oBAC7E,MAAM,EAAE,CAAC,sBAAa,CAAC;iBACxB;gBACD,+BAAa;aACd;SACF,CAAC;IACJ,CAAC;CACF;AAfD,oCAeC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file gate.io.service.ts
|
|
3
|
+
* @date 2024
|
|
4
|
+
* @see https://www.gate.io/docs/developers/apiv4/
|
|
5
|
+
*/
|
|
6
|
+
import { GateIoConfig } from './gate.io.config';
|
|
7
|
+
export declare class GateIoService {
|
|
8
|
+
private readonly constant;
|
|
9
|
+
private readonly instance;
|
|
10
|
+
constructor(constant: GateIoConfig);
|
|
11
|
+
checkConstant(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve ticker information
|
|
14
|
+
* @param currency_pair Currency pair. e.g. BTC_USDT
|
|
15
|
+
* @param timezone Timezone. e.g. utc0
|
|
16
|
+
* @see https://www.gate.io/docs/developers/apiv4/#retrieve-ticker-information
|
|
17
|
+
*/
|
|
18
|
+
ticker(currency_pair: string, timezone: 'utc0' | 'utc8' | 'all'): Promise<{
|
|
19
|
+
currency_pair: string;
|
|
20
|
+
last: string;
|
|
21
|
+
lowest_ask: string;
|
|
22
|
+
highest_bid: string;
|
|
23
|
+
change_percentage: string;
|
|
24
|
+
base_volume: string;
|
|
25
|
+
quote_volume: string;
|
|
26
|
+
high_24h: string;
|
|
27
|
+
low_24h: string;
|
|
28
|
+
etf_net_value: string;
|
|
29
|
+
etf_pre_net_value: string;
|
|
30
|
+
etf_pre_timestamp: number;
|
|
31
|
+
etf_leverage: string;
|
|
32
|
+
}[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Market candlesticks
|
|
35
|
+
* @param currency_pair Currency pair. e.g. BTC_USDT
|
|
36
|
+
* @param limit Maximum recent data points to return. e.g. 10
|
|
37
|
+
* @param from Start time of candlesticks, formatted in Unix timestamp in seconds. e.g. 1621545600
|
|
38
|
+
* @param to End time of candlesticks, formatted in Unix timestamp in seconds. e.g. 1621545600
|
|
39
|
+
* @param interval Interval time between data points. e.g. 1m
|
|
40
|
+
* @see https://www.gate.io/docs/developers/apiv4/#market-candlesticks
|
|
41
|
+
*/
|
|
42
|
+
klines(currency_pair: string, limit?: string | number, from?: string | number, to?: string | number, interval?: '10s' | '1m' | '5m' | '15m' | '30m' | '1h' | '4h' | '8h' | '1d' | '7d' | '30d'): Promise<[string, string, string, string, string, string, string, string][]>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve order book
|
|
45
|
+
* @param currency_pair Currency pair. e.g. BTC_USDT
|
|
46
|
+
* @param interval Order depth. 0 means no aggregation is applied. e.g. 0
|
|
47
|
+
* @param limit Maximum number of order depth data in asks or bids. e.g. 10
|
|
48
|
+
* @param with_id Return order book ID. e.g. false
|
|
49
|
+
* @see https://www.gate.io/docs/developers/apiv4/#retrieve-order-book
|
|
50
|
+
*/
|
|
51
|
+
depth(currency_pair: string, interval?: string, limit?: string | number, with_id?: boolean): Promise<{
|
|
52
|
+
current: number;
|
|
53
|
+
update: number;
|
|
54
|
+
asks: [string, string][];
|
|
55
|
+
bids: [string, string][];
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file gate.io.service.ts
|
|
4
|
+
* @date 2024
|
|
5
|
+
* @see https://www.gate.io/docs/developers/apiv4/
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.GateIoService = void 0;
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
12
|
+
let GateIoService = class GateIoService {
|
|
13
|
+
constructor(constant) {
|
|
14
|
+
this.constant = constant;
|
|
15
|
+
if (constant['gate.io']?.enabled) {
|
|
16
|
+
this.instance = axios_1.default.create({ baseURL: constant['gate.io'].url });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
checkConstant() {
|
|
20
|
+
if (!this.constant['gate.io']?.enabled) {
|
|
21
|
+
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve ticker information
|
|
26
|
+
* @param currency_pair Currency pair. e.g. BTC_USDT
|
|
27
|
+
* @param timezone Timezone. e.g. utc0
|
|
28
|
+
* @see https://www.gate.io/docs/developers/apiv4/#retrieve-ticker-information
|
|
29
|
+
*/
|
|
30
|
+
async ticker(currency_pair, timezone) {
|
|
31
|
+
this.checkConstant();
|
|
32
|
+
return (await this.instance.get('/spot/tickers', { params: { currency_pair, timezone } })).data;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Market candlesticks
|
|
36
|
+
* @param currency_pair Currency pair. e.g. BTC_USDT
|
|
37
|
+
* @param limit Maximum recent data points to return. e.g. 10
|
|
38
|
+
* @param from Start time of candlesticks, formatted in Unix timestamp in seconds. e.g. 1621545600
|
|
39
|
+
* @param to End time of candlesticks, formatted in Unix timestamp in seconds. e.g. 1621545600
|
|
40
|
+
* @param interval Interval time between data points. e.g. 1m
|
|
41
|
+
* @see https://www.gate.io/docs/developers/apiv4/#market-candlesticks
|
|
42
|
+
*/
|
|
43
|
+
async klines(currency_pair, limit, from, to, interval) {
|
|
44
|
+
this.checkConstant();
|
|
45
|
+
return (await this.instance.get('/spot/candlesticks', { params: { currency_pair, limit, from, to, interval } })).data;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Retrieve order book
|
|
49
|
+
* @param currency_pair Currency pair. e.g. BTC_USDT
|
|
50
|
+
* @param interval Order depth. 0 means no aggregation is applied. e.g. 0
|
|
51
|
+
* @param limit Maximum number of order depth data in asks or bids. e.g. 10
|
|
52
|
+
* @param with_id Return order book ID. e.g. false
|
|
53
|
+
* @see https://www.gate.io/docs/developers/apiv4/#retrieve-order-book
|
|
54
|
+
*/
|
|
55
|
+
async depth(currency_pair, interval, limit, with_id) {
|
|
56
|
+
this.checkConstant();
|
|
57
|
+
return (await this.instance.get('/spot/order_book', { params: { currency_pair, interval, limit, with_id } })).data;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.GateIoService = GateIoService;
|
|
61
|
+
exports.GateIoService = GateIoService = tslib_1.__decorate([
|
|
62
|
+
(0, common_1.Injectable)(),
|
|
63
|
+
tslib_1.__param(0, (0, common_1.Inject)('GateIoConstant'))
|
|
64
|
+
], GateIoService);
|
|
65
|
+
//# sourceMappingURL=gate.io.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate.io.service.js","sourceRoot":"","sources":["../../../src/exchanges/gate.io/gate.io.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,2CAA+E;AAC/E,0DAA6C;AAItC,IAAM,aAAa,GAAnB,MAAM,aAAa;IAGxB,YAAuD,QAAsB;QAAtB,aAAQ,GAAR,QAAQ,CAAc;QAC3E,IAAI,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;YACjC,IAAI,CAAC,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;IAED,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC;YACvC,MAAM,IAAI,sBAAa,CAAC,+BAA+B,EAAE,mBAAU,CAAC,WAAW,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,aAAqB,EACrB,QAAiC;QAkBjC,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAClG,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CACV,aAAqB,EACrB,KAAuB,EACvB,IAAsB,EACtB,EAAoB,EACpB,QAAyF;QAEzF,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACxH,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK,CACT,aAAqB,EACrB,QAAiB,EACjB,KAAuB,EACvB,OAAiB;QAOjB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACrH,CAAC;CACF,CAAA;AAvFY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAIE,mBAAA,IAAA,eAAM,EAAC,gBAAgB,CAAC,CAAA;GAH1B,aAAa,CAuFzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file index.ts
|
|
4
|
+
* @date 2024
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./gate.io.config"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./gate.io.module"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./gate.io.service"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exchanges/gate.io/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2DAAiC;AACjC,2DAAiC;AACjC,4DAAkC"}
|
|
@@ -3,5 +3,11 @@
|
|
|
3
3
|
* @date 2024
|
|
4
4
|
*/
|
|
5
5
|
export * from './binance';
|
|
6
|
+
export * from './bingx';
|
|
7
|
+
export * from './bitget';
|
|
8
|
+
export * from './bybit';
|
|
9
|
+
export * from './gate.io';
|
|
6
10
|
export * from './lbank';
|
|
7
11
|
export * from './mexc';
|
|
12
|
+
export * from './okx';
|
|
13
|
+
export * from './venkate';
|
package/dist/exchanges/index.js
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
8
|
tslib_1.__exportStar(require("./binance"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./bingx"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./bitget"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./bybit"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./gate.io"), exports);
|
|
9
13
|
tslib_1.__exportStar(require("./lbank"), exports);
|
|
10
14
|
tslib_1.__exportStar(require("./mexc"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./okx"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./venkate"), exports);
|
|
11
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exchanges/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,oDAA0B;AAC1B,kDAAwB;AACxB,iDAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exchanges/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,oDAA0B;AAC1B,kDAAwB;AACxB,mDAAyB;AACzB,kDAAwB;AACxB,oDAA0B;AAC1B,kDAAwB;AACxB,iDAAuB;AACvB,gDAAsB;AACtB,oDAA0B"}
|
|
@@ -8,10 +8,9 @@ exports.LBankModule = void 0;
|
|
|
8
8
|
const config_1 = require("../../config");
|
|
9
9
|
const lbank_service_1 = require("./lbank.service");
|
|
10
10
|
class LBankModule {
|
|
11
|
-
static forRoot(
|
|
11
|
+
static forRoot(_options) {
|
|
12
12
|
return {
|
|
13
13
|
module: LBankModule,
|
|
14
|
-
imports: [config_1.ConfigModule.forRoot(options)],
|
|
15
14
|
exports: [lbank_service_1.LBankService],
|
|
16
15
|
providers: [
|
|
17
16
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lbank.module.js","sourceRoot":"","sources":["../../../src/exchanges/lbank/lbank.module.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,
|
|
1
|
+
{"version":3,"file":"lbank.module.js","sourceRoot":"","sources":["../../../src/exchanges/lbank/lbank.module.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yCAA4D;AAE5D,mDAA+C;AAE/C,MAAa,WAAW;IACtB,MAAM,CAAC,OAAO,CAAC,QAAwB;QACrC,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,OAAO,EAAE,CAAC,4BAAY,CAAC;YACvB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,eAAe;oBACxB,UAAU,EAAE,CAAC,QAAoC,EAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE;oBAC5E,MAAM,EAAE,CAAC,sBAAa,CAAC;iBACxB;gBACD,4BAAY;aACb;SACF,CAAC;IACJ,CAAC;CACF;AAfD,kCAeC"}
|
|
@@ -8,41 +8,59 @@ export declare class LBankService {
|
|
|
8
8
|
private readonly constant;
|
|
9
9
|
private readonly instance;
|
|
10
10
|
constructor(constant: LBankConfig);
|
|
11
|
+
checkConstant(): void;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param symbol e.g. btc_usdt
|
|
14
|
-
* @see https://www.lbank.com/en-US/docs/index.html#
|
|
13
|
+
* 24hr Ticker
|
|
14
|
+
* @param symbol Pair. e.g. btc_usdt
|
|
15
|
+
* @see https://www.lbank.com/en-US/docs/index.html#24hr-ticker
|
|
15
16
|
*/
|
|
16
17
|
ticker(symbol: string): Promise<{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
msg: string;
|
|
19
|
+
result: string;
|
|
20
|
+
data: {
|
|
21
|
+
symbol: string;
|
|
22
|
+
ticker: {
|
|
23
|
+
high: string;
|
|
24
|
+
vol: string;
|
|
25
|
+
low: string;
|
|
26
|
+
change: string;
|
|
27
|
+
turnover: string;
|
|
28
|
+
latest: string;
|
|
29
|
+
};
|
|
30
|
+
timestamp: number;
|
|
31
|
+
}[];
|
|
32
|
+
error_code: number;
|
|
33
|
+
ts: number;
|
|
27
34
|
}>;
|
|
28
35
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @param symbol e.g. btc_usdt
|
|
36
|
+
* Query K Bar Data
|
|
37
|
+
* @param symbol Trading Pair. e.g. btc_usdt
|
|
31
38
|
* @param type e.g. hour1
|
|
32
|
-
* @param time e.g. 1696089600
|
|
33
|
-
* @param size e.g. 500
|
|
39
|
+
* @param time Timestamp (of Seconds). e.g. 1696089600
|
|
40
|
+
* @param size Count of the bars. e.g. 500
|
|
34
41
|
* @see https://www.lbank.com/en-US/docs/index.html#query-k-bar-data
|
|
35
42
|
*/
|
|
36
|
-
klines(symbol: string, type: 'minute1' | 'minute5' | '
|
|
43
|
+
klines(symbol: string, type: 'minute1' | 'minute5' | 'minute15' | 'minute30' | 'hour1' | 'hour4' | 'hour8' | 'hour12' | 'day1' | 'week1' | 'month1', time: string | number, size: string | number): Promise<{
|
|
44
|
+
msg: string;
|
|
45
|
+
result: string;
|
|
46
|
+
data: [number, number, number, number, number, number][];
|
|
47
|
+
error_code: number;
|
|
48
|
+
ts: number;
|
|
49
|
+
}>;
|
|
37
50
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @param symbol e.g. btc_usdt
|
|
40
|
-
* @param size e.g.
|
|
41
|
-
* @see https://www.lbank.com/en-US/docs/index.html#
|
|
51
|
+
* Depth information
|
|
52
|
+
* @param symbol Trading Pair. e.g. btc_usdt
|
|
53
|
+
* @param size The count of returned items. e.g. 200
|
|
54
|
+
* @see https://www.lbank.com/en-US/docs/index.html#depth-information
|
|
42
55
|
*/
|
|
43
|
-
depth(symbol: string, size: number): Promise<{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
56
|
+
depth(symbol: string, size: string | number): Promise<{
|
|
57
|
+
result: string;
|
|
58
|
+
data: {
|
|
59
|
+
asks: [string, string][];
|
|
60
|
+
bids: [string, string][];
|
|
61
|
+
timestamp: number;
|
|
62
|
+
};
|
|
63
|
+
error_code: number;
|
|
64
|
+
ts: number;
|
|
47
65
|
}>;
|
|
48
66
|
}
|
|
@@ -12,65 +12,45 @@ const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
|
12
12
|
let LBankService = class LBankService {
|
|
13
13
|
constructor(constant) {
|
|
14
14
|
this.constant = constant;
|
|
15
|
-
|
|
15
|
+
if (constant.lbank?.enabled) {
|
|
16
|
+
this.instance = axios_1.default.create({ baseURL: constant.lbank.url });
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
* Common - Query current Market Data (new)
|
|
19
|
-
* @param symbol e.g. btc_usdt
|
|
20
|
-
* @see https://www.lbank.com/en-US/docs/index.html#query-current-market-data-new
|
|
21
|
-
*/
|
|
22
|
-
async ticker(symbol) {
|
|
19
|
+
checkConstant() {
|
|
23
20
|
if (!this.constant.lbank?.enabled) {
|
|
24
21
|
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
25
22
|
}
|
|
26
|
-
const response = await this.instance.get('/v2/ticker/24hr.do', { params: { symbol } });
|
|
27
|
-
if (response.status === common_1.HttpStatus.OK) {
|
|
28
|
-
if (response.data?.result === 'true' && response.data?.data?.length > 0) {
|
|
29
|
-
return response.data.data[0];
|
|
30
|
-
}
|
|
31
|
-
throw new common_1.HttpException(response.data.result, common_1.HttpStatus.BAD_REQUEST);
|
|
32
|
-
}
|
|
33
|
-
throw new common_1.HttpException(response.statusText, response.status);
|
|
34
23
|
}
|
|
35
24
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @param symbol e.g. btc_usdt
|
|
25
|
+
* 24hr Ticker
|
|
26
|
+
* @param symbol Pair. e.g. btc_usdt
|
|
27
|
+
* @see https://www.lbank.com/en-US/docs/index.html#24hr-ticker
|
|
28
|
+
*/
|
|
29
|
+
async ticker(symbol) {
|
|
30
|
+
this.checkConstant();
|
|
31
|
+
return (await this.instance.get('/v2/ticker/24hr.do', { params: { symbol } })).data;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Query K Bar Data
|
|
35
|
+
* @param symbol Trading Pair. e.g. btc_usdt
|
|
38
36
|
* @param type e.g. hour1
|
|
39
|
-
* @param time e.g. 1696089600
|
|
40
|
-
* @param size e.g. 500
|
|
37
|
+
* @param time Timestamp (of Seconds). e.g. 1696089600
|
|
38
|
+
* @param size Count of the bars. e.g. 500
|
|
41
39
|
* @see https://www.lbank.com/en-US/docs/index.html#query-k-bar-data
|
|
42
40
|
*/
|
|
43
41
|
async klines(symbol, type, time, size) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
const response = await this.instance.get('/v2/kline.do', { params: { symbol, type, time, size } });
|
|
48
|
-
if (response.status === common_1.HttpStatus.OK) {
|
|
49
|
-
if (response.data?.result === 'true') {
|
|
50
|
-
return response.data.data;
|
|
51
|
-
}
|
|
52
|
-
throw new common_1.HttpException(response.data.result, common_1.HttpStatus.BAD_REQUEST);
|
|
53
|
-
}
|
|
54
|
-
throw new common_1.HttpException(response.statusText, response.status);
|
|
42
|
+
this.checkConstant();
|
|
43
|
+
return (await this.instance.get('/v2/kline.do', { params: { symbol, type, time, size } })).data;
|
|
55
44
|
}
|
|
56
45
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @param symbol e.g. btc_usdt
|
|
59
|
-
* @param size e.g.
|
|
60
|
-
* @see https://www.lbank.com/en-US/docs/index.html#
|
|
46
|
+
* Depth information
|
|
47
|
+
* @param symbol Trading Pair. e.g. btc_usdt
|
|
48
|
+
* @param size The count of returned items. e.g. 200
|
|
49
|
+
* @see https://www.lbank.com/en-US/docs/index.html#depth-information
|
|
61
50
|
*/
|
|
62
51
|
async depth(symbol, size) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
const response = await this.instance.get('/v2/depth.do', { params: { symbol, size } });
|
|
67
|
-
if (response.status === common_1.HttpStatus.OK) {
|
|
68
|
-
if (response.data?.result === 'true') {
|
|
69
|
-
return response.data.data;
|
|
70
|
-
}
|
|
71
|
-
throw new common_1.HttpException(response.data.result, common_1.HttpStatus.BAD_REQUEST);
|
|
72
|
-
}
|
|
73
|
-
throw new common_1.HttpException(response.statusText, response.status);
|
|
52
|
+
this.checkConstant();
|
|
53
|
+
return (await this.instance.get('/v2/depth.do', { params: { symbol, size } })).data;
|
|
74
54
|
}
|
|
75
55
|
};
|
|
76
56
|
exports.LBankService = LBankService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lbank.service.js","sourceRoot":"","sources":["../../../src/exchanges/lbank/lbank.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,2CAA+E;AAC/E,0DAA6C;AAItC,IAAM,YAAY,GAAlB,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"lbank.service.js","sourceRoot":"","sources":["../../../src/exchanges/lbank/lbank.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,2CAA+E;AAC/E,0DAA6C;AAItC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAGvB,YAAsD,QAAqB;QAArB,aAAQ,GAAR,QAAQ,CAAa;QACzE,IAAI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;YAC5B,IAAI,CAAC,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QAChE,CAAC;IACH,CAAC;IAED,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;YAClC,MAAM,IAAI,sBAAa,CAAC,+BAA+B,EAAE,mBAAU,CAAC,WAAW,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,MAAc;QAWzB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACtF,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,MAAc,EACd,IAA4H,EAC5H,IAAqB,EACrB,IAAqB;QAQrB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAClG,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CACT,MAAc,EACd,IAAqB;QAOrB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACtF,CAAC;CACF,CAAA;AA7EY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;IAIE,mBAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;GAHzB,YAAY,CA6ExB"}
|
|
@@ -8,10 +8,9 @@ exports.MexcModule = void 0;
|
|
|
8
8
|
const config_1 = require("../../config");
|
|
9
9
|
const mexc_service_1 = require("./mexc.service");
|
|
10
10
|
class MexcModule {
|
|
11
|
-
static forRoot(
|
|
11
|
+
static forRoot(_options) {
|
|
12
12
|
return {
|
|
13
13
|
module: MexcModule,
|
|
14
|
-
imports: [config_1.ConfigModule.forRoot(options)],
|
|
15
14
|
exports: [mexc_service_1.MexcService],
|
|
16
15
|
providers: [
|
|
17
16
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mexc.module.js","sourceRoot":"","sources":["../../../src/exchanges/mexc/mexc.module.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,
|
|
1
|
+
{"version":3,"file":"mexc.module.js","sourceRoot":"","sources":["../../../src/exchanges/mexc/mexc.module.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,yCAA4D;AAE5D,iDAA6C;AAE7C,MAAa,UAAU;IACrB,MAAM,CAAC,OAAO,CAAC,QAAwB;QACrC,OAAO;YACL,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,CAAC,0BAAW,CAAC;YACtB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,cAAc;oBACvB,UAAU,EAAE,CAAC,QAAmC,EAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE;oBAC3E,MAAM,EAAE,CAAC,sBAAa,CAAC;iBACxB;gBACD,0BAAW;aACZ;SACF,CAAC;IACJ,CAAC;CACF;AAfD,gCAeC"}
|
|
@@ -8,6 +8,7 @@ export declare class MexcService {
|
|
|
8
8
|
private readonly constant;
|
|
9
9
|
private readonly instance;
|
|
10
10
|
constructor(constant: MexcConfig);
|
|
11
|
+
checkConstant(): void;
|
|
11
12
|
/**
|
|
12
13
|
* Market Data - Current Average Price
|
|
13
14
|
* @param symbol e.g. BTCUSDT
|
|
@@ -50,14 +51,14 @@ export declare class MexcService {
|
|
|
50
51
|
* @param limit e.g. 500
|
|
51
52
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-candlestick-data
|
|
52
53
|
*/
|
|
53
|
-
klines(symbol: string, interval: '1m' | '5m' | '15m' | '30m' | '60m' | '4h' | '1d' | '1M', startTime?: string | number, endTime?: string | number, limit?: number): Promise<[number, string, string, string, string, string, number, string][]>;
|
|
54
|
+
klines(symbol: string, interval: '1m' | '5m' | '15m' | '30m' | '60m' | '4h' | '1d' | '1w' | '1M', startTime?: string | number, endTime?: string | number, limit?: string | number): Promise<[number, string, string, string, string, string, number, string][]>;
|
|
54
55
|
/**
|
|
55
56
|
* Market Data - Order Book
|
|
56
57
|
* @param symbol e.g. BTCUSDT
|
|
57
58
|
* @param limit e.g. 500
|
|
58
59
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#order-book
|
|
59
60
|
*/
|
|
60
|
-
depth(symbol: string, limit?: number): Promise<{
|
|
61
|
+
depth(symbol: string, limit?: string | number): Promise<{
|
|
61
62
|
lastUpdateId: number;
|
|
62
63
|
bids: [string, string][];
|
|
63
64
|
asks: [string, string][];
|
|
@@ -12,7 +12,14 @@ const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
|
12
12
|
let MexcService = class MexcService {
|
|
13
13
|
constructor(constant) {
|
|
14
14
|
this.constant = constant;
|
|
15
|
-
|
|
15
|
+
if (constant.mexc?.enabled) {
|
|
16
|
+
this.instance = axios_1.default.create({ baseURL: constant.mexc.url });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
checkConstant() {
|
|
20
|
+
if (!this.constant.mexc?.enabled) {
|
|
21
|
+
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
22
|
+
}
|
|
16
23
|
}
|
|
17
24
|
/**
|
|
18
25
|
* Market Data - Current Average Price
|
|
@@ -20,9 +27,7 @@ let MexcService = class MexcService {
|
|
|
20
27
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#current-average-price
|
|
21
28
|
*/
|
|
22
29
|
async avgPrice(symbol) {
|
|
23
|
-
|
|
24
|
-
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
25
|
-
}
|
|
30
|
+
this.checkConstant();
|
|
26
31
|
return (await this.instance.get('/api/v3/avgPrice', { params: { symbol } })).data;
|
|
27
32
|
}
|
|
28
33
|
/**
|
|
@@ -31,9 +36,7 @@ let MexcService = class MexcService {
|
|
|
31
36
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#24hr-ticker-price-change-statistics
|
|
32
37
|
*/
|
|
33
38
|
async ticker(symbol) {
|
|
34
|
-
|
|
35
|
-
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
36
|
-
}
|
|
39
|
+
this.checkConstant();
|
|
37
40
|
return (await this.instance.get('/api/v3/ticker/24hr', { params: { symbol } })).data;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
@@ -46,9 +49,7 @@ let MexcService = class MexcService {
|
|
|
46
49
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#kline-candlestick-data
|
|
47
50
|
*/
|
|
48
51
|
async klines(symbol, interval, startTime, endTime, limit) {
|
|
49
|
-
|
|
50
|
-
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
51
|
-
}
|
|
52
|
+
this.checkConstant();
|
|
52
53
|
return (await this.instance.get('/api/v3/klines', { params: { symbol, interval, startTime, endTime, limit } })).data;
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
@@ -58,9 +59,7 @@ let MexcService = class MexcService {
|
|
|
58
59
|
* @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#order-book
|
|
59
60
|
*/
|
|
60
61
|
async depth(symbol, limit) {
|
|
61
|
-
|
|
62
|
-
throw new common_1.HttpException('This feature is not supported', common_1.HttpStatus.BAD_REQUEST);
|
|
63
|
-
}
|
|
62
|
+
this.checkConstant();
|
|
64
63
|
return (await this.instance.get('/api/v3/depth', { params: { symbol, limit } })).data;
|
|
65
64
|
}
|
|
66
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mexc.service.js","sourceRoot":"","sources":["../../../src/exchanges/mexc/mexc.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,2CAA+E;AAC/E,0DAA6C;AAItC,IAAM,WAAW,GAAjB,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"mexc.service.js","sourceRoot":"","sources":["../../../src/exchanges/mexc/mexc.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,2CAA+E;AAC/E,0DAA6C;AAItC,IAAM,WAAW,GAAjB,MAAM,WAAW;IAGtB,YAAqD,QAAoB;QAApB,aAAQ,GAAR,QAAQ,CAAY;QACvE,IAAI,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC;YAC3B,IAAI,CAAC,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IAED,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC;YACjC,MAAM,IAAI,sBAAa,CAAC,+BAA+B,EAAE,mBAAU,CAAC,WAAW,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,QAAQ,CAAC,MAAc;QAC3B,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACpF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,MAAc;QAmBzB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACvF,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CACV,MAAc,EACd,QAAyE,EACzE,SAA2B,EAC3B,OAAyB,EACzB,KAAuB;QAEvB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACvH,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CACT,MAAc,EACd,KAAuB;QAEvB,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,OAAO,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,CAAC;CACF,CAAA;AAtFY,kCAAW;sBAAX,WAAW;IADvB,IAAA,mBAAU,GAAE;IAIE,mBAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;GAHxB,WAAW,CAsFvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file index.ts
|
|
4
|
+
* @date 2024
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
tslib_1.__exportStar(require("./okx.config"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./okx.module"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./okx.service"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/exchanges/okx/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uDAA6B;AAC7B,uDAA6B;AAC7B,wDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"okx.config.js","sourceRoot":"","sources":["../../../src/exchanges/okx/okx.config.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|