@orderly.network/types 0.0.7 → 0.0.9
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/index.d.mts +54 -27
- package/dist/index.d.ts +54 -27
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -16,6 +16,33 @@ declare enum ExchangeStatusEnum {
|
|
|
16
16
|
Maintain = 1
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
declare enum OrderType {
|
|
20
|
+
LIMIT = "LIMIT",
|
|
21
|
+
MARKET = "MARKET",
|
|
22
|
+
IOC = "IOC",
|
|
23
|
+
FOK = "FOK",
|
|
24
|
+
POST_ONLY = "POST_ONLY",
|
|
25
|
+
ASK = "ASK",
|
|
26
|
+
BID = "BID"
|
|
27
|
+
}
|
|
28
|
+
declare enum OrderSide {
|
|
29
|
+
BUY = "BUY",
|
|
30
|
+
SELL = "SELL"
|
|
31
|
+
}
|
|
32
|
+
interface OrderEntity {
|
|
33
|
+
symbol?: string;
|
|
34
|
+
order_type: OrderType;
|
|
35
|
+
order_type_ext?: OrderType;
|
|
36
|
+
order_price?: string | number;
|
|
37
|
+
order_quantity?: string | number;
|
|
38
|
+
order_amount?: number;
|
|
39
|
+
visible_quantity?: number;
|
|
40
|
+
reduce_only?: boolean;
|
|
41
|
+
side: OrderSide;
|
|
42
|
+
broker_id?: string;
|
|
43
|
+
total?: string | number;
|
|
44
|
+
}
|
|
45
|
+
|
|
19
46
|
declare namespace API {
|
|
20
47
|
interface Token {
|
|
21
48
|
token: string;
|
|
@@ -159,6 +186,13 @@ declare namespace API {
|
|
|
159
186
|
pnl_24_h: number;
|
|
160
187
|
fee_24_h: number;
|
|
161
188
|
}
|
|
189
|
+
interface Trade {
|
|
190
|
+
symbol: Symbol;
|
|
191
|
+
side: OrderSide;
|
|
192
|
+
executed_price: number;
|
|
193
|
+
executed_quantity: number;
|
|
194
|
+
executed_timestamp: number;
|
|
195
|
+
}
|
|
162
196
|
interface Holding {
|
|
163
197
|
token: string;
|
|
164
198
|
holding: number;
|
|
@@ -185,6 +219,26 @@ declare namespace API {
|
|
|
185
219
|
[key: string]: number;
|
|
186
220
|
};
|
|
187
221
|
}
|
|
222
|
+
interface Chain {
|
|
223
|
+
dexs: string[];
|
|
224
|
+
network_infos: NetworkInfos;
|
|
225
|
+
token_infos: TokenInfo[];
|
|
226
|
+
}
|
|
227
|
+
interface NetworkInfos {
|
|
228
|
+
name: string;
|
|
229
|
+
public_rpc_url: string;
|
|
230
|
+
chain_id: number;
|
|
231
|
+
currency_symbol: string;
|
|
232
|
+
bridge_enable: boolean;
|
|
233
|
+
mainnet: boolean;
|
|
234
|
+
explorer_base_url: string;
|
|
235
|
+
}
|
|
236
|
+
interface TokenInfo {
|
|
237
|
+
address: string;
|
|
238
|
+
symbol: string;
|
|
239
|
+
decimals: number;
|
|
240
|
+
swap_enable: boolean;
|
|
241
|
+
}
|
|
188
242
|
}
|
|
189
243
|
declare namespace WSMessage {
|
|
190
244
|
interface Ticker {
|
|
@@ -203,31 +257,4 @@ declare namespace WSMessage {
|
|
|
203
257
|
}
|
|
204
258
|
}
|
|
205
259
|
|
|
206
|
-
declare enum OrderType {
|
|
207
|
-
LIMIT = "LIMIT",
|
|
208
|
-
MARKET = "MARKET",
|
|
209
|
-
IOC = "IOC",
|
|
210
|
-
FOK = "FOK",
|
|
211
|
-
POST_ONLY = "POST_ONLY",
|
|
212
|
-
ASK = "ASK",
|
|
213
|
-
BID = "BID"
|
|
214
|
-
}
|
|
215
|
-
declare enum OrderSide {
|
|
216
|
-
BUY = "BUY",
|
|
217
|
-
SELL = "SELL"
|
|
218
|
-
}
|
|
219
|
-
interface OrderEntity {
|
|
220
|
-
symbol?: string;
|
|
221
|
-
order_type: OrderType;
|
|
222
|
-
order_type_ext?: OrderType;
|
|
223
|
-
order_price?: string | number;
|
|
224
|
-
order_quantity?: string | number;
|
|
225
|
-
order_amount?: number;
|
|
226
|
-
visible_quantity?: number;
|
|
227
|
-
reduce_only?: boolean;
|
|
228
|
-
side: OrderSide;
|
|
229
|
-
broker_id?: string;
|
|
230
|
-
total?: string | number;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
260
|
export { API, AccountStatusEnum, ExchangeStatusEnum, OrderEntity, OrderSide, OrderType, SystemStateEnum, WSMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,33 @@ declare enum ExchangeStatusEnum {
|
|
|
16
16
|
Maintain = 1
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
declare enum OrderType {
|
|
20
|
+
LIMIT = "LIMIT",
|
|
21
|
+
MARKET = "MARKET",
|
|
22
|
+
IOC = "IOC",
|
|
23
|
+
FOK = "FOK",
|
|
24
|
+
POST_ONLY = "POST_ONLY",
|
|
25
|
+
ASK = "ASK",
|
|
26
|
+
BID = "BID"
|
|
27
|
+
}
|
|
28
|
+
declare enum OrderSide {
|
|
29
|
+
BUY = "BUY",
|
|
30
|
+
SELL = "SELL"
|
|
31
|
+
}
|
|
32
|
+
interface OrderEntity {
|
|
33
|
+
symbol?: string;
|
|
34
|
+
order_type: OrderType;
|
|
35
|
+
order_type_ext?: OrderType;
|
|
36
|
+
order_price?: string | number;
|
|
37
|
+
order_quantity?: string | number;
|
|
38
|
+
order_amount?: number;
|
|
39
|
+
visible_quantity?: number;
|
|
40
|
+
reduce_only?: boolean;
|
|
41
|
+
side: OrderSide;
|
|
42
|
+
broker_id?: string;
|
|
43
|
+
total?: string | number;
|
|
44
|
+
}
|
|
45
|
+
|
|
19
46
|
declare namespace API {
|
|
20
47
|
interface Token {
|
|
21
48
|
token: string;
|
|
@@ -159,6 +186,13 @@ declare namespace API {
|
|
|
159
186
|
pnl_24_h: number;
|
|
160
187
|
fee_24_h: number;
|
|
161
188
|
}
|
|
189
|
+
interface Trade {
|
|
190
|
+
symbol: Symbol;
|
|
191
|
+
side: OrderSide;
|
|
192
|
+
executed_price: number;
|
|
193
|
+
executed_quantity: number;
|
|
194
|
+
executed_timestamp: number;
|
|
195
|
+
}
|
|
162
196
|
interface Holding {
|
|
163
197
|
token: string;
|
|
164
198
|
holding: number;
|
|
@@ -185,6 +219,26 @@ declare namespace API {
|
|
|
185
219
|
[key: string]: number;
|
|
186
220
|
};
|
|
187
221
|
}
|
|
222
|
+
interface Chain {
|
|
223
|
+
dexs: string[];
|
|
224
|
+
network_infos: NetworkInfos;
|
|
225
|
+
token_infos: TokenInfo[];
|
|
226
|
+
}
|
|
227
|
+
interface NetworkInfos {
|
|
228
|
+
name: string;
|
|
229
|
+
public_rpc_url: string;
|
|
230
|
+
chain_id: number;
|
|
231
|
+
currency_symbol: string;
|
|
232
|
+
bridge_enable: boolean;
|
|
233
|
+
mainnet: boolean;
|
|
234
|
+
explorer_base_url: string;
|
|
235
|
+
}
|
|
236
|
+
interface TokenInfo {
|
|
237
|
+
address: string;
|
|
238
|
+
symbol: string;
|
|
239
|
+
decimals: number;
|
|
240
|
+
swap_enable: boolean;
|
|
241
|
+
}
|
|
188
242
|
}
|
|
189
243
|
declare namespace WSMessage {
|
|
190
244
|
interface Ticker {
|
|
@@ -203,31 +257,4 @@ declare namespace WSMessage {
|
|
|
203
257
|
}
|
|
204
258
|
}
|
|
205
259
|
|
|
206
|
-
declare enum OrderType {
|
|
207
|
-
LIMIT = "LIMIT",
|
|
208
|
-
MARKET = "MARKET",
|
|
209
|
-
IOC = "IOC",
|
|
210
|
-
FOK = "FOK",
|
|
211
|
-
POST_ONLY = "POST_ONLY",
|
|
212
|
-
ASK = "ASK",
|
|
213
|
-
BID = "BID"
|
|
214
|
-
}
|
|
215
|
-
declare enum OrderSide {
|
|
216
|
-
BUY = "BUY",
|
|
217
|
-
SELL = "SELL"
|
|
218
|
-
}
|
|
219
|
-
interface OrderEntity {
|
|
220
|
-
symbol?: string;
|
|
221
|
-
order_type: OrderType;
|
|
222
|
-
order_type_ext?: OrderType;
|
|
223
|
-
order_price?: string | number;
|
|
224
|
-
order_quantity?: string | number;
|
|
225
|
-
order_amount?: number;
|
|
226
|
-
visible_quantity?: number;
|
|
227
|
-
reduce_only?: boolean;
|
|
228
|
-
side: OrderSide;
|
|
229
|
-
broker_id?: string;
|
|
230
|
-
total?: string | number;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
260
|
export { API, AccountStatusEnum, ExchangeStatusEnum, OrderEntity, OrderSide, OrderType, SystemStateEnum, WSMessage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderly.network/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"babel-jest": "^29.6.1",
|
|
17
17
|
"jest": "^29.6.1",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
|
-
"tsconfig": "0.0.
|
|
19
|
+
"tsconfig": "0.0.7"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|