@nadohq/trigger-client 0.14.0 → 0.17.0
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/TriggerClient-6bNb5IdD.cjs +195 -0
- package/dist/TriggerClient-6bNb5IdD.cjs.map +1 -0
- package/dist/TriggerClient.cjs +3 -257
- package/dist/TriggerClient.d.cts +40 -42
- package/dist/TriggerClient.d.cts.map +1 -0
- package/dist/TriggerClient.d.ts +40 -42
- package/dist/TriggerClient.d.ts.map +1 -0
- package/dist/TriggerClient.js +157 -229
- package/dist/TriggerClient.js.map +1 -1
- package/dist/TriggerServerFailureError-BfVn3Cd1.d.cts +11 -0
- package/dist/TriggerServerFailureError-BfVn3Cd1.d.cts.map +1 -0
- package/dist/TriggerServerFailureError-DCrjct86.d.ts +11 -0
- package/dist/TriggerServerFailureError-DCrjct86.d.ts.map +1 -0
- package/dist/clientModelTypes-C7K17sS2.d.cts +69 -0
- package/dist/clientModelTypes-C7K17sS2.d.cts.map +1 -0
- package/dist/clientModelTypes-CZv3IB5D.d.ts +69 -0
- package/dist/clientModelTypes-CZv3IB5D.d.ts.map +1 -0
- package/dist/clientTypes-Bn3lA19Y.d.cts +102 -0
- package/dist/clientTypes-Bn3lA19Y.d.cts.map +1 -0
- package/dist/clientTypes-CAwuc8HN.d.ts +102 -0
- package/dist/clientTypes-CAwuc8HN.d.ts.map +1 -0
- package/dist/dataMappers.cjs +155 -218
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +7 -10
- package/dist/dataMappers.d.cts.map +1 -0
- package/dist/dataMappers.d.ts +7 -10
- package/dist/dataMappers.d.ts.map +1 -0
- package/dist/dataMappers.js +151 -197
- package/dist/dataMappers.js.map +1 -1
- package/dist/endpoints.cjs +8 -32
- package/dist/endpoints.cjs.map +1 -1
- package/dist/endpoints.d.cts +4 -2
- package/dist/endpoints.d.cts.map +1 -0
- package/dist/endpoints.d.ts +4 -2
- package/dist/endpoints.d.ts.map +1 -0
- package/dist/endpoints.js +8 -8
- package/dist/endpoints.js.map +1 -1
- package/dist/index.cjs +8 -29
- package/dist/index.d.cts +9 -12
- package/dist/index.d.ts +9 -12
- package/dist/index.js +5 -5
- package/dist/serverExecuteTypes-CoCnexH8.d.ts +33 -0
- package/dist/serverExecuteTypes-CoCnexH8.d.ts.map +1 -0
- package/dist/serverExecuteTypes-wEqxZgZV.d.cts +33 -0
- package/dist/serverExecuteTypes-wEqxZgZV.d.cts.map +1 -0
- package/dist/serverModelTypes-BoBLlAMO.d.cts +44 -0
- package/dist/serverModelTypes-BoBLlAMO.d.cts.map +1 -0
- package/dist/serverModelTypes-Jerv8TNA.d.ts +44 -0
- package/dist/serverModelTypes-Jerv8TNA.d.ts.map +1 -0
- package/dist/serverQueryTypes-C-RiciWB.d.ts +96 -0
- package/dist/serverQueryTypes-C-RiciWB.d.ts.map +1 -0
- package/dist/serverQueryTypes-Cj3yVnLR.d.cts +96 -0
- package/dist/serverQueryTypes-Cj3yVnLR.d.cts.map +1 -0
- package/dist/types/TriggerServerFailureError.cjs +9 -33
- package/dist/types/TriggerServerFailureError.cjs.map +1 -1
- package/dist/types/TriggerServerFailureError.d.cts +2 -12
- package/dist/types/TriggerServerFailureError.d.ts +2 -12
- package/dist/types/TriggerServerFailureError.js +8 -8
- package/dist/types/TriggerServerFailureError.js.map +1 -1
- package/dist/types/clientModelTypes.cjs +0 -19
- package/dist/types/clientModelTypes.d.cts +2 -67
- package/dist/types/clientModelTypes.d.ts +2 -67
- package/dist/types/clientModelTypes.js +1 -1
- package/dist/types/clientTypes.cjs +0 -19
- package/dist/types/clientTypes.d.cts +2 -102
- package/dist/types/clientTypes.d.ts +2 -102
- package/dist/types/clientTypes.js +1 -1
- package/dist/types/index.cjs +3 -35
- package/dist/types/index.d.cts +7 -9
- package/dist/types/index.d.ts +7 -9
- package/dist/types/index.js +2 -8
- package/dist/types/serverExecuteTypes.cjs +0 -19
- package/dist/types/serverExecuteTypes.d.cts +2 -31
- package/dist/types/serverExecuteTypes.d.ts +2 -31
- package/dist/types/serverExecuteTypes.js +1 -1
- package/dist/types/serverModelTypes.cjs +0 -19
- package/dist/types/serverModelTypes.d.cts +2 -42
- package/dist/types/serverModelTypes.d.ts +2 -42
- package/dist/types/serverModelTypes.js +1 -1
- package/dist/types/serverQueryTypes.cjs +0 -19
- package/dist/types/serverQueryTypes.d.cts +2 -95
- package/dist/types/serverQueryTypes.d.ts +2 -95
- package/dist/types/serverQueryTypes.js +1 -1
- package/package.json +10 -10
- package/dist/TriggerClient.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/clientModelTypes.cjs.map +0 -1
- package/dist/types/clientModelTypes.js.map +0 -1
- package/dist/types/clientTypes.cjs.map +0 -1
- package/dist/types/clientTypes.js.map +0 -1
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/serverExecuteTypes.cjs.map +0 -1
- package/dist/types/serverExecuteTypes.js.map +0 -1
- package/dist/types/serverModelTypes.cjs.map +0 -1
- package/dist/types/serverModelTypes.js.map +0 -1
- package/dist/types/serverQueryTypes.cjs.map +0 -1
- package/dist/types/serverQueryTypes.js.map +0 -1
|
@@ -1,67 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type PriceTriggerRequirementType = 'oracle_price_above' | 'oracle_price_below' | 'last_price_above' | 'last_price_below' | 'mid_price_above' | 'mid_price_below';
|
|
5
|
-
interface PriceTriggerDependency {
|
|
6
|
-
/**
|
|
7
|
-
* Digest of the order that this trigger depends on.
|
|
8
|
-
*/
|
|
9
|
-
digest: string;
|
|
10
|
-
/**
|
|
11
|
-
* Whether to trigger on partial fills.
|
|
12
|
-
*/
|
|
13
|
-
onPartialFill: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface PriceTriggerCriteria {
|
|
16
|
-
type: PriceTriggerRequirementType;
|
|
17
|
-
triggerPrice: BigNumberish;
|
|
18
|
-
dependency?: PriceTriggerDependency;
|
|
19
|
-
}
|
|
20
|
-
interface TimeTriggerCriteria {
|
|
21
|
-
/**
|
|
22
|
-
* For TWAP: Trigger interval in seconds
|
|
23
|
-
*/
|
|
24
|
-
interval: BigNumberish;
|
|
25
|
-
/**
|
|
26
|
-
* For TWAP: By default, trigger service will split up orders as per total amount / interval
|
|
27
|
-
* If you want to specify the amounts for each interval, you can provide them here.
|
|
28
|
-
*/
|
|
29
|
-
amounts?: BigNumberish[];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* All possible trigger conditions that can be used to place a trigger order.
|
|
33
|
-
*/
|
|
34
|
-
type TriggerCriteria = {
|
|
35
|
-
type: 'price';
|
|
36
|
-
criteria: PriceTriggerCriteria;
|
|
37
|
-
} | {
|
|
38
|
-
type: 'time';
|
|
39
|
-
criteria: TimeTriggerCriteria;
|
|
40
|
-
};
|
|
41
|
-
type TriggerCriteriaType = TriggerCriteria['type'];
|
|
42
|
-
type TriggerOrderStatus = {
|
|
43
|
-
type: 'cancelled';
|
|
44
|
-
reason: string;
|
|
45
|
-
} | {
|
|
46
|
-
type: 'triggered';
|
|
47
|
-
result: EngineServerExecuteResult;
|
|
48
|
-
} | {
|
|
49
|
-
type: 'internal_error';
|
|
50
|
-
error: string;
|
|
51
|
-
} | {
|
|
52
|
-
type: 'triggering';
|
|
53
|
-
} | {
|
|
54
|
-
type: 'waiting_price';
|
|
55
|
-
} | {
|
|
56
|
-
type: 'waiting_dependency';
|
|
57
|
-
} | {
|
|
58
|
-
type: 'twap_executing';
|
|
59
|
-
currentExecution: number;
|
|
60
|
-
totalExecutions: number;
|
|
61
|
-
} | {
|
|
62
|
-
type: 'twap_completed';
|
|
63
|
-
executed: number;
|
|
64
|
-
total: number;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export type { PriceTriggerCriteria, PriceTriggerDependency, PriceTriggerRequirementType, TimeTriggerCriteria, TriggerCriteria, TriggerCriteriaType, TriggerOrderStatus };
|
|
1
|
+
import { a as TriggerCriteria, i as TimeTriggerCriteria, n as PriceTriggerDependency, o as TriggerCriteriaType, r as PriceTriggerRequirementType, s as TriggerOrderStatus, t as PriceTriggerCriteria } from "../clientModelTypes-CZv3IB5D.js";
|
|
2
|
+
export { PriceTriggerCriteria, PriceTriggerDependency, PriceTriggerRequirementType, TimeTriggerCriteria, TriggerCriteria, TriggerCriteriaType, TriggerOrderStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/clientTypes.ts
|
|
17
|
-
var clientTypes_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(clientTypes_exports);
|
|
19
|
-
//# sourceMappingURL=clientTypes.cjs.map
|
|
@@ -1,102 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
import { TriggerCriteria, TriggerOrderStatus } from './clientModelTypes.cjs';
|
|
5
|
-
import { TriggerServerStatusTypeFilter, TriggerServerTriggerTypeFilter, TriggerServerOrder } from './serverQueryTypes.cjs';
|
|
6
|
-
import './serverExecuteTypes.cjs';
|
|
7
|
-
import './serverModelTypes.cjs';
|
|
8
|
-
|
|
9
|
-
type WithOptionalNonce<T> = Omit<T, 'nonce'> & {
|
|
10
|
-
nonce?: string;
|
|
11
|
-
};
|
|
12
|
-
interface SignatureParams {
|
|
13
|
-
/**
|
|
14
|
-
* Address derived from productId for placement (see getOrderVerifyingAddr)
|
|
15
|
-
* endpoint address for cancellation & listing
|
|
16
|
-
*/
|
|
17
|
-
verifyingAddr: string;
|
|
18
|
-
chainId: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Executes
|
|
22
|
-
*/
|
|
23
|
-
interface TriggerPlaceOrderParams extends SignatureParams {
|
|
24
|
-
id?: number;
|
|
25
|
-
productId: number;
|
|
26
|
-
order: EngineOrderParams;
|
|
27
|
-
triggerCriteria: TriggerCriteria;
|
|
28
|
-
spotLeverage?: boolean;
|
|
29
|
-
borrowMargin?: boolean;
|
|
30
|
-
digest?: string;
|
|
31
|
-
nonce?: string;
|
|
32
|
-
}
|
|
33
|
-
interface TriggerPlaceOrdersParams {
|
|
34
|
-
orders: TriggerPlaceOrderParams[];
|
|
35
|
-
/**
|
|
36
|
-
* If `true`, aborts the batch after the first failed order; if `false`, remaining orders continue to execute.
|
|
37
|
-
* If not provided, the default value is `false`.
|
|
38
|
-
*/
|
|
39
|
-
stopOnFailure?: boolean;
|
|
40
|
-
}
|
|
41
|
-
type TriggerCancelOrdersParams = SignatureParams & WithOptionalNonce<EIP712CancelOrdersParams>;
|
|
42
|
-
type TriggerCancelProductOrdersParams = SignatureParams & WithOptionalNonce<EIP712CancelProductOrdersParams>;
|
|
43
|
-
/**
|
|
44
|
-
* Queries
|
|
45
|
-
*/
|
|
46
|
-
interface TriggerListOrdersParams extends Subaccount, SignatureParams {
|
|
47
|
-
recvTime?: BigNumber;
|
|
48
|
-
productIds?: number[];
|
|
49
|
-
maxUpdateTimeInclusive?: number;
|
|
50
|
-
digests?: string[];
|
|
51
|
-
limit?: number;
|
|
52
|
-
statusTypes?: TriggerServerStatusTypeFilter[];
|
|
53
|
-
triggerTypes?: TriggerServerTriggerTypeFilter[];
|
|
54
|
-
reduceOnly?: boolean;
|
|
55
|
-
}
|
|
56
|
-
interface TriggerOrder {
|
|
57
|
-
productId: number;
|
|
58
|
-
triggerCriteria: TriggerCriteria;
|
|
59
|
-
price: BigNumber;
|
|
60
|
-
amount: BigNumber;
|
|
61
|
-
expiration: number;
|
|
62
|
-
nonce: string;
|
|
63
|
-
digest: string;
|
|
64
|
-
appendix: OrderAppendix;
|
|
65
|
-
}
|
|
66
|
-
interface TriggerOrderInfo {
|
|
67
|
-
order: TriggerOrder;
|
|
68
|
-
serverOrder: TriggerServerOrder;
|
|
69
|
-
status: TriggerOrderStatus;
|
|
70
|
-
updatedAt: number;
|
|
71
|
-
placementTime: number;
|
|
72
|
-
}
|
|
73
|
-
interface TriggerListOrdersResponse {
|
|
74
|
-
orders: TriggerOrderInfo[];
|
|
75
|
-
}
|
|
76
|
-
interface TriggerListTwapExecutionsParams {
|
|
77
|
-
digest: string;
|
|
78
|
-
}
|
|
79
|
-
type TwapExecutionStatus = {
|
|
80
|
-
type: 'pending';
|
|
81
|
-
} | {
|
|
82
|
-
type: 'executed';
|
|
83
|
-
executedTime: number;
|
|
84
|
-
executeResponse: EngineServerExecuteResult;
|
|
85
|
-
} | {
|
|
86
|
-
type: 'failed';
|
|
87
|
-
error: string;
|
|
88
|
-
} | {
|
|
89
|
-
type: 'cancelled';
|
|
90
|
-
reason: string;
|
|
91
|
-
};
|
|
92
|
-
interface TwapExecutionInfo {
|
|
93
|
-
executionId: number;
|
|
94
|
-
scheduledTime: number;
|
|
95
|
-
status: TwapExecutionStatus;
|
|
96
|
-
updatedAt: number;
|
|
97
|
-
}
|
|
98
|
-
interface TriggerListTwapExecutionsResponse {
|
|
99
|
-
executions: TwapExecutionInfo[];
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type { TriggerCancelOrdersParams, TriggerCancelProductOrdersParams, TriggerListOrdersParams, TriggerListOrdersResponse, TriggerListTwapExecutionsParams, TriggerListTwapExecutionsResponse, TriggerOrder, TriggerOrderInfo, TriggerPlaceOrderParams, TriggerPlaceOrdersParams, TwapExecutionInfo, TwapExecutionStatus };
|
|
1
|
+
import { a as TriggerListTwapExecutionsParams, c as TriggerOrderInfo, d as TwapExecutionInfo, f as TwapExecutionStatus, i as TriggerListOrdersResponse, l as TriggerPlaceOrderParams, n as TriggerCancelProductOrdersParams, o as TriggerListTwapExecutionsResponse, r as TriggerListOrdersParams, s as TriggerOrder, t as TriggerCancelOrdersParams, u as TriggerPlaceOrdersParams } from "../clientTypes-Bn3lA19Y.cjs";
|
|
2
|
+
export { TriggerCancelOrdersParams, TriggerCancelProductOrdersParams, TriggerListOrdersParams, TriggerListOrdersResponse, TriggerListTwapExecutionsParams, TriggerListTwapExecutionsResponse, TriggerOrder, TriggerOrderInfo, TriggerPlaceOrderParams, TriggerPlaceOrdersParams, TwapExecutionInfo, TwapExecutionStatus };
|
|
@@ -1,102 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import BigNumber from 'bignumber.js';
|
|
4
|
-
import { TriggerCriteria, TriggerOrderStatus } from './clientModelTypes.js';
|
|
5
|
-
import { TriggerServerStatusTypeFilter, TriggerServerTriggerTypeFilter, TriggerServerOrder } from './serverQueryTypes.js';
|
|
6
|
-
import './serverExecuteTypes.js';
|
|
7
|
-
import './serverModelTypes.js';
|
|
8
|
-
|
|
9
|
-
type WithOptionalNonce<T> = Omit<T, 'nonce'> & {
|
|
10
|
-
nonce?: string;
|
|
11
|
-
};
|
|
12
|
-
interface SignatureParams {
|
|
13
|
-
/**
|
|
14
|
-
* Address derived from productId for placement (see getOrderVerifyingAddr)
|
|
15
|
-
* endpoint address for cancellation & listing
|
|
16
|
-
*/
|
|
17
|
-
verifyingAddr: string;
|
|
18
|
-
chainId: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Executes
|
|
22
|
-
*/
|
|
23
|
-
interface TriggerPlaceOrderParams extends SignatureParams {
|
|
24
|
-
id?: number;
|
|
25
|
-
productId: number;
|
|
26
|
-
order: EngineOrderParams;
|
|
27
|
-
triggerCriteria: TriggerCriteria;
|
|
28
|
-
spotLeverage?: boolean;
|
|
29
|
-
borrowMargin?: boolean;
|
|
30
|
-
digest?: string;
|
|
31
|
-
nonce?: string;
|
|
32
|
-
}
|
|
33
|
-
interface TriggerPlaceOrdersParams {
|
|
34
|
-
orders: TriggerPlaceOrderParams[];
|
|
35
|
-
/**
|
|
36
|
-
* If `true`, aborts the batch after the first failed order; if `false`, remaining orders continue to execute.
|
|
37
|
-
* If not provided, the default value is `false`.
|
|
38
|
-
*/
|
|
39
|
-
stopOnFailure?: boolean;
|
|
40
|
-
}
|
|
41
|
-
type TriggerCancelOrdersParams = SignatureParams & WithOptionalNonce<EIP712CancelOrdersParams>;
|
|
42
|
-
type TriggerCancelProductOrdersParams = SignatureParams & WithOptionalNonce<EIP712CancelProductOrdersParams>;
|
|
43
|
-
/**
|
|
44
|
-
* Queries
|
|
45
|
-
*/
|
|
46
|
-
interface TriggerListOrdersParams extends Subaccount, SignatureParams {
|
|
47
|
-
recvTime?: BigNumber;
|
|
48
|
-
productIds?: number[];
|
|
49
|
-
maxUpdateTimeInclusive?: number;
|
|
50
|
-
digests?: string[];
|
|
51
|
-
limit?: number;
|
|
52
|
-
statusTypes?: TriggerServerStatusTypeFilter[];
|
|
53
|
-
triggerTypes?: TriggerServerTriggerTypeFilter[];
|
|
54
|
-
reduceOnly?: boolean;
|
|
55
|
-
}
|
|
56
|
-
interface TriggerOrder {
|
|
57
|
-
productId: number;
|
|
58
|
-
triggerCriteria: TriggerCriteria;
|
|
59
|
-
price: BigNumber;
|
|
60
|
-
amount: BigNumber;
|
|
61
|
-
expiration: number;
|
|
62
|
-
nonce: string;
|
|
63
|
-
digest: string;
|
|
64
|
-
appendix: OrderAppendix;
|
|
65
|
-
}
|
|
66
|
-
interface TriggerOrderInfo {
|
|
67
|
-
order: TriggerOrder;
|
|
68
|
-
serverOrder: TriggerServerOrder;
|
|
69
|
-
status: TriggerOrderStatus;
|
|
70
|
-
updatedAt: number;
|
|
71
|
-
placementTime: number;
|
|
72
|
-
}
|
|
73
|
-
interface TriggerListOrdersResponse {
|
|
74
|
-
orders: TriggerOrderInfo[];
|
|
75
|
-
}
|
|
76
|
-
interface TriggerListTwapExecutionsParams {
|
|
77
|
-
digest: string;
|
|
78
|
-
}
|
|
79
|
-
type TwapExecutionStatus = {
|
|
80
|
-
type: 'pending';
|
|
81
|
-
} | {
|
|
82
|
-
type: 'executed';
|
|
83
|
-
executedTime: number;
|
|
84
|
-
executeResponse: EngineServerExecuteResult;
|
|
85
|
-
} | {
|
|
86
|
-
type: 'failed';
|
|
87
|
-
error: string;
|
|
88
|
-
} | {
|
|
89
|
-
type: 'cancelled';
|
|
90
|
-
reason: string;
|
|
91
|
-
};
|
|
92
|
-
interface TwapExecutionInfo {
|
|
93
|
-
executionId: number;
|
|
94
|
-
scheduledTime: number;
|
|
95
|
-
status: TwapExecutionStatus;
|
|
96
|
-
updatedAt: number;
|
|
97
|
-
}
|
|
98
|
-
interface TriggerListTwapExecutionsResponse {
|
|
99
|
-
executions: TwapExecutionInfo[];
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export type { TriggerCancelOrdersParams, TriggerCancelProductOrdersParams, TriggerListOrdersParams, TriggerListOrdersResponse, TriggerListTwapExecutionsParams, TriggerListTwapExecutionsResponse, TriggerOrder, TriggerOrderInfo, TriggerPlaceOrderParams, TriggerPlaceOrdersParams, TwapExecutionInfo, TwapExecutionStatus };
|
|
1
|
+
import { a as TriggerListTwapExecutionsParams, c as TriggerOrderInfo, d as TwapExecutionInfo, f as TwapExecutionStatus, i as TriggerListOrdersResponse, l as TriggerPlaceOrderParams, n as TriggerCancelProductOrdersParams, o as TriggerListTwapExecutionsResponse, r as TriggerListOrdersParams, s as TriggerOrder, t as TriggerCancelOrdersParams, u as TriggerPlaceOrdersParams } from "../clientTypes-CAwuc8HN.js";
|
|
2
|
+
export { TriggerCancelOrdersParams, TriggerCancelProductOrdersParams, TriggerListOrdersParams, TriggerListOrdersResponse, TriggerListTwapExecutionsParams, TriggerListTwapExecutionsResponse, TriggerOrder, TriggerOrderInfo, TriggerPlaceOrderParams, TriggerPlaceOrdersParams, TwapExecutionInfo, TwapExecutionStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
|
|
17
|
-
// src/types/index.ts
|
|
18
|
-
var types_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(types_exports);
|
|
20
|
-
__reExport(types_exports, require("./clientModelTypes.cjs"), module.exports);
|
|
21
|
-
__reExport(types_exports, require("./clientTypes.cjs"), module.exports);
|
|
22
|
-
__reExport(types_exports, require("./serverExecuteTypes.cjs"), module.exports);
|
|
23
|
-
__reExport(types_exports, require("./serverModelTypes.cjs"), module.exports);
|
|
24
|
-
__reExport(types_exports, require("./serverQueryTypes.cjs"), module.exports);
|
|
25
|
-
__reExport(types_exports, require("./TriggerServerFailureError.cjs"), module.exports);
|
|
26
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
-
0 && (module.exports = {
|
|
28
|
-
...require("./clientModelTypes.cjs"),
|
|
29
|
-
...require("./clientTypes.cjs"),
|
|
30
|
-
...require("./serverExecuteTypes.cjs"),
|
|
31
|
-
...require("./serverModelTypes.cjs"),
|
|
32
|
-
...require("./serverQueryTypes.cjs"),
|
|
33
|
-
...require("./TriggerServerFailureError.cjs")
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_types_TriggerServerFailureError = require("./TriggerServerFailureError.cjs");
|
|
3
|
+
exports.TriggerServerFailureError = require_types_TriggerServerFailureError.TriggerServerFailureError;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '@nadohq/shared';
|
|
9
|
-
import 'bignumber.js';
|
|
1
|
+
import { a as TriggerCriteria, i as TimeTriggerCriteria, n as PriceTriggerDependency, o as TriggerCriteriaType, r as PriceTriggerRequirementType, s as TriggerOrderStatus, t as PriceTriggerCriteria } from "../clientModelTypes-C7K17sS2.cjs";
|
|
2
|
+
import { a as TriggerServerTriggerCriteria, i as TriggerServerTimeTriggerCriteria, n as TriggerServerPriceRequirement, r as TriggerServerPriceTriggerCriteria, t as TriggerServerDependency } from "../serverModelTypes-BoBLlAMO.cjs";
|
|
3
|
+
import { a as TriggerServerExecuteResult, c as TriggerServerPlaceOrdersParams, i as TriggerServerExecuteRequestType, n as TriggerServerCancelProductOrdersParams, o as TriggerServerExecuteSuccessResult, r as TriggerServerExecuteRequestByType, s as TriggerServerPlaceOrderParams, t as TriggerServerCancelOrdersParams } from "../serverExecuteTypes-wEqxZgZV.cjs";
|
|
4
|
+
import { _ as TriggerServerTwapExecutionStatus, a as TriggerServerOrder, c as TriggerServerQueryFailureResponse, d as TriggerServerQueryResponse, f as TriggerServerQueryResponseByType, g as TriggerServerTwapExecutionInfo, h as TriggerServerTriggerTypeFilter, i as TriggerServerListTwapExecutionsParams, l as TriggerServerQueryRequestByType, m as TriggerServerStatusTypeFilter, n as TriggerServerListTriggerOrdersParams, o as TriggerServerOrderInfo, p as TriggerServerQuerySuccessResponse, r as TriggerServerListTriggerOrdersResponse, s as TriggerServerOrderStatus, t as TriggerServerCancelReason, u as TriggerServerQueryRequestType, v as TriggerServerTwapExecutionsResponse } from "../serverQueryTypes-Cj3yVnLR.cjs";
|
|
5
|
+
import { a as TriggerListTwapExecutionsParams, c as TriggerOrderInfo, d as TwapExecutionInfo, f as TwapExecutionStatus, i as TriggerListOrdersResponse, l as TriggerPlaceOrderParams, n as TriggerCancelProductOrdersParams, o as TriggerListTwapExecutionsResponse, r as TriggerListOrdersParams, s as TriggerOrder, t as TriggerCancelOrdersParams, u as TriggerPlaceOrdersParams } from "../clientTypes-Bn3lA19Y.cjs";
|
|
6
|
+
import { t as TriggerServerFailureError } from "../TriggerServerFailureError-BfVn3Cd1.cjs";
|
|
7
|
+
export { PriceTriggerCriteria, PriceTriggerDependency, PriceTriggerRequirementType, TimeTriggerCriteria, TriggerCancelOrdersParams, TriggerCancelProductOrdersParams, TriggerCriteria, TriggerCriteriaType, TriggerListOrdersParams, TriggerListOrdersResponse, TriggerListTwapExecutionsParams, TriggerListTwapExecutionsResponse, TriggerOrder, TriggerOrderInfo, TriggerOrderStatus, TriggerPlaceOrderParams, TriggerPlaceOrdersParams, TriggerServerCancelOrdersParams, TriggerServerCancelProductOrdersParams, TriggerServerCancelReason, TriggerServerDependency, TriggerServerExecuteRequestByType, TriggerServerExecuteRequestType, TriggerServerExecuteResult, TriggerServerExecuteSuccessResult, TriggerServerFailureError, TriggerServerListTriggerOrdersParams, TriggerServerListTriggerOrdersResponse, TriggerServerListTwapExecutionsParams, TriggerServerOrder, TriggerServerOrderInfo, TriggerServerOrderStatus, TriggerServerPlaceOrderParams, TriggerServerPlaceOrdersParams, TriggerServerPriceRequirement, TriggerServerPriceTriggerCriteria, TriggerServerQueryFailureResponse, TriggerServerQueryRequestByType, TriggerServerQueryRequestType, TriggerServerQueryResponse, TriggerServerQueryResponseByType, TriggerServerQuerySuccessResponse, TriggerServerStatusTypeFilter, TriggerServerTimeTriggerCriteria, TriggerServerTriggerCriteria, TriggerServerTriggerTypeFilter, TriggerServerTwapExecutionInfo, TriggerServerTwapExecutionStatus, TriggerServerTwapExecutionsResponse, TwapExecutionInfo, TwapExecutionStatus };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import '@nadohq/shared';
|
|
9
|
-
import 'bignumber.js';
|
|
1
|
+
import { a as TriggerCriteria, i as TimeTriggerCriteria, n as PriceTriggerDependency, o as TriggerCriteriaType, r as PriceTriggerRequirementType, s as TriggerOrderStatus, t as PriceTriggerCriteria } from "../clientModelTypes-CZv3IB5D.js";
|
|
2
|
+
import { a as TriggerServerTriggerCriteria, i as TriggerServerTimeTriggerCriteria, n as TriggerServerPriceRequirement, r as TriggerServerPriceTriggerCriteria, t as TriggerServerDependency } from "../serverModelTypes-Jerv8TNA.js";
|
|
3
|
+
import { a as TriggerServerExecuteResult, c as TriggerServerPlaceOrdersParams, i as TriggerServerExecuteRequestType, n as TriggerServerCancelProductOrdersParams, o as TriggerServerExecuteSuccessResult, r as TriggerServerExecuteRequestByType, s as TriggerServerPlaceOrderParams, t as TriggerServerCancelOrdersParams } from "../serverExecuteTypes-CoCnexH8.js";
|
|
4
|
+
import { _ as TriggerServerTwapExecutionStatus, a as TriggerServerOrder, c as TriggerServerQueryFailureResponse, d as TriggerServerQueryResponse, f as TriggerServerQueryResponseByType, g as TriggerServerTwapExecutionInfo, h as TriggerServerTriggerTypeFilter, i as TriggerServerListTwapExecutionsParams, l as TriggerServerQueryRequestByType, m as TriggerServerStatusTypeFilter, n as TriggerServerListTriggerOrdersParams, o as TriggerServerOrderInfo, p as TriggerServerQuerySuccessResponse, r as TriggerServerListTriggerOrdersResponse, s as TriggerServerOrderStatus, t as TriggerServerCancelReason, u as TriggerServerQueryRequestType, v as TriggerServerTwapExecutionsResponse } from "../serverQueryTypes-C-RiciWB.js";
|
|
5
|
+
import { a as TriggerListTwapExecutionsParams, c as TriggerOrderInfo, d as TwapExecutionInfo, f as TwapExecutionStatus, i as TriggerListOrdersResponse, l as TriggerPlaceOrderParams, n as TriggerCancelProductOrdersParams, o as TriggerListTwapExecutionsResponse, r as TriggerListOrdersParams, s as TriggerOrder, t as TriggerCancelOrdersParams, u as TriggerPlaceOrdersParams } from "../clientTypes-CAwuc8HN.js";
|
|
6
|
+
import { t as TriggerServerFailureError } from "../TriggerServerFailureError-DCrjct86.js";
|
|
7
|
+
export { PriceTriggerCriteria, PriceTriggerDependency, PriceTriggerRequirementType, TimeTriggerCriteria, TriggerCancelOrdersParams, TriggerCancelProductOrdersParams, TriggerCriteria, TriggerCriteriaType, TriggerListOrdersParams, TriggerListOrdersResponse, TriggerListTwapExecutionsParams, TriggerListTwapExecutionsResponse, TriggerOrder, TriggerOrderInfo, TriggerOrderStatus, TriggerPlaceOrderParams, TriggerPlaceOrdersParams, TriggerServerCancelOrdersParams, TriggerServerCancelProductOrdersParams, TriggerServerCancelReason, TriggerServerDependency, TriggerServerExecuteRequestByType, TriggerServerExecuteRequestType, TriggerServerExecuteResult, TriggerServerExecuteSuccessResult, TriggerServerFailureError, TriggerServerListTriggerOrdersParams, TriggerServerListTriggerOrdersResponse, TriggerServerListTwapExecutionsParams, TriggerServerOrder, TriggerServerOrderInfo, TriggerServerOrderStatus, TriggerServerPlaceOrderParams, TriggerServerPlaceOrdersParams, TriggerServerPriceRequirement, TriggerServerPriceTriggerCriteria, TriggerServerQueryFailureResponse, TriggerServerQueryRequestByType, TriggerServerQueryRequestType, TriggerServerQueryResponse, TriggerServerQueryResponseByType, TriggerServerQuerySuccessResponse, TriggerServerStatusTypeFilter, TriggerServerTimeTriggerCriteria, TriggerServerTriggerCriteria, TriggerServerTriggerTypeFilter, TriggerServerTwapExecutionInfo, TriggerServerTwapExecutionStatus, TriggerServerTwapExecutionsResponse, TwapExecutionInfo, TwapExecutionStatus };
|
package/dist/types/index.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export * from "./clientTypes.js";
|
|
4
|
-
export * from "./serverExecuteTypes.js";
|
|
5
|
-
export * from "./serverModelTypes.js";
|
|
6
|
-
export * from "./serverQueryTypes.js";
|
|
7
|
-
export * from "./TriggerServerFailureError.js";
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { TriggerServerFailureError } from "./TriggerServerFailureError.js";
|
|
2
|
+
export { TriggerServerFailureError };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/serverExecuteTypes.ts
|
|
17
|
-
var serverExecuteTypes_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(serverExecuteTypes_exports);
|
|
19
|
-
//# sourceMappingURL=serverExecuteTypes.cjs.map
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { TriggerServerTriggerCriteria } from './serverModelTypes.cjs';
|
|
4
|
-
|
|
5
|
-
interface TriggerServerPlaceOrderParams {
|
|
6
|
-
id: number | null;
|
|
7
|
-
product_id: number;
|
|
8
|
-
order: EIP712OrderValues;
|
|
9
|
-
trigger: TriggerServerTriggerCriteria;
|
|
10
|
-
signature: string;
|
|
11
|
-
digest: string | null;
|
|
12
|
-
spot_leverage: boolean | null;
|
|
13
|
-
borrow_margin: boolean | null;
|
|
14
|
-
}
|
|
15
|
-
type TriggerServerCancelOrdersParams = EngineServerExecuteRequestByType['cancel_orders'];
|
|
16
|
-
type TriggerServerCancelProductOrdersParams = EngineServerExecuteRequestByType['cancel_product_orders'];
|
|
17
|
-
interface TriggerServerPlaceOrdersParams {
|
|
18
|
-
orders: TriggerServerPlaceOrderParams[];
|
|
19
|
-
stop_on_failure: boolean | null;
|
|
20
|
-
}
|
|
21
|
-
interface TriggerServerExecuteRequestByType {
|
|
22
|
-
place_order: TriggerServerPlaceOrderParams;
|
|
23
|
-
place_orders: TriggerServerPlaceOrdersParams;
|
|
24
|
-
cancel_orders: TriggerServerCancelOrdersParams;
|
|
25
|
-
cancel_product_orders: TriggerServerCancelProductOrdersParams;
|
|
26
|
-
}
|
|
27
|
-
type TriggerServerExecuteRequestType = keyof TriggerServerExecuteRequestByType;
|
|
28
|
-
type TriggerServerExecuteSuccessResult<T extends TriggerServerExecuteRequestType = TriggerServerExecuteRequestType> = EngineServerExecuteSuccessResult<T>;
|
|
29
|
-
type TriggerServerExecuteResult<T extends TriggerServerExecuteRequestType = TriggerServerExecuteRequestType> = TriggerServerExecuteSuccessResult<T> | EngineServerExecuteFailureResult;
|
|
30
|
-
|
|
31
|
-
export type { TriggerServerCancelOrdersParams, TriggerServerCancelProductOrdersParams, TriggerServerExecuteRequestByType, TriggerServerExecuteRequestType, TriggerServerExecuteResult, TriggerServerExecuteSuccessResult, TriggerServerPlaceOrderParams, TriggerServerPlaceOrdersParams };
|
|
1
|
+
import { a as TriggerServerExecuteResult, c as TriggerServerPlaceOrdersParams, i as TriggerServerExecuteRequestType, n as TriggerServerCancelProductOrdersParams, o as TriggerServerExecuteSuccessResult, r as TriggerServerExecuteRequestByType, s as TriggerServerPlaceOrderParams, t as TriggerServerCancelOrdersParams } from "../serverExecuteTypes-wEqxZgZV.cjs";
|
|
2
|
+
export { TriggerServerCancelOrdersParams, TriggerServerCancelProductOrdersParams, TriggerServerExecuteRequestByType, TriggerServerExecuteRequestType, TriggerServerExecuteResult, TriggerServerExecuteSuccessResult, TriggerServerPlaceOrderParams, TriggerServerPlaceOrdersParams };
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { TriggerServerTriggerCriteria } from './serverModelTypes.js';
|
|
4
|
-
|
|
5
|
-
interface TriggerServerPlaceOrderParams {
|
|
6
|
-
id: number | null;
|
|
7
|
-
product_id: number;
|
|
8
|
-
order: EIP712OrderValues;
|
|
9
|
-
trigger: TriggerServerTriggerCriteria;
|
|
10
|
-
signature: string;
|
|
11
|
-
digest: string | null;
|
|
12
|
-
spot_leverage: boolean | null;
|
|
13
|
-
borrow_margin: boolean | null;
|
|
14
|
-
}
|
|
15
|
-
type TriggerServerCancelOrdersParams = EngineServerExecuteRequestByType['cancel_orders'];
|
|
16
|
-
type TriggerServerCancelProductOrdersParams = EngineServerExecuteRequestByType['cancel_product_orders'];
|
|
17
|
-
interface TriggerServerPlaceOrdersParams {
|
|
18
|
-
orders: TriggerServerPlaceOrderParams[];
|
|
19
|
-
stop_on_failure: boolean | null;
|
|
20
|
-
}
|
|
21
|
-
interface TriggerServerExecuteRequestByType {
|
|
22
|
-
place_order: TriggerServerPlaceOrderParams;
|
|
23
|
-
place_orders: TriggerServerPlaceOrdersParams;
|
|
24
|
-
cancel_orders: TriggerServerCancelOrdersParams;
|
|
25
|
-
cancel_product_orders: TriggerServerCancelProductOrdersParams;
|
|
26
|
-
}
|
|
27
|
-
type TriggerServerExecuteRequestType = keyof TriggerServerExecuteRequestByType;
|
|
28
|
-
type TriggerServerExecuteSuccessResult<T extends TriggerServerExecuteRequestType = TriggerServerExecuteRequestType> = EngineServerExecuteSuccessResult<T>;
|
|
29
|
-
type TriggerServerExecuteResult<T extends TriggerServerExecuteRequestType = TriggerServerExecuteRequestType> = TriggerServerExecuteSuccessResult<T> | EngineServerExecuteFailureResult;
|
|
30
|
-
|
|
31
|
-
export type { TriggerServerCancelOrdersParams, TriggerServerCancelProductOrdersParams, TriggerServerExecuteRequestByType, TriggerServerExecuteRequestType, TriggerServerExecuteResult, TriggerServerExecuteSuccessResult, TriggerServerPlaceOrderParams, TriggerServerPlaceOrdersParams };
|
|
1
|
+
import { a as TriggerServerExecuteResult, c as TriggerServerPlaceOrdersParams, i as TriggerServerExecuteRequestType, n as TriggerServerCancelProductOrdersParams, o as TriggerServerExecuteSuccessResult, r as TriggerServerExecuteRequestByType, s as TriggerServerPlaceOrderParams, t as TriggerServerCancelOrdersParams } from "../serverExecuteTypes-CoCnexH8.js";
|
|
2
|
+
export { TriggerServerCancelOrdersParams, TriggerServerCancelProductOrdersParams, TriggerServerExecuteRequestByType, TriggerServerExecuteRequestType, TriggerServerExecuteResult, TriggerServerExecuteSuccessResult, TriggerServerPlaceOrderParams, TriggerServerPlaceOrdersParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/serverModelTypes.ts
|
|
17
|
-
var serverModelTypes_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(serverModelTypes_exports);
|
|
19
|
-
//# sourceMappingURL=serverModelTypes.cjs.map
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Whether to trigger on partial fills.
|
|
5
|
-
*/
|
|
6
|
-
on_partial_fill: boolean;
|
|
7
|
-
}
|
|
8
|
-
type TriggerServerPriceRequirement = {
|
|
9
|
-
oracle_price_above: string;
|
|
10
|
-
} | {
|
|
11
|
-
oracle_price_below: string;
|
|
12
|
-
} | {
|
|
13
|
-
last_price_above: string;
|
|
14
|
-
} | {
|
|
15
|
-
last_price_below: string;
|
|
16
|
-
} | {
|
|
17
|
-
mid_price_above: string;
|
|
18
|
-
} | {
|
|
19
|
-
mid_price_below: string;
|
|
20
|
-
};
|
|
21
|
-
interface TriggerServerPriceTriggerCriteria {
|
|
22
|
-
price_requirement: TriggerServerPriceRequirement;
|
|
23
|
-
dependency?: TriggerServerDependency;
|
|
24
|
-
}
|
|
25
|
-
interface TriggerServerTimeTriggerCriteria {
|
|
26
|
-
/**
|
|
27
|
-
* Trigger interval in seconds
|
|
28
|
-
*/
|
|
29
|
-
interval: number;
|
|
30
|
-
/**
|
|
31
|
-
* By default, trigger service will split up orders as per total amount / interval
|
|
32
|
-
* If you want to specify the amounts for each interval, you can provide them here.
|
|
33
|
-
*/
|
|
34
|
-
amounts?: string[];
|
|
35
|
-
}
|
|
36
|
-
type TriggerServerTriggerCriteria = {
|
|
37
|
-
price_trigger: TriggerServerPriceTriggerCriteria;
|
|
38
|
-
} | {
|
|
39
|
-
time_trigger: TriggerServerTimeTriggerCriteria;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export type { TriggerServerDependency, TriggerServerPriceRequirement, TriggerServerPriceTriggerCriteria, TriggerServerTimeTriggerCriteria, TriggerServerTriggerCriteria };
|
|
1
|
+
import { a as TriggerServerTriggerCriteria, i as TriggerServerTimeTriggerCriteria, n as TriggerServerPriceRequirement, r as TriggerServerPriceTriggerCriteria, t as TriggerServerDependency } from "../serverModelTypes-BoBLlAMO.cjs";
|
|
2
|
+
export { TriggerServerDependency, TriggerServerPriceRequirement, TriggerServerPriceTriggerCriteria, TriggerServerTimeTriggerCriteria, TriggerServerTriggerCriteria };
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Whether to trigger on partial fills.
|
|
5
|
-
*/
|
|
6
|
-
on_partial_fill: boolean;
|
|
7
|
-
}
|
|
8
|
-
type TriggerServerPriceRequirement = {
|
|
9
|
-
oracle_price_above: string;
|
|
10
|
-
} | {
|
|
11
|
-
oracle_price_below: string;
|
|
12
|
-
} | {
|
|
13
|
-
last_price_above: string;
|
|
14
|
-
} | {
|
|
15
|
-
last_price_below: string;
|
|
16
|
-
} | {
|
|
17
|
-
mid_price_above: string;
|
|
18
|
-
} | {
|
|
19
|
-
mid_price_below: string;
|
|
20
|
-
};
|
|
21
|
-
interface TriggerServerPriceTriggerCriteria {
|
|
22
|
-
price_requirement: TriggerServerPriceRequirement;
|
|
23
|
-
dependency?: TriggerServerDependency;
|
|
24
|
-
}
|
|
25
|
-
interface TriggerServerTimeTriggerCriteria {
|
|
26
|
-
/**
|
|
27
|
-
* Trigger interval in seconds
|
|
28
|
-
*/
|
|
29
|
-
interval: number;
|
|
30
|
-
/**
|
|
31
|
-
* By default, trigger service will split up orders as per total amount / interval
|
|
32
|
-
* If you want to specify the amounts for each interval, you can provide them here.
|
|
33
|
-
*/
|
|
34
|
-
amounts?: string[];
|
|
35
|
-
}
|
|
36
|
-
type TriggerServerTriggerCriteria = {
|
|
37
|
-
price_trigger: TriggerServerPriceTriggerCriteria;
|
|
38
|
-
} | {
|
|
39
|
-
time_trigger: TriggerServerTimeTriggerCriteria;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export type { TriggerServerDependency, TriggerServerPriceRequirement, TriggerServerPriceTriggerCriteria, TriggerServerTimeTriggerCriteria, TriggerServerTriggerCriteria };
|
|
1
|
+
import { a as TriggerServerTriggerCriteria, i as TriggerServerTimeTriggerCriteria, n as TriggerServerPriceRequirement, r as TriggerServerPriceTriggerCriteria, t as TriggerServerDependency } from "../serverModelTypes-Jerv8TNA.js";
|
|
2
|
+
export { TriggerServerDependency, TriggerServerPriceRequirement, TriggerServerPriceTriggerCriteria, TriggerServerTimeTriggerCriteria, TriggerServerTriggerCriteria };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/serverQueryTypes.ts
|
|
17
|
-
var serverQueryTypes_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(serverQueryTypes_exports);
|
|
19
|
-
//# sourceMappingURL=serverQueryTypes.cjs.map
|