@d8x/perpetuals-sdk 0.0.1 → 0.0.3
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/dist/accountTrade.d.ts +19 -2
- package/dist/accountTrade.js +41 -3
- package/dist/brokerTool.d.ts +97 -24
- package/dist/brokerTool.js +202 -59
- package/dist/d8XMath.d.ts +17 -14
- package/dist/d8XMath.js +17 -15
- package/dist/liquidatorTool.d.ts +58 -0
- package/dist/liquidatorTool.js +125 -0
- package/dist/liquidityProviderTool.d.ts +11 -11
- package/dist/liquidityProviderTool.js +11 -11
- package/dist/marketData.d.ts +27 -8
- package/dist/marketData.js +35 -8
- package/dist/orderReferrerTool.d.ts +37 -6
- package/dist/orderReferrerTool.js +120 -5
- package/dist/perpetualDataHandler.d.ts +2 -0
- package/dist/perpetualDataHandler.js +24 -6
- package/dist/utils.d.ts +8 -8
- package/dist/utils.js +11 -9
- package/package.json +2 -2
- package/src/accountTrade.ts +41 -23
- package/src/brokerTool.ts +253 -106
- package/src/d8XMath.ts +18 -15
- package/src/liquidatorTool.ts +106 -0
- package/src/liquidityProviderTool.ts +11 -11
- package/src/marketData.ts +153 -122
- package/src/orderReferrerTool.ts +132 -6
- package/src/perpetualDataHandler.ts +33 -7
- package/src/utils.ts +40 -39
- package/dist/liquiditatorTool.d.ts +0 -14
- package/dist/liquiditatorTool.js +0 -21
- package/src/liquiditatorTool.ts +0 -21
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import WriteAccessHandler from "./writeAccessHandler";
|
|
2
|
-
import { NodeSDKConfig } from "./nodeSDKTypes";
|
|
3
|
-
/**
|
|
4
|
-
* LiquidatorTool
|
|
5
|
-
* Methods to liquidate traders
|
|
6
|
-
*/
|
|
7
|
-
export default class LiquidatorTool extends WriteAccessHandler {
|
|
8
|
-
/**
|
|
9
|
-
* Constructor
|
|
10
|
-
* @param config configuration
|
|
11
|
-
* @param privateKey private key of account that trades
|
|
12
|
-
*/
|
|
13
|
-
constructor(config: NodeSDKConfig, privateKey: string);
|
|
14
|
-
}
|
package/dist/liquiditatorTool.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const writeAccessHandler_1 = __importDefault(require("./writeAccessHandler"));
|
|
7
|
-
/**
|
|
8
|
-
* LiquidatorTool
|
|
9
|
-
* Methods to liquidate traders
|
|
10
|
-
*/
|
|
11
|
-
class LiquidatorTool extends writeAccessHandler_1.default {
|
|
12
|
-
/**
|
|
13
|
-
* Constructor
|
|
14
|
-
* @param config configuration
|
|
15
|
-
* @param privateKey private key of account that trades
|
|
16
|
-
*/
|
|
17
|
-
constructor(config, privateKey) {
|
|
18
|
-
super(config, privateKey);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = LiquidatorTool;
|
package/src/liquiditatorTool.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import WriteAccessHandler from "./writeAccessHandler";
|
|
2
|
-
import { NodeSDKConfig } from "./nodeSDKTypes";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* LiquidatorTool
|
|
6
|
-
* Methods to liquidate traders
|
|
7
|
-
*/
|
|
8
|
-
export default class LiquidatorTool extends WriteAccessHandler {
|
|
9
|
-
/**
|
|
10
|
-
* Constructor
|
|
11
|
-
* @param config configuration
|
|
12
|
-
* @param privateKey private key of account that trades
|
|
13
|
-
*/
|
|
14
|
-
public constructor(config: NodeSDKConfig, privateKey: string) {
|
|
15
|
-
super(config, privateKey);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/*
|
|
19
|
-
TODO
|
|
20
|
-
*/
|
|
21
|
-
}
|