@0xarchive/sdk 0.3.3 → 0.3.5
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 +127 -58
- package/dist/index.d.mts +400 -400
- package/dist/index.d.ts +400 -400
- package/dist/index.js +71 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ interface ApiMeta {
|
|
|
20
20
|
/** Number of records returned */
|
|
21
21
|
count: number;
|
|
22
22
|
/** Cursor for next page (if available) */
|
|
23
|
-
|
|
23
|
+
nextCursor?: string;
|
|
24
24
|
/** Unique request ID for debugging */
|
|
25
|
-
|
|
25
|
+
requestId: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Standard API response wrapper
|
|
@@ -76,11 +76,11 @@ interface OrderBook {
|
|
|
76
76
|
/** Ask price levels (best ask first) */
|
|
77
77
|
asks: PriceLevel[];
|
|
78
78
|
/** Mid price (best bid + best ask) / 2 */
|
|
79
|
-
|
|
79
|
+
midPrice?: string;
|
|
80
80
|
/** Spread in absolute terms (best ask - best bid) */
|
|
81
81
|
spread?: string;
|
|
82
82
|
/** Spread in basis points */
|
|
83
|
-
|
|
83
|
+
spreadBps?: string;
|
|
84
84
|
}
|
|
85
85
|
interface GetOrderBookParams {
|
|
86
86
|
/** Timestamp to get order book at (Unix ms or ISO string) */
|
|
@@ -94,8 +94,8 @@ interface OrderBookHistoryParams extends TimeRangeParams {
|
|
|
94
94
|
}
|
|
95
95
|
/** Trade side: 'A' (ask/sell) or 'B' (bid/buy) */
|
|
96
96
|
type TradeSide = 'A' | 'B';
|
|
97
|
-
/** Position direction */
|
|
98
|
-
type TradeDirection =
|
|
97
|
+
/** Position direction (can include 'Open Long', 'Close Short', 'Long > Short', etc.) */
|
|
98
|
+
type TradeDirection = string;
|
|
99
99
|
/** Data source: 's3' (historical), 'api' (REST backfill), 'ws' (websocket), 'live' (real-time ingestion) */
|
|
100
100
|
type DataSource = 's3' | 'ws' | 'api' | 'live';
|
|
101
101
|
/**
|
|
@@ -113,31 +113,31 @@ interface Trade {
|
|
|
113
113
|
/** Execution timestamp (UTC) */
|
|
114
114
|
timestamp: string;
|
|
115
115
|
/** Blockchain transaction hash */
|
|
116
|
-
|
|
116
|
+
txHash?: string;
|
|
117
117
|
/** Unique trade ID */
|
|
118
|
-
|
|
118
|
+
tradeId?: number;
|
|
119
119
|
/** Associated order ID */
|
|
120
|
-
|
|
120
|
+
orderId?: number;
|
|
121
121
|
/** True if taker (crossed the spread), false if maker */
|
|
122
122
|
crossed?: boolean;
|
|
123
123
|
/** Trading fee amount */
|
|
124
124
|
fee?: string;
|
|
125
125
|
/** Fee denomination (e.g., USDC) */
|
|
126
|
-
|
|
126
|
+
feeToken?: string;
|
|
127
127
|
/** Realized PnL if closing a position */
|
|
128
|
-
|
|
128
|
+
closedPnl?: string;
|
|
129
129
|
/** Position direction */
|
|
130
130
|
direction?: TradeDirection;
|
|
131
131
|
/** Position size before this trade */
|
|
132
|
-
|
|
132
|
+
startPosition?: string;
|
|
133
133
|
/** Data source */
|
|
134
134
|
source?: DataSource;
|
|
135
135
|
/** User's wallet address (for fill-level data from REST API) */
|
|
136
|
-
|
|
136
|
+
userAddress?: string;
|
|
137
137
|
/** Maker's wallet address (for market-level WebSocket trades) */
|
|
138
|
-
|
|
138
|
+
makerAddress?: string;
|
|
139
139
|
/** Taker's wallet address (for market-level WebSocket trades) */
|
|
140
|
-
|
|
140
|
+
takerAddress?: string;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* @deprecated Use GetTradesCursorParams instead for better performance with large datasets
|
|
@@ -204,7 +204,7 @@ interface FundingRate {
|
|
|
204
204
|
/** Funding timestamp (UTC) */
|
|
205
205
|
timestamp: string;
|
|
206
206
|
/** Funding rate as decimal (e.g., 0.0001 = 0.01%) */
|
|
207
|
-
|
|
207
|
+
fundingRate: string;
|
|
208
208
|
/** Premium component of funding rate */
|
|
209
209
|
premium?: string;
|
|
210
210
|
}
|
|
@@ -217,21 +217,21 @@ interface OpenInterest {
|
|
|
217
217
|
/** Snapshot timestamp (UTC) */
|
|
218
218
|
timestamp: string;
|
|
219
219
|
/** Total open interest in contracts */
|
|
220
|
-
|
|
220
|
+
openInterest: string;
|
|
221
221
|
/** Mark price used for liquidations */
|
|
222
|
-
|
|
222
|
+
markPrice?: string;
|
|
223
223
|
/** Oracle price from external feed */
|
|
224
|
-
|
|
224
|
+
oraclePrice?: string;
|
|
225
225
|
/** 24-hour notional volume */
|
|
226
|
-
|
|
226
|
+
dayNtlVolume?: string;
|
|
227
227
|
/** Price 24 hours ago */
|
|
228
|
-
|
|
228
|
+
prevDayPrice?: string;
|
|
229
229
|
/** Current mid price */
|
|
230
|
-
|
|
230
|
+
midPrice?: string;
|
|
231
231
|
/** Impact bid price for liquidations */
|
|
232
|
-
|
|
232
|
+
impactBidPrice?: string;
|
|
233
233
|
/** Impact ask price for liquidations */
|
|
234
|
-
|
|
234
|
+
impactAskPrice?: string;
|
|
235
235
|
}
|
|
236
236
|
/** WebSocket channel types. Note: ticker/all_tickers are real-time only. */
|
|
237
237
|
type WsChannel = 'orderbook' | 'trades' | 'ticker' | 'all_tickers';
|
|
@@ -1026,7 +1026,7 @@ declare class OxArchiveWs {
|
|
|
1026
1026
|
* // Validate data manually
|
|
1027
1027
|
* const result = OrderBookSchema.safeParse(data);
|
|
1028
1028
|
* if (result.success) {
|
|
1029
|
-
* console.log(result.data.
|
|
1029
|
+
* console.log(result.data.midPrice);
|
|
1030
1030
|
* } else {
|
|
1031
1031
|
* console.error(result.error);
|
|
1032
1032
|
* }
|
|
@@ -1035,64 +1035,64 @@ declare class OxArchiveWs {
|
|
|
1035
1035
|
|
|
1036
1036
|
declare const ApiMetaSchema: z.ZodObject<{
|
|
1037
1037
|
count: z.ZodNumber;
|
|
1038
|
-
|
|
1039
|
-
|
|
1038
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
requestId: z.ZodString;
|
|
1040
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1041
1041
|
count: number;
|
|
1042
|
-
|
|
1043
|
-
|
|
1042
|
+
requestId: string;
|
|
1043
|
+
nextCursor?: string | undefined;
|
|
1044
1044
|
}, {
|
|
1045
1045
|
count: number;
|
|
1046
|
-
|
|
1047
|
-
|
|
1046
|
+
requestId: string;
|
|
1047
|
+
nextCursor?: string | undefined;
|
|
1048
1048
|
}>;
|
|
1049
1049
|
declare const ApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
|
|
1050
1050
|
success: z.ZodBoolean;
|
|
1051
1051
|
data: T;
|
|
1052
1052
|
meta: z.ZodObject<{
|
|
1053
1053
|
count: z.ZodNumber;
|
|
1054
|
-
|
|
1055
|
-
|
|
1054
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
requestId: z.ZodString;
|
|
1056
1056
|
}, "strip", z.ZodTypeAny, {
|
|
1057
1057
|
count: number;
|
|
1058
|
-
|
|
1059
|
-
|
|
1058
|
+
requestId: string;
|
|
1059
|
+
nextCursor?: string | undefined;
|
|
1060
1060
|
}, {
|
|
1061
1061
|
count: number;
|
|
1062
|
-
|
|
1063
|
-
|
|
1062
|
+
requestId: string;
|
|
1063
|
+
nextCursor?: string | undefined;
|
|
1064
1064
|
}>;
|
|
1065
1065
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
1066
1066
|
success: z.ZodBoolean;
|
|
1067
1067
|
data: T;
|
|
1068
1068
|
meta: z.ZodObject<{
|
|
1069
1069
|
count: z.ZodNumber;
|
|
1070
|
-
|
|
1071
|
-
|
|
1070
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
requestId: z.ZodString;
|
|
1072
1072
|
}, "strip", z.ZodTypeAny, {
|
|
1073
1073
|
count: number;
|
|
1074
|
-
|
|
1075
|
-
|
|
1074
|
+
requestId: string;
|
|
1075
|
+
nextCursor?: string | undefined;
|
|
1076
1076
|
}, {
|
|
1077
1077
|
count: number;
|
|
1078
|
-
|
|
1079
|
-
|
|
1078
|
+
requestId: string;
|
|
1079
|
+
nextCursor?: string | undefined;
|
|
1080
1080
|
}>;
|
|
1081
1081
|
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
1082
1082
|
success: z.ZodBoolean;
|
|
1083
1083
|
data: T;
|
|
1084
1084
|
meta: z.ZodObject<{
|
|
1085
1085
|
count: z.ZodNumber;
|
|
1086
|
-
|
|
1087
|
-
|
|
1086
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
requestId: z.ZodString;
|
|
1088
1088
|
}, "strip", z.ZodTypeAny, {
|
|
1089
1089
|
count: number;
|
|
1090
|
-
|
|
1091
|
-
|
|
1090
|
+
requestId: string;
|
|
1091
|
+
nextCursor?: string | undefined;
|
|
1092
1092
|
}, {
|
|
1093
1093
|
count: number;
|
|
1094
|
-
|
|
1095
|
-
|
|
1094
|
+
requestId: string;
|
|
1095
|
+
nextCursor?: string | undefined;
|
|
1096
1096
|
}>;
|
|
1097
1097
|
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
1098
1098
|
declare const PriceLevelSchema: z.ZodObject<{
|
|
@@ -1137,9 +1137,9 @@ declare const OrderBookSchema: z.ZodObject<{
|
|
|
1137
1137
|
sz: string;
|
|
1138
1138
|
n: number;
|
|
1139
1139
|
}>, "many">;
|
|
1140
|
-
|
|
1140
|
+
midPrice: z.ZodOptional<z.ZodString>;
|
|
1141
1141
|
spread: z.ZodOptional<z.ZodString>;
|
|
1142
|
-
|
|
1142
|
+
spreadBps: z.ZodOptional<z.ZodString>;
|
|
1143
1143
|
}, "strip", z.ZodTypeAny, {
|
|
1144
1144
|
coin: string;
|
|
1145
1145
|
timestamp: string;
|
|
@@ -1153,9 +1153,9 @@ declare const OrderBookSchema: z.ZodObject<{
|
|
|
1153
1153
|
sz: string;
|
|
1154
1154
|
n: number;
|
|
1155
1155
|
}[];
|
|
1156
|
-
|
|
1156
|
+
midPrice?: string | undefined;
|
|
1157
1157
|
spread?: string | undefined;
|
|
1158
|
-
|
|
1158
|
+
spreadBps?: string | undefined;
|
|
1159
1159
|
}, {
|
|
1160
1160
|
coin: string;
|
|
1161
1161
|
timestamp: string;
|
|
@@ -1169,12 +1169,12 @@ declare const OrderBookSchema: z.ZodObject<{
|
|
|
1169
1169
|
sz: string;
|
|
1170
1170
|
n: number;
|
|
1171
1171
|
}[];
|
|
1172
|
-
|
|
1172
|
+
midPrice?: string | undefined;
|
|
1173
1173
|
spread?: string | undefined;
|
|
1174
|
-
|
|
1174
|
+
spreadBps?: string | undefined;
|
|
1175
1175
|
}>;
|
|
1176
1176
|
declare const TradeSideSchema: z.ZodEnum<["A", "B"]>;
|
|
1177
|
-
declare const TradeDirectionSchema: z.
|
|
1177
|
+
declare const TradeDirectionSchema: z.ZodString;
|
|
1178
1178
|
declare const DataSourceSchema: z.ZodEnum<["s3", "ws", "api", "live"]>;
|
|
1179
1179
|
declare const TradeSchema: z.ZodObject<{
|
|
1180
1180
|
coin: z.ZodString;
|
|
@@ -1182,57 +1182,57 @@ declare const TradeSchema: z.ZodObject<{
|
|
|
1182
1182
|
price: z.ZodString;
|
|
1183
1183
|
size: z.ZodString;
|
|
1184
1184
|
timestamp: z.ZodString;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1185
|
+
txHash: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
tradeId: z.ZodOptional<z.ZodNumber>;
|
|
1187
|
+
orderId: z.ZodOptional<z.ZodNumber>;
|
|
1188
1188
|
crossed: z.ZodOptional<z.ZodBoolean>;
|
|
1189
1189
|
fee: z.ZodOptional<z.ZodString>;
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
direction: z.ZodOptional<z.
|
|
1193
|
-
|
|
1190
|
+
feeToken: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
closedPnl: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
startPosition: z.ZodOptional<z.ZodString>;
|
|
1194
1194
|
source: z.ZodOptional<z.ZodEnum<["s3", "ws", "api", "live"]>>;
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
userAddress: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
makerAddress: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
takerAddress: z.ZodOptional<z.ZodString>;
|
|
1198
1198
|
}, "strip", z.ZodTypeAny, {
|
|
1199
1199
|
coin: string;
|
|
1200
1200
|
timestamp: string;
|
|
1201
1201
|
side: "A" | "B";
|
|
1202
1202
|
price: string;
|
|
1203
1203
|
size: string;
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1204
|
+
txHash?: string | undefined;
|
|
1205
|
+
tradeId?: number | undefined;
|
|
1206
|
+
orderId?: number | undefined;
|
|
1207
1207
|
crossed?: boolean | undefined;
|
|
1208
1208
|
fee?: string | undefined;
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
direction?:
|
|
1212
|
-
|
|
1209
|
+
feeToken?: string | undefined;
|
|
1210
|
+
closedPnl?: string | undefined;
|
|
1211
|
+
direction?: string | undefined;
|
|
1212
|
+
startPosition?: string | undefined;
|
|
1213
1213
|
source?: "s3" | "ws" | "api" | "live" | undefined;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1214
|
+
userAddress?: string | undefined;
|
|
1215
|
+
makerAddress?: string | undefined;
|
|
1216
|
+
takerAddress?: string | undefined;
|
|
1217
1217
|
}, {
|
|
1218
1218
|
coin: string;
|
|
1219
1219
|
timestamp: string;
|
|
1220
1220
|
side: "A" | "B";
|
|
1221
1221
|
price: string;
|
|
1222
1222
|
size: string;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1223
|
+
txHash?: string | undefined;
|
|
1224
|
+
tradeId?: number | undefined;
|
|
1225
|
+
orderId?: number | undefined;
|
|
1226
1226
|
crossed?: boolean | undefined;
|
|
1227
1227
|
fee?: string | undefined;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
direction?:
|
|
1231
|
-
|
|
1228
|
+
feeToken?: string | undefined;
|
|
1229
|
+
closedPnl?: string | undefined;
|
|
1230
|
+
direction?: string | undefined;
|
|
1231
|
+
startPosition?: string | undefined;
|
|
1232
1232
|
source?: "s3" | "ws" | "api" | "live" | undefined;
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1233
|
+
userAddress?: string | undefined;
|
|
1234
|
+
makerAddress?: string | undefined;
|
|
1235
|
+
takerAddress?: string | undefined;
|
|
1236
1236
|
}>;
|
|
1237
1237
|
declare const InstrumentTypeSchema: z.ZodEnum<["perp", "spot"]>;
|
|
1238
1238
|
declare const InstrumentSchema: z.ZodObject<{
|
|
@@ -1260,52 +1260,52 @@ declare const InstrumentSchema: z.ZodObject<{
|
|
|
1260
1260
|
declare const FundingRateSchema: z.ZodObject<{
|
|
1261
1261
|
coin: z.ZodString;
|
|
1262
1262
|
timestamp: z.ZodString;
|
|
1263
|
-
|
|
1263
|
+
fundingRate: z.ZodString;
|
|
1264
1264
|
premium: z.ZodOptional<z.ZodString>;
|
|
1265
1265
|
}, "strip", z.ZodTypeAny, {
|
|
1266
1266
|
coin: string;
|
|
1267
1267
|
timestamp: string;
|
|
1268
|
-
|
|
1268
|
+
fundingRate: string;
|
|
1269
1269
|
premium?: string | undefined;
|
|
1270
1270
|
}, {
|
|
1271
1271
|
coin: string;
|
|
1272
1272
|
timestamp: string;
|
|
1273
|
-
|
|
1273
|
+
fundingRate: string;
|
|
1274
1274
|
premium?: string | undefined;
|
|
1275
1275
|
}>;
|
|
1276
1276
|
declare const OpenInterestSchema: z.ZodObject<{
|
|
1277
1277
|
coin: z.ZodString;
|
|
1278
1278
|
timestamp: z.ZodString;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1279
|
+
openInterest: z.ZodString;
|
|
1280
|
+
markPrice: z.ZodOptional<z.ZodString>;
|
|
1281
|
+
oraclePrice: z.ZodOptional<z.ZodString>;
|
|
1282
|
+
dayNtlVolume: z.ZodOptional<z.ZodString>;
|
|
1283
|
+
prevDayPrice: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
midPrice: z.ZodOptional<z.ZodString>;
|
|
1285
|
+
impactBidPrice: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
impactAskPrice: z.ZodOptional<z.ZodString>;
|
|
1287
1287
|
}, "strip", z.ZodTypeAny, {
|
|
1288
1288
|
coin: string;
|
|
1289
1289
|
timestamp: string;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1290
|
+
openInterest: string;
|
|
1291
|
+
midPrice?: string | undefined;
|
|
1292
|
+
markPrice?: string | undefined;
|
|
1293
|
+
oraclePrice?: string | undefined;
|
|
1294
|
+
dayNtlVolume?: string | undefined;
|
|
1295
|
+
prevDayPrice?: string | undefined;
|
|
1296
|
+
impactBidPrice?: string | undefined;
|
|
1297
|
+
impactAskPrice?: string | undefined;
|
|
1298
1298
|
}, {
|
|
1299
1299
|
coin: string;
|
|
1300
1300
|
timestamp: string;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1301
|
+
openInterest: string;
|
|
1302
|
+
midPrice?: string | undefined;
|
|
1303
|
+
markPrice?: string | undefined;
|
|
1304
|
+
oraclePrice?: string | undefined;
|
|
1305
|
+
dayNtlVolume?: string | undefined;
|
|
1306
|
+
prevDayPrice?: string | undefined;
|
|
1307
|
+
impactBidPrice?: string | undefined;
|
|
1308
|
+
impactAskPrice?: string | undefined;
|
|
1309
1309
|
}>;
|
|
1310
1310
|
declare const WsChannelSchema: z.ZodEnum<["orderbook", "trades", "ticker", "all_tickers"]>;
|
|
1311
1311
|
declare const WsConnectionStateSchema: z.ZodEnum<["connecting", "connected", "disconnected", "reconnecting"]>;
|
|
@@ -1392,39 +1392,39 @@ declare const WsReplayStartedSchema: z.ZodObject<{
|
|
|
1392
1392
|
}>;
|
|
1393
1393
|
declare const WsReplayPausedSchema: z.ZodObject<{
|
|
1394
1394
|
type: z.ZodLiteral<"replay_paused">;
|
|
1395
|
-
|
|
1395
|
+
currentTimestamp: z.ZodNumber;
|
|
1396
1396
|
}, "strip", z.ZodTypeAny, {
|
|
1397
1397
|
type: "replay_paused";
|
|
1398
|
-
|
|
1398
|
+
currentTimestamp: number;
|
|
1399
1399
|
}, {
|
|
1400
1400
|
type: "replay_paused";
|
|
1401
|
-
|
|
1401
|
+
currentTimestamp: number;
|
|
1402
1402
|
}>;
|
|
1403
1403
|
declare const WsReplayResumedSchema: z.ZodObject<{
|
|
1404
1404
|
type: z.ZodLiteral<"replay_resumed">;
|
|
1405
|
-
|
|
1405
|
+
currentTimestamp: z.ZodNumber;
|
|
1406
1406
|
}, "strip", z.ZodTypeAny, {
|
|
1407
1407
|
type: "replay_resumed";
|
|
1408
|
-
|
|
1408
|
+
currentTimestamp: number;
|
|
1409
1409
|
}, {
|
|
1410
1410
|
type: "replay_resumed";
|
|
1411
|
-
|
|
1411
|
+
currentTimestamp: number;
|
|
1412
1412
|
}>;
|
|
1413
1413
|
declare const WsReplayCompletedSchema: z.ZodObject<{
|
|
1414
1414
|
type: z.ZodLiteral<"replay_completed">;
|
|
1415
1415
|
channel: z.ZodEnum<["orderbook", "trades", "ticker", "all_tickers"]>;
|
|
1416
1416
|
coin: z.ZodString;
|
|
1417
|
-
|
|
1417
|
+
snapshotsSent: z.ZodNumber;
|
|
1418
1418
|
}, "strip", z.ZodTypeAny, {
|
|
1419
1419
|
type: "replay_completed";
|
|
1420
1420
|
coin: string;
|
|
1421
1421
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1422
|
-
|
|
1422
|
+
snapshotsSent: number;
|
|
1423
1423
|
}, {
|
|
1424
1424
|
type: "replay_completed";
|
|
1425
1425
|
coin: string;
|
|
1426
1426
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1427
|
-
|
|
1427
|
+
snapshotsSent: number;
|
|
1428
1428
|
}>;
|
|
1429
1429
|
declare const WsReplayStoppedSchema: z.ZodObject<{
|
|
1430
1430
|
type: z.ZodLiteral<"replay_stopped">;
|
|
@@ -1473,13 +1473,13 @@ declare const WsStreamStartedSchema: z.ZodObject<{
|
|
|
1473
1473
|
}>;
|
|
1474
1474
|
declare const WsStreamProgressSchema: z.ZodObject<{
|
|
1475
1475
|
type: z.ZodLiteral<"stream_progress">;
|
|
1476
|
-
|
|
1476
|
+
snapshotsSent: z.ZodNumber;
|
|
1477
1477
|
}, "strip", z.ZodTypeAny, {
|
|
1478
1478
|
type: "stream_progress";
|
|
1479
|
-
|
|
1479
|
+
snapshotsSent: number;
|
|
1480
1480
|
}, {
|
|
1481
1481
|
type: "stream_progress";
|
|
1482
|
-
|
|
1482
|
+
snapshotsSent: number;
|
|
1483
1483
|
}>;
|
|
1484
1484
|
declare const TimestampedRecordSchema: z.ZodObject<{
|
|
1485
1485
|
timestamp: z.ZodNumber;
|
|
@@ -1526,27 +1526,27 @@ declare const WsStreamCompletedSchema: z.ZodObject<{
|
|
|
1526
1526
|
type: z.ZodLiteral<"stream_completed">;
|
|
1527
1527
|
channel: z.ZodEnum<["orderbook", "trades", "ticker", "all_tickers"]>;
|
|
1528
1528
|
coin: z.ZodString;
|
|
1529
|
-
|
|
1529
|
+
snapshotsSent: z.ZodNumber;
|
|
1530
1530
|
}, "strip", z.ZodTypeAny, {
|
|
1531
1531
|
type: "stream_completed";
|
|
1532
1532
|
coin: string;
|
|
1533
1533
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1534
|
-
|
|
1534
|
+
snapshotsSent: number;
|
|
1535
1535
|
}, {
|
|
1536
1536
|
type: "stream_completed";
|
|
1537
1537
|
coin: string;
|
|
1538
1538
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1539
|
-
|
|
1539
|
+
snapshotsSent: number;
|
|
1540
1540
|
}>;
|
|
1541
1541
|
declare const WsStreamStoppedSchema: z.ZodObject<{
|
|
1542
1542
|
type: z.ZodLiteral<"stream_stopped">;
|
|
1543
|
-
|
|
1543
|
+
snapshotsSent: z.ZodNumber;
|
|
1544
1544
|
}, "strip", z.ZodTypeAny, {
|
|
1545
1545
|
type: "stream_stopped";
|
|
1546
|
-
|
|
1546
|
+
snapshotsSent: number;
|
|
1547
1547
|
}, {
|
|
1548
1548
|
type: "stream_stopped";
|
|
1549
|
-
|
|
1549
|
+
snapshotsSent: number;
|
|
1550
1550
|
}>;
|
|
1551
1551
|
declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1552
1552
|
type: z.ZodLiteral<"subscribed">;
|
|
@@ -1625,37 +1625,37 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1625
1625
|
speed: number;
|
|
1626
1626
|
}>, z.ZodObject<{
|
|
1627
1627
|
type: z.ZodLiteral<"replay_paused">;
|
|
1628
|
-
|
|
1628
|
+
currentTimestamp: z.ZodNumber;
|
|
1629
1629
|
}, "strip", z.ZodTypeAny, {
|
|
1630
1630
|
type: "replay_paused";
|
|
1631
|
-
|
|
1631
|
+
currentTimestamp: number;
|
|
1632
1632
|
}, {
|
|
1633
1633
|
type: "replay_paused";
|
|
1634
|
-
|
|
1634
|
+
currentTimestamp: number;
|
|
1635
1635
|
}>, z.ZodObject<{
|
|
1636
1636
|
type: z.ZodLiteral<"replay_resumed">;
|
|
1637
|
-
|
|
1637
|
+
currentTimestamp: z.ZodNumber;
|
|
1638
1638
|
}, "strip", z.ZodTypeAny, {
|
|
1639
1639
|
type: "replay_resumed";
|
|
1640
|
-
|
|
1640
|
+
currentTimestamp: number;
|
|
1641
1641
|
}, {
|
|
1642
1642
|
type: "replay_resumed";
|
|
1643
|
-
|
|
1643
|
+
currentTimestamp: number;
|
|
1644
1644
|
}>, z.ZodObject<{
|
|
1645
1645
|
type: z.ZodLiteral<"replay_completed">;
|
|
1646
1646
|
channel: z.ZodEnum<["orderbook", "trades", "ticker", "all_tickers"]>;
|
|
1647
1647
|
coin: z.ZodString;
|
|
1648
|
-
|
|
1648
|
+
snapshotsSent: z.ZodNumber;
|
|
1649
1649
|
}, "strip", z.ZodTypeAny, {
|
|
1650
1650
|
type: "replay_completed";
|
|
1651
1651
|
coin: string;
|
|
1652
1652
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1653
|
-
|
|
1653
|
+
snapshotsSent: number;
|
|
1654
1654
|
}, {
|
|
1655
1655
|
type: "replay_completed";
|
|
1656
1656
|
coin: string;
|
|
1657
1657
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1658
|
-
|
|
1658
|
+
snapshotsSent: number;
|
|
1659
1659
|
}>, z.ZodObject<{
|
|
1660
1660
|
type: z.ZodLiteral<"replay_stopped">;
|
|
1661
1661
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1700,13 +1700,13 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1700
1700
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1701
1701
|
}>, z.ZodObject<{
|
|
1702
1702
|
type: z.ZodLiteral<"stream_progress">;
|
|
1703
|
-
|
|
1703
|
+
snapshotsSent: z.ZodNumber;
|
|
1704
1704
|
}, "strip", z.ZodTypeAny, {
|
|
1705
1705
|
type: "stream_progress";
|
|
1706
|
-
|
|
1706
|
+
snapshotsSent: number;
|
|
1707
1707
|
}, {
|
|
1708
1708
|
type: "stream_progress";
|
|
1709
|
-
|
|
1709
|
+
snapshotsSent: number;
|
|
1710
1710
|
}>, z.ZodObject<{
|
|
1711
1711
|
type: z.ZodLiteral<"historical_batch">;
|
|
1712
1712
|
channel: z.ZodEnum<["orderbook", "trades", "ticker", "all_tickers"]>;
|
|
@@ -1741,26 +1741,26 @@ declare const WsServerMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
1741
1741
|
type: z.ZodLiteral<"stream_completed">;
|
|
1742
1742
|
channel: z.ZodEnum<["orderbook", "trades", "ticker", "all_tickers"]>;
|
|
1743
1743
|
coin: z.ZodString;
|
|
1744
|
-
|
|
1744
|
+
snapshotsSent: z.ZodNumber;
|
|
1745
1745
|
}, "strip", z.ZodTypeAny, {
|
|
1746
1746
|
type: "stream_completed";
|
|
1747
1747
|
coin: string;
|
|
1748
1748
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1749
|
-
|
|
1749
|
+
snapshotsSent: number;
|
|
1750
1750
|
}, {
|
|
1751
1751
|
type: "stream_completed";
|
|
1752
1752
|
coin: string;
|
|
1753
1753
|
channel: "orderbook" | "trades" | "ticker" | "all_tickers";
|
|
1754
|
-
|
|
1754
|
+
snapshotsSent: number;
|
|
1755
1755
|
}>, z.ZodObject<{
|
|
1756
1756
|
type: z.ZodLiteral<"stream_stopped">;
|
|
1757
|
-
|
|
1757
|
+
snapshotsSent: z.ZodNumber;
|
|
1758
1758
|
}, "strip", z.ZodTypeAny, {
|
|
1759
1759
|
type: "stream_stopped";
|
|
1760
|
-
|
|
1760
|
+
snapshotsSent: number;
|
|
1761
1761
|
}, {
|
|
1762
1762
|
type: "stream_stopped";
|
|
1763
|
-
|
|
1763
|
+
snapshotsSent: number;
|
|
1764
1764
|
}>]>;
|
|
1765
1765
|
declare const OrderBookResponseSchema: z.ZodObject<{
|
|
1766
1766
|
success: z.ZodBoolean;
|
|
@@ -1793,9 +1793,9 @@ declare const OrderBookResponseSchema: z.ZodObject<{
|
|
|
1793
1793
|
sz: string;
|
|
1794
1794
|
n: number;
|
|
1795
1795
|
}>, "many">;
|
|
1796
|
-
|
|
1796
|
+
midPrice: z.ZodOptional<z.ZodString>;
|
|
1797
1797
|
spread: z.ZodOptional<z.ZodString>;
|
|
1798
|
-
|
|
1798
|
+
spreadBps: z.ZodOptional<z.ZodString>;
|
|
1799
1799
|
}, "strip", z.ZodTypeAny, {
|
|
1800
1800
|
coin: string;
|
|
1801
1801
|
timestamp: string;
|
|
@@ -1809,9 +1809,9 @@ declare const OrderBookResponseSchema: z.ZodObject<{
|
|
|
1809
1809
|
sz: string;
|
|
1810
1810
|
n: number;
|
|
1811
1811
|
}[];
|
|
1812
|
-
|
|
1812
|
+
midPrice?: string | undefined;
|
|
1813
1813
|
spread?: string | undefined;
|
|
1814
|
-
|
|
1814
|
+
spreadBps?: string | undefined;
|
|
1815
1815
|
}, {
|
|
1816
1816
|
coin: string;
|
|
1817
1817
|
timestamp: string;
|
|
@@ -1825,22 +1825,22 @@ declare const OrderBookResponseSchema: z.ZodObject<{
|
|
|
1825
1825
|
sz: string;
|
|
1826
1826
|
n: number;
|
|
1827
1827
|
}[];
|
|
1828
|
-
|
|
1828
|
+
midPrice?: string | undefined;
|
|
1829
1829
|
spread?: string | undefined;
|
|
1830
|
-
|
|
1830
|
+
spreadBps?: string | undefined;
|
|
1831
1831
|
}>;
|
|
1832
1832
|
meta: z.ZodObject<{
|
|
1833
1833
|
count: z.ZodNumber;
|
|
1834
|
-
|
|
1835
|
-
|
|
1834
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
requestId: z.ZodString;
|
|
1836
1836
|
}, "strip", z.ZodTypeAny, {
|
|
1837
1837
|
count: number;
|
|
1838
|
-
|
|
1839
|
-
|
|
1838
|
+
requestId: string;
|
|
1839
|
+
nextCursor?: string | undefined;
|
|
1840
1840
|
}, {
|
|
1841
1841
|
count: number;
|
|
1842
|
-
|
|
1843
|
-
|
|
1842
|
+
requestId: string;
|
|
1843
|
+
nextCursor?: string | undefined;
|
|
1844
1844
|
}>;
|
|
1845
1845
|
}, "strip", z.ZodTypeAny, {
|
|
1846
1846
|
data: {
|
|
@@ -1856,15 +1856,15 @@ declare const OrderBookResponseSchema: z.ZodObject<{
|
|
|
1856
1856
|
sz: string;
|
|
1857
1857
|
n: number;
|
|
1858
1858
|
}[];
|
|
1859
|
-
|
|
1859
|
+
midPrice?: string | undefined;
|
|
1860
1860
|
spread?: string | undefined;
|
|
1861
|
-
|
|
1861
|
+
spreadBps?: string | undefined;
|
|
1862
1862
|
};
|
|
1863
1863
|
success: boolean;
|
|
1864
1864
|
meta: {
|
|
1865
1865
|
count: number;
|
|
1866
|
-
|
|
1867
|
-
|
|
1866
|
+
requestId: string;
|
|
1867
|
+
nextCursor?: string | undefined;
|
|
1868
1868
|
};
|
|
1869
1869
|
}, {
|
|
1870
1870
|
data: {
|
|
@@ -1880,15 +1880,15 @@ declare const OrderBookResponseSchema: z.ZodObject<{
|
|
|
1880
1880
|
sz: string;
|
|
1881
1881
|
n: number;
|
|
1882
1882
|
}[];
|
|
1883
|
-
|
|
1883
|
+
midPrice?: string | undefined;
|
|
1884
1884
|
spread?: string | undefined;
|
|
1885
|
-
|
|
1885
|
+
spreadBps?: string | undefined;
|
|
1886
1886
|
};
|
|
1887
1887
|
success: boolean;
|
|
1888
1888
|
meta: {
|
|
1889
1889
|
count: number;
|
|
1890
|
-
|
|
1891
|
-
|
|
1890
|
+
requestId: string;
|
|
1891
|
+
nextCursor?: string | undefined;
|
|
1892
1892
|
};
|
|
1893
1893
|
}>;
|
|
1894
1894
|
declare const OrderBookArrayResponseSchema: z.ZodObject<{
|
|
@@ -1922,9 +1922,9 @@ declare const OrderBookArrayResponseSchema: z.ZodObject<{
|
|
|
1922
1922
|
sz: string;
|
|
1923
1923
|
n: number;
|
|
1924
1924
|
}>, "many">;
|
|
1925
|
-
|
|
1925
|
+
midPrice: z.ZodOptional<z.ZodString>;
|
|
1926
1926
|
spread: z.ZodOptional<z.ZodString>;
|
|
1927
|
-
|
|
1927
|
+
spreadBps: z.ZodOptional<z.ZodString>;
|
|
1928
1928
|
}, "strip", z.ZodTypeAny, {
|
|
1929
1929
|
coin: string;
|
|
1930
1930
|
timestamp: string;
|
|
@@ -1938,9 +1938,9 @@ declare const OrderBookArrayResponseSchema: z.ZodObject<{
|
|
|
1938
1938
|
sz: string;
|
|
1939
1939
|
n: number;
|
|
1940
1940
|
}[];
|
|
1941
|
-
|
|
1941
|
+
midPrice?: string | undefined;
|
|
1942
1942
|
spread?: string | undefined;
|
|
1943
|
-
|
|
1943
|
+
spreadBps?: string | undefined;
|
|
1944
1944
|
}, {
|
|
1945
1945
|
coin: string;
|
|
1946
1946
|
timestamp: string;
|
|
@@ -1954,22 +1954,22 @@ declare const OrderBookArrayResponseSchema: z.ZodObject<{
|
|
|
1954
1954
|
sz: string;
|
|
1955
1955
|
n: number;
|
|
1956
1956
|
}[];
|
|
1957
|
-
|
|
1957
|
+
midPrice?: string | undefined;
|
|
1958
1958
|
spread?: string | undefined;
|
|
1959
|
-
|
|
1959
|
+
spreadBps?: string | undefined;
|
|
1960
1960
|
}>, "many">;
|
|
1961
1961
|
meta: z.ZodObject<{
|
|
1962
1962
|
count: z.ZodNumber;
|
|
1963
|
-
|
|
1964
|
-
|
|
1963
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
requestId: z.ZodString;
|
|
1965
1965
|
}, "strip", z.ZodTypeAny, {
|
|
1966
1966
|
count: number;
|
|
1967
|
-
|
|
1968
|
-
|
|
1967
|
+
requestId: string;
|
|
1968
|
+
nextCursor?: string | undefined;
|
|
1969
1969
|
}, {
|
|
1970
1970
|
count: number;
|
|
1971
|
-
|
|
1972
|
-
|
|
1971
|
+
requestId: string;
|
|
1972
|
+
nextCursor?: string | undefined;
|
|
1973
1973
|
}>;
|
|
1974
1974
|
}, "strip", z.ZodTypeAny, {
|
|
1975
1975
|
data: {
|
|
@@ -1985,15 +1985,15 @@ declare const OrderBookArrayResponseSchema: z.ZodObject<{
|
|
|
1985
1985
|
sz: string;
|
|
1986
1986
|
n: number;
|
|
1987
1987
|
}[];
|
|
1988
|
-
|
|
1988
|
+
midPrice?: string | undefined;
|
|
1989
1989
|
spread?: string | undefined;
|
|
1990
|
-
|
|
1990
|
+
spreadBps?: string | undefined;
|
|
1991
1991
|
}[];
|
|
1992
1992
|
success: boolean;
|
|
1993
1993
|
meta: {
|
|
1994
1994
|
count: number;
|
|
1995
|
-
|
|
1996
|
-
|
|
1995
|
+
requestId: string;
|
|
1996
|
+
nextCursor?: string | undefined;
|
|
1997
1997
|
};
|
|
1998
1998
|
}, {
|
|
1999
1999
|
data: {
|
|
@@ -2009,15 +2009,15 @@ declare const OrderBookArrayResponseSchema: z.ZodObject<{
|
|
|
2009
2009
|
sz: string;
|
|
2010
2010
|
n: number;
|
|
2011
2011
|
}[];
|
|
2012
|
-
|
|
2012
|
+
midPrice?: string | undefined;
|
|
2013
2013
|
spread?: string | undefined;
|
|
2014
|
-
|
|
2014
|
+
spreadBps?: string | undefined;
|
|
2015
2015
|
}[];
|
|
2016
2016
|
success: boolean;
|
|
2017
2017
|
meta: {
|
|
2018
2018
|
count: number;
|
|
2019
|
-
|
|
2020
|
-
|
|
2019
|
+
requestId: string;
|
|
2020
|
+
nextCursor?: string | undefined;
|
|
2021
2021
|
};
|
|
2022
2022
|
}>;
|
|
2023
2023
|
declare const TradeArrayResponseSchema: z.ZodObject<{
|
|
@@ -2028,70 +2028,70 @@ declare const TradeArrayResponseSchema: z.ZodObject<{
|
|
|
2028
2028
|
price: z.ZodString;
|
|
2029
2029
|
size: z.ZodString;
|
|
2030
2030
|
timestamp: z.ZodString;
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2031
|
+
txHash: z.ZodOptional<z.ZodString>;
|
|
2032
|
+
tradeId: z.ZodOptional<z.ZodNumber>;
|
|
2033
|
+
orderId: z.ZodOptional<z.ZodNumber>;
|
|
2034
2034
|
crossed: z.ZodOptional<z.ZodBoolean>;
|
|
2035
2035
|
fee: z.ZodOptional<z.ZodString>;
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
direction: z.ZodOptional<z.
|
|
2039
|
-
|
|
2036
|
+
feeToken: z.ZodOptional<z.ZodString>;
|
|
2037
|
+
closedPnl: z.ZodOptional<z.ZodString>;
|
|
2038
|
+
direction: z.ZodOptional<z.ZodString>;
|
|
2039
|
+
startPosition: z.ZodOptional<z.ZodString>;
|
|
2040
2040
|
source: z.ZodOptional<z.ZodEnum<["s3", "ws", "api", "live"]>>;
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2041
|
+
userAddress: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
makerAddress: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
takerAddress: z.ZodOptional<z.ZodString>;
|
|
2044
2044
|
}, "strip", z.ZodTypeAny, {
|
|
2045
2045
|
coin: string;
|
|
2046
2046
|
timestamp: string;
|
|
2047
2047
|
side: "A" | "B";
|
|
2048
2048
|
price: string;
|
|
2049
2049
|
size: string;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2050
|
+
txHash?: string | undefined;
|
|
2051
|
+
tradeId?: number | undefined;
|
|
2052
|
+
orderId?: number | undefined;
|
|
2053
2053
|
crossed?: boolean | undefined;
|
|
2054
2054
|
fee?: string | undefined;
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
direction?:
|
|
2058
|
-
|
|
2055
|
+
feeToken?: string | undefined;
|
|
2056
|
+
closedPnl?: string | undefined;
|
|
2057
|
+
direction?: string | undefined;
|
|
2058
|
+
startPosition?: string | undefined;
|
|
2059
2059
|
source?: "s3" | "ws" | "api" | "live" | undefined;
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2060
|
+
userAddress?: string | undefined;
|
|
2061
|
+
makerAddress?: string | undefined;
|
|
2062
|
+
takerAddress?: string | undefined;
|
|
2063
2063
|
}, {
|
|
2064
2064
|
coin: string;
|
|
2065
2065
|
timestamp: string;
|
|
2066
2066
|
side: "A" | "B";
|
|
2067
2067
|
price: string;
|
|
2068
2068
|
size: string;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2069
|
+
txHash?: string | undefined;
|
|
2070
|
+
tradeId?: number | undefined;
|
|
2071
|
+
orderId?: number | undefined;
|
|
2072
2072
|
crossed?: boolean | undefined;
|
|
2073
2073
|
fee?: string | undefined;
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
direction?:
|
|
2077
|
-
|
|
2074
|
+
feeToken?: string | undefined;
|
|
2075
|
+
closedPnl?: string | undefined;
|
|
2076
|
+
direction?: string | undefined;
|
|
2077
|
+
startPosition?: string | undefined;
|
|
2078
2078
|
source?: "s3" | "ws" | "api" | "live" | undefined;
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2079
|
+
userAddress?: string | undefined;
|
|
2080
|
+
makerAddress?: string | undefined;
|
|
2081
|
+
takerAddress?: string | undefined;
|
|
2082
2082
|
}>, "many">;
|
|
2083
2083
|
meta: z.ZodObject<{
|
|
2084
2084
|
count: z.ZodNumber;
|
|
2085
|
-
|
|
2086
|
-
|
|
2085
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2086
|
+
requestId: z.ZodString;
|
|
2087
2087
|
}, "strip", z.ZodTypeAny, {
|
|
2088
2088
|
count: number;
|
|
2089
|
-
|
|
2090
|
-
|
|
2089
|
+
requestId: string;
|
|
2090
|
+
nextCursor?: string | undefined;
|
|
2091
2091
|
}, {
|
|
2092
2092
|
count: number;
|
|
2093
|
-
|
|
2094
|
-
|
|
2093
|
+
requestId: string;
|
|
2094
|
+
nextCursor?: string | undefined;
|
|
2095
2095
|
}>;
|
|
2096
2096
|
}, "strip", z.ZodTypeAny, {
|
|
2097
2097
|
data: {
|
|
@@ -2100,25 +2100,25 @@ declare const TradeArrayResponseSchema: z.ZodObject<{
|
|
|
2100
2100
|
side: "A" | "B";
|
|
2101
2101
|
price: string;
|
|
2102
2102
|
size: string;
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2103
|
+
txHash?: string | undefined;
|
|
2104
|
+
tradeId?: number | undefined;
|
|
2105
|
+
orderId?: number | undefined;
|
|
2106
2106
|
crossed?: boolean | undefined;
|
|
2107
2107
|
fee?: string | undefined;
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
direction?:
|
|
2111
|
-
|
|
2108
|
+
feeToken?: string | undefined;
|
|
2109
|
+
closedPnl?: string | undefined;
|
|
2110
|
+
direction?: string | undefined;
|
|
2111
|
+
startPosition?: string | undefined;
|
|
2112
2112
|
source?: "s3" | "ws" | "api" | "live" | undefined;
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2113
|
+
userAddress?: string | undefined;
|
|
2114
|
+
makerAddress?: string | undefined;
|
|
2115
|
+
takerAddress?: string | undefined;
|
|
2116
2116
|
}[];
|
|
2117
2117
|
success: boolean;
|
|
2118
2118
|
meta: {
|
|
2119
2119
|
count: number;
|
|
2120
|
-
|
|
2121
|
-
|
|
2120
|
+
requestId: string;
|
|
2121
|
+
nextCursor?: string | undefined;
|
|
2122
2122
|
};
|
|
2123
2123
|
}, {
|
|
2124
2124
|
data: {
|
|
@@ -2127,25 +2127,25 @@ declare const TradeArrayResponseSchema: z.ZodObject<{
|
|
|
2127
2127
|
side: "A" | "B";
|
|
2128
2128
|
price: string;
|
|
2129
2129
|
size: string;
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2130
|
+
txHash?: string | undefined;
|
|
2131
|
+
tradeId?: number | undefined;
|
|
2132
|
+
orderId?: number | undefined;
|
|
2133
2133
|
crossed?: boolean | undefined;
|
|
2134
2134
|
fee?: string | undefined;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
direction?:
|
|
2138
|
-
|
|
2135
|
+
feeToken?: string | undefined;
|
|
2136
|
+
closedPnl?: string | undefined;
|
|
2137
|
+
direction?: string | undefined;
|
|
2138
|
+
startPosition?: string | undefined;
|
|
2139
2139
|
source?: "s3" | "ws" | "api" | "live" | undefined;
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2140
|
+
userAddress?: string | undefined;
|
|
2141
|
+
makerAddress?: string | undefined;
|
|
2142
|
+
takerAddress?: string | undefined;
|
|
2143
2143
|
}[];
|
|
2144
2144
|
success: boolean;
|
|
2145
2145
|
meta: {
|
|
2146
2146
|
count: number;
|
|
2147
|
-
|
|
2148
|
-
|
|
2147
|
+
requestId: string;
|
|
2148
|
+
nextCursor?: string | undefined;
|
|
2149
2149
|
};
|
|
2150
2150
|
}>;
|
|
2151
2151
|
declare const InstrumentResponseSchema: z.ZodObject<{
|
|
@@ -2174,16 +2174,16 @@ declare const InstrumentResponseSchema: z.ZodObject<{
|
|
|
2174
2174
|
}>;
|
|
2175
2175
|
meta: z.ZodObject<{
|
|
2176
2176
|
count: z.ZodNumber;
|
|
2177
|
-
|
|
2178
|
-
|
|
2177
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2178
|
+
requestId: z.ZodString;
|
|
2179
2179
|
}, "strip", z.ZodTypeAny, {
|
|
2180
2180
|
count: number;
|
|
2181
|
-
|
|
2182
|
-
|
|
2181
|
+
requestId: string;
|
|
2182
|
+
nextCursor?: string | undefined;
|
|
2183
2183
|
}, {
|
|
2184
2184
|
count: number;
|
|
2185
|
-
|
|
2186
|
-
|
|
2185
|
+
requestId: string;
|
|
2186
|
+
nextCursor?: string | undefined;
|
|
2187
2187
|
}>;
|
|
2188
2188
|
}, "strip", z.ZodTypeAny, {
|
|
2189
2189
|
data: {
|
|
@@ -2197,8 +2197,8 @@ declare const InstrumentResponseSchema: z.ZodObject<{
|
|
|
2197
2197
|
success: boolean;
|
|
2198
2198
|
meta: {
|
|
2199
2199
|
count: number;
|
|
2200
|
-
|
|
2201
|
-
|
|
2200
|
+
requestId: string;
|
|
2201
|
+
nextCursor?: string | undefined;
|
|
2202
2202
|
};
|
|
2203
2203
|
}, {
|
|
2204
2204
|
data: {
|
|
@@ -2212,8 +2212,8 @@ declare const InstrumentResponseSchema: z.ZodObject<{
|
|
|
2212
2212
|
success: boolean;
|
|
2213
2213
|
meta: {
|
|
2214
2214
|
count: number;
|
|
2215
|
-
|
|
2216
|
-
|
|
2215
|
+
requestId: string;
|
|
2216
|
+
nextCursor?: string | undefined;
|
|
2217
2217
|
};
|
|
2218
2218
|
}>;
|
|
2219
2219
|
declare const InstrumentArrayResponseSchema: z.ZodObject<{
|
|
@@ -2242,16 +2242,16 @@ declare const InstrumentArrayResponseSchema: z.ZodObject<{
|
|
|
2242
2242
|
}>, "many">;
|
|
2243
2243
|
meta: z.ZodObject<{
|
|
2244
2244
|
count: z.ZodNumber;
|
|
2245
|
-
|
|
2246
|
-
|
|
2245
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2246
|
+
requestId: z.ZodString;
|
|
2247
2247
|
}, "strip", z.ZodTypeAny, {
|
|
2248
2248
|
count: number;
|
|
2249
|
-
|
|
2250
|
-
|
|
2249
|
+
requestId: string;
|
|
2250
|
+
nextCursor?: string | undefined;
|
|
2251
2251
|
}, {
|
|
2252
2252
|
count: number;
|
|
2253
|
-
|
|
2254
|
-
|
|
2253
|
+
requestId: string;
|
|
2254
|
+
nextCursor?: string | undefined;
|
|
2255
2255
|
}>;
|
|
2256
2256
|
}, "strip", z.ZodTypeAny, {
|
|
2257
2257
|
data: {
|
|
@@ -2265,8 +2265,8 @@ declare const InstrumentArrayResponseSchema: z.ZodObject<{
|
|
|
2265
2265
|
success: boolean;
|
|
2266
2266
|
meta: {
|
|
2267
2267
|
count: number;
|
|
2268
|
-
|
|
2269
|
-
|
|
2268
|
+
requestId: string;
|
|
2269
|
+
nextCursor?: string | undefined;
|
|
2270
2270
|
};
|
|
2271
2271
|
}, {
|
|
2272
2272
|
data: {
|
|
@@ -2280,8 +2280,8 @@ declare const InstrumentArrayResponseSchema: z.ZodObject<{
|
|
|
2280
2280
|
success: boolean;
|
|
2281
2281
|
meta: {
|
|
2282
2282
|
count: number;
|
|
2283
|
-
|
|
2284
|
-
|
|
2283
|
+
requestId: string;
|
|
2284
|
+
nextCursor?: string | undefined;
|
|
2285
2285
|
};
|
|
2286
2286
|
}>;
|
|
2287
2287
|
declare const FundingRateResponseSchema: z.ZodObject<{
|
|
@@ -2289,57 +2289,57 @@ declare const FundingRateResponseSchema: z.ZodObject<{
|
|
|
2289
2289
|
data: z.ZodObject<{
|
|
2290
2290
|
coin: z.ZodString;
|
|
2291
2291
|
timestamp: z.ZodString;
|
|
2292
|
-
|
|
2292
|
+
fundingRate: z.ZodString;
|
|
2293
2293
|
premium: z.ZodOptional<z.ZodString>;
|
|
2294
2294
|
}, "strip", z.ZodTypeAny, {
|
|
2295
2295
|
coin: string;
|
|
2296
2296
|
timestamp: string;
|
|
2297
|
-
|
|
2297
|
+
fundingRate: string;
|
|
2298
2298
|
premium?: string | undefined;
|
|
2299
2299
|
}, {
|
|
2300
2300
|
coin: string;
|
|
2301
2301
|
timestamp: string;
|
|
2302
|
-
|
|
2302
|
+
fundingRate: string;
|
|
2303
2303
|
premium?: string | undefined;
|
|
2304
2304
|
}>;
|
|
2305
2305
|
meta: z.ZodObject<{
|
|
2306
2306
|
count: z.ZodNumber;
|
|
2307
|
-
|
|
2308
|
-
|
|
2307
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2308
|
+
requestId: z.ZodString;
|
|
2309
2309
|
}, "strip", z.ZodTypeAny, {
|
|
2310
2310
|
count: number;
|
|
2311
|
-
|
|
2312
|
-
|
|
2311
|
+
requestId: string;
|
|
2312
|
+
nextCursor?: string | undefined;
|
|
2313
2313
|
}, {
|
|
2314
2314
|
count: number;
|
|
2315
|
-
|
|
2316
|
-
|
|
2315
|
+
requestId: string;
|
|
2316
|
+
nextCursor?: string | undefined;
|
|
2317
2317
|
}>;
|
|
2318
2318
|
}, "strip", z.ZodTypeAny, {
|
|
2319
2319
|
data: {
|
|
2320
2320
|
coin: string;
|
|
2321
2321
|
timestamp: string;
|
|
2322
|
-
|
|
2322
|
+
fundingRate: string;
|
|
2323
2323
|
premium?: string | undefined;
|
|
2324
2324
|
};
|
|
2325
2325
|
success: boolean;
|
|
2326
2326
|
meta: {
|
|
2327
2327
|
count: number;
|
|
2328
|
-
|
|
2329
|
-
|
|
2328
|
+
requestId: string;
|
|
2329
|
+
nextCursor?: string | undefined;
|
|
2330
2330
|
};
|
|
2331
2331
|
}, {
|
|
2332
2332
|
data: {
|
|
2333
2333
|
coin: string;
|
|
2334
2334
|
timestamp: string;
|
|
2335
|
-
|
|
2335
|
+
fundingRate: string;
|
|
2336
2336
|
premium?: string | undefined;
|
|
2337
2337
|
};
|
|
2338
2338
|
success: boolean;
|
|
2339
2339
|
meta: {
|
|
2340
2340
|
count: number;
|
|
2341
|
-
|
|
2342
|
-
|
|
2341
|
+
requestId: string;
|
|
2342
|
+
nextCursor?: string | undefined;
|
|
2343
2343
|
};
|
|
2344
2344
|
}>;
|
|
2345
2345
|
declare const FundingRateArrayResponseSchema: z.ZodObject<{
|
|
@@ -2347,57 +2347,57 @@ declare const FundingRateArrayResponseSchema: z.ZodObject<{
|
|
|
2347
2347
|
data: z.ZodArray<z.ZodObject<{
|
|
2348
2348
|
coin: z.ZodString;
|
|
2349
2349
|
timestamp: z.ZodString;
|
|
2350
|
-
|
|
2350
|
+
fundingRate: z.ZodString;
|
|
2351
2351
|
premium: z.ZodOptional<z.ZodString>;
|
|
2352
2352
|
}, "strip", z.ZodTypeAny, {
|
|
2353
2353
|
coin: string;
|
|
2354
2354
|
timestamp: string;
|
|
2355
|
-
|
|
2355
|
+
fundingRate: string;
|
|
2356
2356
|
premium?: string | undefined;
|
|
2357
2357
|
}, {
|
|
2358
2358
|
coin: string;
|
|
2359
2359
|
timestamp: string;
|
|
2360
|
-
|
|
2360
|
+
fundingRate: string;
|
|
2361
2361
|
premium?: string | undefined;
|
|
2362
2362
|
}>, "many">;
|
|
2363
2363
|
meta: z.ZodObject<{
|
|
2364
2364
|
count: z.ZodNumber;
|
|
2365
|
-
|
|
2366
|
-
|
|
2365
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2366
|
+
requestId: z.ZodString;
|
|
2367
2367
|
}, "strip", z.ZodTypeAny, {
|
|
2368
2368
|
count: number;
|
|
2369
|
-
|
|
2370
|
-
|
|
2369
|
+
requestId: string;
|
|
2370
|
+
nextCursor?: string | undefined;
|
|
2371
2371
|
}, {
|
|
2372
2372
|
count: number;
|
|
2373
|
-
|
|
2374
|
-
|
|
2373
|
+
requestId: string;
|
|
2374
|
+
nextCursor?: string | undefined;
|
|
2375
2375
|
}>;
|
|
2376
2376
|
}, "strip", z.ZodTypeAny, {
|
|
2377
2377
|
data: {
|
|
2378
2378
|
coin: string;
|
|
2379
2379
|
timestamp: string;
|
|
2380
|
-
|
|
2380
|
+
fundingRate: string;
|
|
2381
2381
|
premium?: string | undefined;
|
|
2382
2382
|
}[];
|
|
2383
2383
|
success: boolean;
|
|
2384
2384
|
meta: {
|
|
2385
2385
|
count: number;
|
|
2386
|
-
|
|
2387
|
-
|
|
2386
|
+
requestId: string;
|
|
2387
|
+
nextCursor?: string | undefined;
|
|
2388
2388
|
};
|
|
2389
2389
|
}, {
|
|
2390
2390
|
data: {
|
|
2391
2391
|
coin: string;
|
|
2392
2392
|
timestamp: string;
|
|
2393
|
-
|
|
2393
|
+
fundingRate: string;
|
|
2394
2394
|
premium?: string | undefined;
|
|
2395
2395
|
}[];
|
|
2396
2396
|
success: boolean;
|
|
2397
2397
|
meta: {
|
|
2398
2398
|
count: number;
|
|
2399
|
-
|
|
2400
|
-
|
|
2399
|
+
requestId: string;
|
|
2400
|
+
nextCursor?: string | undefined;
|
|
2401
2401
|
};
|
|
2402
2402
|
}>;
|
|
2403
2403
|
declare const OpenInterestResponseSchema: z.ZodObject<{
|
|
@@ -2405,87 +2405,87 @@ declare const OpenInterestResponseSchema: z.ZodObject<{
|
|
|
2405
2405
|
data: z.ZodObject<{
|
|
2406
2406
|
coin: z.ZodString;
|
|
2407
2407
|
timestamp: z.ZodString;
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2408
|
+
openInterest: z.ZodString;
|
|
2409
|
+
markPrice: z.ZodOptional<z.ZodString>;
|
|
2410
|
+
oraclePrice: z.ZodOptional<z.ZodString>;
|
|
2411
|
+
dayNtlVolume: z.ZodOptional<z.ZodString>;
|
|
2412
|
+
prevDayPrice: z.ZodOptional<z.ZodString>;
|
|
2413
|
+
midPrice: z.ZodOptional<z.ZodString>;
|
|
2414
|
+
impactBidPrice: z.ZodOptional<z.ZodString>;
|
|
2415
|
+
impactAskPrice: z.ZodOptional<z.ZodString>;
|
|
2416
2416
|
}, "strip", z.ZodTypeAny, {
|
|
2417
2417
|
coin: string;
|
|
2418
2418
|
timestamp: string;
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2419
|
+
openInterest: string;
|
|
2420
|
+
midPrice?: string | undefined;
|
|
2421
|
+
markPrice?: string | undefined;
|
|
2422
|
+
oraclePrice?: string | undefined;
|
|
2423
|
+
dayNtlVolume?: string | undefined;
|
|
2424
|
+
prevDayPrice?: string | undefined;
|
|
2425
|
+
impactBidPrice?: string | undefined;
|
|
2426
|
+
impactAskPrice?: string | undefined;
|
|
2427
2427
|
}, {
|
|
2428
2428
|
coin: string;
|
|
2429
2429
|
timestamp: string;
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2430
|
+
openInterest: string;
|
|
2431
|
+
midPrice?: string | undefined;
|
|
2432
|
+
markPrice?: string | undefined;
|
|
2433
|
+
oraclePrice?: string | undefined;
|
|
2434
|
+
dayNtlVolume?: string | undefined;
|
|
2435
|
+
prevDayPrice?: string | undefined;
|
|
2436
|
+
impactBidPrice?: string | undefined;
|
|
2437
|
+
impactAskPrice?: string | undefined;
|
|
2438
2438
|
}>;
|
|
2439
2439
|
meta: z.ZodObject<{
|
|
2440
2440
|
count: z.ZodNumber;
|
|
2441
|
-
|
|
2442
|
-
|
|
2441
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2442
|
+
requestId: z.ZodString;
|
|
2443
2443
|
}, "strip", z.ZodTypeAny, {
|
|
2444
2444
|
count: number;
|
|
2445
|
-
|
|
2446
|
-
|
|
2445
|
+
requestId: string;
|
|
2446
|
+
nextCursor?: string | undefined;
|
|
2447
2447
|
}, {
|
|
2448
2448
|
count: number;
|
|
2449
|
-
|
|
2450
|
-
|
|
2449
|
+
requestId: string;
|
|
2450
|
+
nextCursor?: string | undefined;
|
|
2451
2451
|
}>;
|
|
2452
2452
|
}, "strip", z.ZodTypeAny, {
|
|
2453
2453
|
data: {
|
|
2454
2454
|
coin: string;
|
|
2455
2455
|
timestamp: string;
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2456
|
+
openInterest: string;
|
|
2457
|
+
midPrice?: string | undefined;
|
|
2458
|
+
markPrice?: string | undefined;
|
|
2459
|
+
oraclePrice?: string | undefined;
|
|
2460
|
+
dayNtlVolume?: string | undefined;
|
|
2461
|
+
prevDayPrice?: string | undefined;
|
|
2462
|
+
impactBidPrice?: string | undefined;
|
|
2463
|
+
impactAskPrice?: string | undefined;
|
|
2464
2464
|
};
|
|
2465
2465
|
success: boolean;
|
|
2466
2466
|
meta: {
|
|
2467
2467
|
count: number;
|
|
2468
|
-
|
|
2469
|
-
|
|
2468
|
+
requestId: string;
|
|
2469
|
+
nextCursor?: string | undefined;
|
|
2470
2470
|
};
|
|
2471
2471
|
}, {
|
|
2472
2472
|
data: {
|
|
2473
2473
|
coin: string;
|
|
2474
2474
|
timestamp: string;
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2475
|
+
openInterest: string;
|
|
2476
|
+
midPrice?: string | undefined;
|
|
2477
|
+
markPrice?: string | undefined;
|
|
2478
|
+
oraclePrice?: string | undefined;
|
|
2479
|
+
dayNtlVolume?: string | undefined;
|
|
2480
|
+
prevDayPrice?: string | undefined;
|
|
2481
|
+
impactBidPrice?: string | undefined;
|
|
2482
|
+
impactAskPrice?: string | undefined;
|
|
2483
2483
|
};
|
|
2484
2484
|
success: boolean;
|
|
2485
2485
|
meta: {
|
|
2486
2486
|
count: number;
|
|
2487
|
-
|
|
2488
|
-
|
|
2487
|
+
requestId: string;
|
|
2488
|
+
nextCursor?: string | undefined;
|
|
2489
2489
|
};
|
|
2490
2490
|
}>;
|
|
2491
2491
|
declare const OpenInterestArrayResponseSchema: z.ZodObject<{
|
|
@@ -2493,87 +2493,87 @@ declare const OpenInterestArrayResponseSchema: z.ZodObject<{
|
|
|
2493
2493
|
data: z.ZodArray<z.ZodObject<{
|
|
2494
2494
|
coin: z.ZodString;
|
|
2495
2495
|
timestamp: z.ZodString;
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2496
|
+
openInterest: z.ZodString;
|
|
2497
|
+
markPrice: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
oraclePrice: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
dayNtlVolume: z.ZodOptional<z.ZodString>;
|
|
2500
|
+
prevDayPrice: z.ZodOptional<z.ZodString>;
|
|
2501
|
+
midPrice: z.ZodOptional<z.ZodString>;
|
|
2502
|
+
impactBidPrice: z.ZodOptional<z.ZodString>;
|
|
2503
|
+
impactAskPrice: z.ZodOptional<z.ZodString>;
|
|
2504
2504
|
}, "strip", z.ZodTypeAny, {
|
|
2505
2505
|
coin: string;
|
|
2506
2506
|
timestamp: string;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2507
|
+
openInterest: string;
|
|
2508
|
+
midPrice?: string | undefined;
|
|
2509
|
+
markPrice?: string | undefined;
|
|
2510
|
+
oraclePrice?: string | undefined;
|
|
2511
|
+
dayNtlVolume?: string | undefined;
|
|
2512
|
+
prevDayPrice?: string | undefined;
|
|
2513
|
+
impactBidPrice?: string | undefined;
|
|
2514
|
+
impactAskPrice?: string | undefined;
|
|
2515
2515
|
}, {
|
|
2516
2516
|
coin: string;
|
|
2517
2517
|
timestamp: string;
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2518
|
+
openInterest: string;
|
|
2519
|
+
midPrice?: string | undefined;
|
|
2520
|
+
markPrice?: string | undefined;
|
|
2521
|
+
oraclePrice?: string | undefined;
|
|
2522
|
+
dayNtlVolume?: string | undefined;
|
|
2523
|
+
prevDayPrice?: string | undefined;
|
|
2524
|
+
impactBidPrice?: string | undefined;
|
|
2525
|
+
impactAskPrice?: string | undefined;
|
|
2526
2526
|
}>, "many">;
|
|
2527
2527
|
meta: z.ZodObject<{
|
|
2528
2528
|
count: z.ZodNumber;
|
|
2529
|
-
|
|
2530
|
-
|
|
2529
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2530
|
+
requestId: z.ZodString;
|
|
2531
2531
|
}, "strip", z.ZodTypeAny, {
|
|
2532
2532
|
count: number;
|
|
2533
|
-
|
|
2534
|
-
|
|
2533
|
+
requestId: string;
|
|
2534
|
+
nextCursor?: string | undefined;
|
|
2535
2535
|
}, {
|
|
2536
2536
|
count: number;
|
|
2537
|
-
|
|
2538
|
-
|
|
2537
|
+
requestId: string;
|
|
2538
|
+
nextCursor?: string | undefined;
|
|
2539
2539
|
}>;
|
|
2540
2540
|
}, "strip", z.ZodTypeAny, {
|
|
2541
2541
|
data: {
|
|
2542
2542
|
coin: string;
|
|
2543
2543
|
timestamp: string;
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2544
|
+
openInterest: string;
|
|
2545
|
+
midPrice?: string | undefined;
|
|
2546
|
+
markPrice?: string | undefined;
|
|
2547
|
+
oraclePrice?: string | undefined;
|
|
2548
|
+
dayNtlVolume?: string | undefined;
|
|
2549
|
+
prevDayPrice?: string | undefined;
|
|
2550
|
+
impactBidPrice?: string | undefined;
|
|
2551
|
+
impactAskPrice?: string | undefined;
|
|
2552
2552
|
}[];
|
|
2553
2553
|
success: boolean;
|
|
2554
2554
|
meta: {
|
|
2555
2555
|
count: number;
|
|
2556
|
-
|
|
2557
|
-
|
|
2556
|
+
requestId: string;
|
|
2557
|
+
nextCursor?: string | undefined;
|
|
2558
2558
|
};
|
|
2559
2559
|
}, {
|
|
2560
2560
|
data: {
|
|
2561
2561
|
coin: string;
|
|
2562
2562
|
timestamp: string;
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2563
|
+
openInterest: string;
|
|
2564
|
+
midPrice?: string | undefined;
|
|
2565
|
+
markPrice?: string | undefined;
|
|
2566
|
+
oraclePrice?: string | undefined;
|
|
2567
|
+
dayNtlVolume?: string | undefined;
|
|
2568
|
+
prevDayPrice?: string | undefined;
|
|
2569
|
+
impactBidPrice?: string | undefined;
|
|
2570
|
+
impactAskPrice?: string | undefined;
|
|
2571
2571
|
}[];
|
|
2572
2572
|
success: boolean;
|
|
2573
2573
|
meta: {
|
|
2574
2574
|
count: number;
|
|
2575
|
-
|
|
2576
|
-
|
|
2575
|
+
requestId: string;
|
|
2576
|
+
nextCursor?: string | undefined;
|
|
2577
2577
|
};
|
|
2578
2578
|
}>;
|
|
2579
2579
|
type ValidatedApiMeta = z.infer<typeof ApiMetaSchema>;
|
|
@@ -2585,4 +2585,4 @@ type ValidatedFundingRate = z.infer<typeof FundingRateSchema>;
|
|
|
2585
2585
|
type ValidatedOpenInterest = z.infer<typeof OpenInterestSchema>;
|
|
2586
2586
|
type ValidatedWsServerMessage = z.infer<typeof WsServerMessageSchema>;
|
|
2587
2587
|
|
|
2588
|
-
export { type ApiError, type ApiMeta, ApiMetaSchema, type ApiResponse, ApiResponseSchema, type ClientOptions, type DataSource, DataSourceSchema, type FundingRate, FundingRateArrayResponseSchema, FundingRateResponseSchema, FundingRateSchema, type GetOrderBookParams, type GetTradesParams, type Instrument, InstrumentArrayResponseSchema, InstrumentResponseSchema, InstrumentSchema, type InstrumentType, InstrumentTypeSchema, type OpenInterest, OpenInterestArrayResponseSchema, OpenInterestResponseSchema, OpenInterestSchema, type OrderBook, OrderBookArrayResponseSchema, type OrderBookHistoryParams, OrderBookResponseSchema, OrderBookSchema, OxArchive, OxArchiveError, OxArchiveWs, type PaginationParams, type PriceLevel, PriceLevelSchema, type TimeRangeParams, type Timestamp, type TimestampedRecord, TimestampedRecordSchema, type Trade, TradeArrayResponseSchema, type TradeDirection, TradeDirectionSchema, TradeSchema, type TradeSide, TradeSideSchema, type ValidatedApiMeta, type ValidatedFundingRate, type ValidatedInstrument, type ValidatedOpenInterest, type ValidatedOrderBook, type ValidatedPriceLevel, type ValidatedTrade, type ValidatedWsServerMessage, type WsChannel, WsChannelSchema, type WsClientMessage, type WsConnectionState, WsConnectionStateSchema, type WsData, WsDataSchema, type WsError, WsErrorSchema, type WsEventHandlers, type WsHistoricalBatch, WsHistoricalBatchSchema, type WsHistoricalData, WsHistoricalDataSchema, type WsOptions, type WsPing, type WsPong, WsPongSchema, type WsReplay, type WsReplayCompleted, WsReplayCompletedSchema, type WsReplayPause, type WsReplayPaused, WsReplayPausedSchema, type WsReplayResume, type WsReplayResumed, WsReplayResumedSchema, type WsReplaySeek, type WsReplayStarted, WsReplayStartedSchema, type WsReplayStop, type WsReplayStopped, WsReplayStoppedSchema, type WsServerMessage, WsServerMessageSchema, type WsStream, type WsStreamCompleted, WsStreamCompletedSchema, type WsStreamProgress, WsStreamProgressSchema, type WsStreamStarted, WsStreamStartedSchema, type WsStreamStop, type WsStreamStopped, WsStreamStoppedSchema, type WsSubscribe, type WsSubscribed, WsSubscribedSchema, type WsUnsubscribe, type WsUnsubscribed, WsUnsubscribedSchema, OxArchive as default };
|
|
2588
|
+
export { type ApiError, type ApiMeta, ApiMetaSchema, type ApiResponse, ApiResponseSchema, type ClientOptions, type CursorResponse, type DataSource, DataSourceSchema, type FundingRate, FundingRateArrayResponseSchema, FundingRateResponseSchema, FundingRateSchema, type GetOrderBookParams, type GetTradesCursorParams, type GetTradesParams, type Instrument, InstrumentArrayResponseSchema, InstrumentResponseSchema, InstrumentSchema, type InstrumentType, InstrumentTypeSchema, type OpenInterest, OpenInterestArrayResponseSchema, OpenInterestResponseSchema, OpenInterestSchema, type OrderBook, OrderBookArrayResponseSchema, type OrderBookHistoryParams, OrderBookResponseSchema, OrderBookSchema, OxArchive, OxArchiveError, OxArchiveWs, type PaginationParams, type PriceLevel, PriceLevelSchema, type TimeRangeParams, type Timestamp, type TimestampedRecord, TimestampedRecordSchema, type Trade, TradeArrayResponseSchema, type TradeDirection, TradeDirectionSchema, TradeSchema, type TradeSide, TradeSideSchema, type ValidatedApiMeta, type ValidatedFundingRate, type ValidatedInstrument, type ValidatedOpenInterest, type ValidatedOrderBook, type ValidatedPriceLevel, type ValidatedTrade, type ValidatedWsServerMessage, type WsChannel, WsChannelSchema, type WsClientMessage, type WsConnectionState, WsConnectionStateSchema, type WsData, WsDataSchema, type WsError, WsErrorSchema, type WsEventHandlers, type WsHistoricalBatch, WsHistoricalBatchSchema, type WsHistoricalData, WsHistoricalDataSchema, type WsOptions, type WsPing, type WsPong, WsPongSchema, type WsReplay, type WsReplayCompleted, WsReplayCompletedSchema, type WsReplayPause, type WsReplayPaused, WsReplayPausedSchema, type WsReplayResume, type WsReplayResumed, WsReplayResumedSchema, type WsReplaySeek, type WsReplayStarted, WsReplayStartedSchema, type WsReplayStop, type WsReplayStopped, WsReplayStoppedSchema, type WsServerMessage, WsServerMessageSchema, type WsStream, type WsStreamCompleted, WsStreamCompletedSchema, type WsStreamProgress, WsStreamProgressSchema, type WsStreamStarted, WsStreamStartedSchema, type WsStreamStop, type WsStreamStopped, WsStreamStoppedSchema, type WsSubscribe, type WsSubscribed, WsSubscribedSchema, type WsUnsubscribe, type WsUnsubscribed, WsUnsubscribedSchema, OxArchive as default };
|