ault-sdk-ts 0.7.2 → 0.8.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/index.cjs +510 -711
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +502 -711
- package/dist/index.js.map +1 -1
- package/dist/rest/dex-types.generated.d.ts +62 -1
- package/dist/rest/dex.generated.d.ts +81 -11
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -214,6 +214,10 @@ __export(index_exports, {
|
|
|
214
214
|
getOrderResponseFilledRegExp: () => getOrderResponseFilledRegExp,
|
|
215
215
|
getOrderResponseInfoBlockHeightRegExp: () => getOrderResponseInfoBlockHeightRegExp,
|
|
216
216
|
getOrderResponseInfoRemainingDepositRegExp: () => getOrderResponseInfoRemainingDepositRegExp,
|
|
217
|
+
getOrderResponseInfoTwapIdRegExp: () => getOrderResponseInfoTwapIdRegExp,
|
|
218
|
+
getOrderResponseInfoTwapOnePriceToleranceRegExp: () => getOrderResponseInfoTwapOnePriceToleranceRegExp,
|
|
219
|
+
getOrderResponseInfoTwapOneTotalDepositRegExp: () => getOrderResponseInfoTwapOneTotalDepositRegExp,
|
|
220
|
+
getOrderResponseInfoTwapOneWorstPriceRegExp: () => getOrderResponseInfoTwapOneWorstPriceRegExp,
|
|
217
221
|
getOrderResponsePriceRegExp: () => getOrderResponsePriceRegExp,
|
|
218
222
|
getOrderResponseRemainingRegExp: () => getOrderResponseRemainingRegExp,
|
|
219
223
|
getOrderbookQueryLimitDefault: () => getOrderbookQueryLimitDefault,
|
|
@@ -282,6 +286,10 @@ __export(index_exports, {
|
|
|
282
286
|
listOrdersResponseFilledRegExp: () => listOrdersResponseFilledRegExp,
|
|
283
287
|
listOrdersResponseInfoBlockHeightRegExp: () => listOrdersResponseInfoBlockHeightRegExp,
|
|
284
288
|
listOrdersResponseInfoRemainingDepositRegExp: () => listOrdersResponseInfoRemainingDepositRegExp,
|
|
289
|
+
listOrdersResponseInfoTwapIdRegExp: () => listOrdersResponseInfoTwapIdRegExp,
|
|
290
|
+
listOrdersResponseInfoTwapOnePriceToleranceRegExp: () => listOrdersResponseInfoTwapOnePriceToleranceRegExp,
|
|
291
|
+
listOrdersResponseInfoTwapOneTotalDepositRegExp: () => listOrdersResponseInfoTwapOneTotalDepositRegExp,
|
|
292
|
+
listOrdersResponseInfoTwapOneWorstPriceRegExp: () => listOrdersResponseInfoTwapOneWorstPriceRegExp,
|
|
285
293
|
listOrdersResponsePriceRegExp: () => listOrdersResponsePriceRegExp,
|
|
286
294
|
listOrdersResponseRemainingRegExp: () => listOrdersResponseRemainingRegExp,
|
|
287
295
|
listTradesQueryBeforeIndexMax: () => listTradesQueryBeforeIndexMax,
|
|
@@ -321,7 +329,7 @@ __export(index_exports, {
|
|
|
321
329
|
module.exports = __toCommonJS(index_exports);
|
|
322
330
|
|
|
323
331
|
// src/core/user-agent.ts
|
|
324
|
-
var SDK_VERSION = "0.
|
|
332
|
+
var SDK_VERSION = "0.8.0";
|
|
325
333
|
var USER_AGENT = `ault-sdk-ts/${SDK_VERSION}`;
|
|
326
334
|
function isServerRuntime() {
|
|
327
335
|
if (typeof document !== "undefined") return false;
|
|
@@ -11778,6 +11786,7 @@ __export(dex_generated_exports, {
|
|
|
11778
11786
|
OrderResponseStatus: () => OrderResponseStatus,
|
|
11779
11787
|
OrderResponseTimeInForce: () => OrderResponseTimeInForce,
|
|
11780
11788
|
OrderResponseType: () => OrderResponseType,
|
|
11789
|
+
OrderTwapInfoDepositAsset: () => OrderTwapInfoDepositAsset,
|
|
11781
11790
|
RangeQueryDayParameter: () => RangeQueryDayParameter,
|
|
11782
11791
|
RangeQueryParameter: () => RangeQueryParameter,
|
|
11783
11792
|
ReadyResponseStatus: () => ReadyResponseStatus,
|
|
@@ -11863,6 +11872,10 @@ var OrderInfoChainType = {
|
|
|
11863
11872
|
twap: "twap",
|
|
11864
11873
|
unknown: "unknown"
|
|
11865
11874
|
};
|
|
11875
|
+
var OrderTwapInfoDepositAsset = {
|
|
11876
|
+
base: "base",
|
|
11877
|
+
quote: "quote"
|
|
11878
|
+
};
|
|
11866
11879
|
var HealthResponseStatus = {
|
|
11867
11880
|
healthy: "healthy"
|
|
11868
11881
|
};
|
|
@@ -28079,247 +28092,201 @@ var PageResponseSchema = import_zod3.z.object({
|
|
|
28079
28092
|
// src/rest/dex-types.generated.ts
|
|
28080
28093
|
var zod = __toESM(require("zod"), 1);
|
|
28081
28094
|
var GetHealthResponse = zod.object({
|
|
28082
|
-
status: zod.enum(["healthy"])
|
|
28095
|
+
"status": zod.enum(["healthy"])
|
|
28083
28096
|
});
|
|
28084
28097
|
var GetReadyResponse = zod.object({
|
|
28085
|
-
status: zod.enum(["ready"])
|
|
28098
|
+
"status": zod.enum(["ready"])
|
|
28086
28099
|
});
|
|
28087
28100
|
var GetLiveResponse = zod.object({
|
|
28088
|
-
status: zod.enum(["alive"])
|
|
28101
|
+
"status": zod.enum(["alive"])
|
|
28089
28102
|
});
|
|
28090
28103
|
var GetDBReadyResponse = zod.object({
|
|
28091
|
-
status: zod.enum(["ok", "unavailable"]),
|
|
28092
|
-
database: zod.enum(["ok", "unreachable"])
|
|
28104
|
+
"status": zod.enum(["ok", "unavailable"]),
|
|
28105
|
+
"database": zod.enum(["ok", "unreachable"])
|
|
28093
28106
|
});
|
|
28094
28107
|
var GetStatusResponse = zod.object({
|
|
28095
|
-
last_indexed_height: zod.number(),
|
|
28096
|
-
last_indexed_at: zod.iso.datetime({})
|
|
28108
|
+
"last_indexed_height": zod.number(),
|
|
28109
|
+
"last_indexed_at": zod.iso.datetime({})
|
|
28097
28110
|
});
|
|
28098
28111
|
var GetSDKManifestResponse = zod.object({
|
|
28099
|
-
schemaVersion: zod.number().min(1).describe(
|
|
28100
|
-
|
|
28101
|
-
),
|
|
28102
|
-
|
|
28103
|
-
|
|
28104
|
-
),
|
|
28105
|
-
eip712: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
28106
|
-
"EIP-712 fee-related defaults (e.g. fee amount, gas limit). Shape\nis operator-controlled.\n"
|
|
28107
|
-
),
|
|
28108
|
-
urls: zod.record(zod.string(), zod.unknown()).optional().describe("Env-specific URL overrides (e.g. `rest`, `rpc`, `ws`).\n")
|
|
28109
|
-
}).describe(
|
|
28110
|
-
"Per-environment SDK manifest. The dex-api treats this as an opaque\noperator-supplied document apart from `schemaVersion`; the named\nsections below describe what SDKs currently look for, but unknown\ntop-level fields are preserved verbatim so a forward-compat manifest\nflows through without a server release.\n"
|
|
28111
|
-
);
|
|
28112
|
+
"schemaVersion": zod.number().min(1).describe("Manifest schema version. Server rejects values `< 1` at boot;\nfuture majors (e.g. `2`) pass through and are interpreted by\nthe SDK.\n"),
|
|
28113
|
+
"gas": zod.record(zod.string(), zod.unknown()).optional().describe("Module gas constants overridden for this env (keyed by message\ntype, e.g. `LIMIT_ORDER`). Values are integers.\n"),
|
|
28114
|
+
"eip712": zod.record(zod.string(), zod.unknown()).optional().describe("EIP-712 fee-related defaults (e.g. fee amount, gas limit). Shape\nis operator-controlled.\n"),
|
|
28115
|
+
"urls": zod.record(zod.string(), zod.unknown()).optional().describe("Env-specific URL overrides (e.g. `rest`, `rpc`, `ws`).\n")
|
|
28116
|
+
}).describe("Per-environment SDK manifest. The dex-api treats this as an opaque\noperator-supplied document apart from `schemaVersion`; the named\nsections below describe what SDKs currently look for, but unknown\ntop-level fields are preserved verbatim so a forward-compat manifest\nflows through without a server release.\n");
|
|
28112
28117
|
var listMarketsResponseTakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28113
28118
|
var listMarketsResponseMakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28114
28119
|
var listMarketsResponseInfoEscrowAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
|
|
28115
28120
|
var ListMarketsResponseItem = zod.object({
|
|
28116
|
-
id: zod.string(),
|
|
28117
|
-
symbol: zod.string(),
|
|
28118
|
-
base: zod.string(),
|
|
28119
|
-
quote: zod.string(),
|
|
28120
|
-
baseId: zod.string().describe("On-chain denom"),
|
|
28121
|
-
quoteId: zod.string(),
|
|
28122
|
-
active: zod.boolean(),
|
|
28123
|
-
type: zod.enum(["spot"]),
|
|
28124
|
-
spot: zod.boolean(),
|
|
28125
|
-
margin: zod.boolean().optional(),
|
|
28126
|
-
future: zod.boolean().optional(),
|
|
28127
|
-
swap: zod.boolean().optional(),
|
|
28128
|
-
option: zod.boolean().optional(),
|
|
28129
|
-
contract: zod.boolean().optional(),
|
|
28130
|
-
settle: zod.string().nullish(),
|
|
28131
|
-
settleId: zod.string().nullish(),
|
|
28132
|
-
contractSize: zod.number().nullish(),
|
|
28133
|
-
linear: zod.boolean().nullish(),
|
|
28134
|
-
inverse: zod.boolean().nullish(),
|
|
28135
|
-
expiry: zod.number().nullish(),
|
|
28136
|
-
expiryDatetime: zod.string().nullish(),
|
|
28137
|
-
strike: zod.number().nullish(),
|
|
28138
|
-
optionType: zod.string().nullish(),
|
|
28139
|
-
feeSide: zod.string().optional(),
|
|
28140
|
-
taker: zod.string().regex(listMarketsResponseTakerRegExp).describe(
|
|
28141
|
-
|
|
28142
|
-
),
|
|
28143
|
-
|
|
28144
|
-
|
|
28145
|
-
|
|
28146
|
-
|
|
28147
|
-
|
|
28148
|
-
price: zod.number().optional(),
|
|
28149
|
-
cost: zod.number().optional()
|
|
28121
|
+
"id": zod.string(),
|
|
28122
|
+
"symbol": zod.string(),
|
|
28123
|
+
"base": zod.string(),
|
|
28124
|
+
"quote": zod.string(),
|
|
28125
|
+
"baseId": zod.string().describe("On-chain denom"),
|
|
28126
|
+
"quoteId": zod.string(),
|
|
28127
|
+
"active": zod.boolean(),
|
|
28128
|
+
"type": zod.enum(["spot"]),
|
|
28129
|
+
"spot": zod.boolean(),
|
|
28130
|
+
"margin": zod.boolean().optional(),
|
|
28131
|
+
"future": zod.boolean().optional(),
|
|
28132
|
+
"swap": zod.boolean().optional(),
|
|
28133
|
+
"option": zod.boolean().optional(),
|
|
28134
|
+
"contract": zod.boolean().optional(),
|
|
28135
|
+
"settle": zod.string().nullish(),
|
|
28136
|
+
"settleId": zod.string().nullish(),
|
|
28137
|
+
"contractSize": zod.number().nullish(),
|
|
28138
|
+
"linear": zod.boolean().nullish(),
|
|
28139
|
+
"inverse": zod.boolean().nullish(),
|
|
28140
|
+
"expiry": zod.number().nullish(),
|
|
28141
|
+
"expiryDatetime": zod.string().nullish(),
|
|
28142
|
+
"strike": zod.number().nullish(),
|
|
28143
|
+
"optionType": zod.string().nullish(),
|
|
28144
|
+
"feeSide": zod.string().optional(),
|
|
28145
|
+
"taker": zod.string().regex(listMarketsResponseTakerRegExp).describe("Taker fee rate as a canonical decimal string. Strings preserve\nprecision past 2^53 raw units and avoid float-rounding noise.\n"),
|
|
28146
|
+
"maker": zod.string().regex(listMarketsResponseMakerRegExp).describe("Maker fee rate as a canonical decimal string."),
|
|
28147
|
+
"percentage": zod.boolean().optional(),
|
|
28148
|
+
"tierBased": zod.boolean().optional(),
|
|
28149
|
+
"precision": zod.object({
|
|
28150
|
+
"amount": zod.number().optional(),
|
|
28151
|
+
"price": zod.number().optional(),
|
|
28152
|
+
"cost": zod.number().optional()
|
|
28150
28153
|
}),
|
|
28151
|
-
limits: zod.object({
|
|
28152
|
-
leverage: zod.object({
|
|
28153
|
-
min: zod.number().nullish(),
|
|
28154
|
-
max: zod.number().nullish()
|
|
28154
|
+
"limits": zod.object({
|
|
28155
|
+
"leverage": zod.object({
|
|
28156
|
+
"min": zod.number().nullish(),
|
|
28157
|
+
"max": zod.number().nullish()
|
|
28155
28158
|
}).optional(),
|
|
28156
|
-
amount: zod.object({
|
|
28157
|
-
min: zod.number().nullish(),
|
|
28158
|
-
max: zod.number().nullish()
|
|
28159
|
+
"amount": zod.object({
|
|
28160
|
+
"min": zod.number().nullish(),
|
|
28161
|
+
"max": zod.number().nullish()
|
|
28159
28162
|
}).optional(),
|
|
28160
|
-
price: zod.object({
|
|
28161
|
-
min: zod.number().nullish(),
|
|
28162
|
-
max: zod.number().nullish()
|
|
28163
|
+
"price": zod.object({
|
|
28164
|
+
"min": zod.number().nullish(),
|
|
28165
|
+
"max": zod.number().nullish()
|
|
28163
28166
|
}).optional(),
|
|
28164
|
-
cost: zod.object({
|
|
28165
|
-
min: zod.number().nullish(),
|
|
28166
|
-
max: zod.number().nullish()
|
|
28167
|
+
"cost": zod.object({
|
|
28168
|
+
"min": zod.number().nullish(),
|
|
28169
|
+
"max": zod.number().nullish()
|
|
28167
28170
|
}).optional()
|
|
28168
28171
|
}),
|
|
28169
|
-
created: zod.number().nullish(),
|
|
28170
|
-
info: zod.object({
|
|
28171
|
-
escrow_address: zod.string().regex(listMarketsResponseInfoEscrowAddressOneRegExp).describe(
|
|
28172
|
-
|
|
28173
|
-
).optional().describe(
|
|
28174
|
-
|
|
28175
|
-
),
|
|
28176
|
-
block_height: zod.number().optional().describe("Height of the block at which the market was registered."),
|
|
28177
|
-
market_type: zod.number().optional().describe(
|
|
28178
|
-
"On-chain market type code (e.g. spot). Stable across the\nlifecycle of the market; `MarketResponse.type` carries the\nCCXT label.\n"
|
|
28179
|
-
)
|
|
28180
|
-
}).describe(
|
|
28181
|
-
"Exchange-specific extension on `MarketResponse`. Mirrors the\n`Info` map populated in `internal/domain/market/service.go`.\n"
|
|
28182
|
-
)
|
|
28172
|
+
"created": zod.number().nullish(),
|
|
28173
|
+
"info": zod.object({
|
|
28174
|
+
"escrow_address": zod.string().regex(listMarketsResponseInfoEscrowAddressOneRegExp).describe("Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n").optional().describe("Bech32 address of the per-market escrow account that holds\nuser deposits while orders are resting.\n"),
|
|
28175
|
+
"block_height": zod.number().optional().describe("Height of the block at which the market was registered."),
|
|
28176
|
+
"market_type": zod.number().optional().describe("On-chain market type code (e.g. spot). Stable across the\nlifecycle of the market; `MarketResponse.type` carries the\nCCXT label.\n")
|
|
28177
|
+
}).describe("Exchange-specific extension on `MarketResponse`. Mirrors the\n`Info` map populated in `internal/domain/market/service.go`.\n")
|
|
28183
28178
|
});
|
|
28184
28179
|
var ListMarketsResponse = zod.array(ListMarketsResponseItem);
|
|
28185
28180
|
var listCurrenciesResponseInfoContractDecimalsMin = 0;
|
|
28186
28181
|
var listCurrenciesResponseInfoContractDecimalsMax = 255;
|
|
28187
|
-
var ListCurrenciesResponse = zod.record(
|
|
28188
|
-
zod.string(),
|
|
28189
|
-
zod.
|
|
28190
|
-
|
|
28191
|
-
|
|
28192
|
-
|
|
28193
|
-
|
|
28194
|
-
|
|
28195
|
-
|
|
28196
|
-
|
|
28197
|
-
|
|
28198
|
-
"
|
|
28199
|
-
|
|
28200
|
-
|
|
28201
|
-
|
|
28202
|
-
|
|
28203
|
-
|
|
28204
|
-
|
|
28205
|
-
|
|
28206
|
-
|
|
28207
|
-
|
|
28208
|
-
|
|
28209
|
-
}),
|
|
28210
|
-
networks: zod.looseObject({}).optional(),
|
|
28211
|
-
info: zod.object({
|
|
28212
|
-
contractDecimals: zod.number().min(listCurrenciesResponseInfoContractDecimalsMin).max(listCurrenciesResponseInfoContractDecimalsMax).describe(
|
|
28213
|
-
"The token contract's own decimals (raw ERC20 decimals). Amounts\non the API are NOT in these units \u2014 see `precision`.\n"
|
|
28214
|
-
)
|
|
28215
|
-
})
|
|
28182
|
+
var ListCurrenciesResponse = zod.record(zod.string(), zod.object({
|
|
28183
|
+
"id": zod.string().describe("On-chain denom"),
|
|
28184
|
+
"code": zod.string().describe("Ticker symbol"),
|
|
28185
|
+
"name": zod.string().nullish(),
|
|
28186
|
+
"active": zod.boolean(),
|
|
28187
|
+
"deposit": zod.boolean().nullish(),
|
|
28188
|
+
"withdraw": zod.boolean().nullish(),
|
|
28189
|
+
"fee": zod.number().nullish(),
|
|
28190
|
+
"precision": zod.number().describe("The DEX trading precision \u2014 always 18: every amount on every\nendpoint (balances, orders, trades, portfolio) is normalized to\n18-decimal units regardless of the token contract's own\ndecimals. The raw contract decimals are available in\n`info.contractDecimals`.\n"),
|
|
28191
|
+
"limits": zod.object({
|
|
28192
|
+
"amount": zod.object({
|
|
28193
|
+
"min": zod.number().nullish(),
|
|
28194
|
+
"max": zod.number().nullish()
|
|
28195
|
+
}).optional(),
|
|
28196
|
+
"withdraw": zod.object({
|
|
28197
|
+
"min": zod.number().nullish(),
|
|
28198
|
+
"max": zod.number().nullish()
|
|
28199
|
+
}).optional()
|
|
28200
|
+
}),
|
|
28201
|
+
"networks": zod.looseObject({}).optional(),
|
|
28202
|
+
"info": zod.object({
|
|
28203
|
+
"contractDecimals": zod.number().min(listCurrenciesResponseInfoContractDecimalsMin).max(listCurrenciesResponseInfoContractDecimalsMax).describe("The token contract's own decimals (raw ERC20 decimals). Amounts\non the API are NOT in these units \u2014 see `precision`.\n")
|
|
28216
28204
|
})
|
|
28217
|
-
);
|
|
28205
|
+
}));
|
|
28218
28206
|
var GetTickerParams = zod.object({
|
|
28219
|
-
symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28207
|
+
"symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28220
28208
|
});
|
|
28221
28209
|
var GetTickerResponse = zod.object({
|
|
28222
|
-
symbol: zod.string(),
|
|
28223
|
-
high: zod.string().nullish(),
|
|
28224
|
-
low: zod.string().nullish(),
|
|
28225
|
-
bid: zod.string().nullish(),
|
|
28226
|
-
bidVolume: zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
|
|
28227
|
-
ask: zod.string().nullish(),
|
|
28228
|
-
askVolume: zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
|
|
28229
|
-
vwap: zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
|
|
28230
|
-
open: zod.string().nullish(),
|
|
28231
|
-
close: zod.string().nullish(),
|
|
28232
|
-
last: zod.string().nullish(),
|
|
28233
|
-
previousClose: zod.string().nullish().describe("Close price of the last bar before the 24h window."),
|
|
28234
|
-
change: zod.string().nullish(),
|
|
28235
|
-
percentage: zod.string().nullish(),
|
|
28236
|
-
average: zod.string().nullish().describe("Simple average: (open + last) / 2"),
|
|
28237
|
-
baseVolume: zod.string(),
|
|
28238
|
-
quoteVolume: zod.string().nullish(),
|
|
28239
|
-
timestamp: zod.number().describe("Milliseconds"),
|
|
28240
|
-
datetime: zod.iso.datetime({}),
|
|
28241
|
-
info: zod.looseObject({})
|
|
28242
|
-
}).describe(
|
|
28243
|
-
|
|
28244
|
-
)
|
|
28245
|
-
|
|
28246
|
-
zod.string(),
|
|
28247
|
-
zod.
|
|
28248
|
-
|
|
28249
|
-
|
|
28250
|
-
|
|
28251
|
-
|
|
28252
|
-
|
|
28253
|
-
|
|
28254
|
-
|
|
28255
|
-
|
|
28256
|
-
|
|
28257
|
-
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28265
|
-
timestamp: zod.number().describe("Milliseconds"),
|
|
28266
|
-
datetime: zod.iso.datetime({}),
|
|
28267
|
-
info: zod.looseObject({})
|
|
28268
|
-
}).describe(
|
|
28269
|
-
"24h ticker stats. All numeric fields are canonical decimal strings\nso quantities at any magnitude survive the JSON round-trip without\nrounding through float64. Pointer-style fields (high/low/bid/etc.)\nare nullable when no data is available for that field.\n"
|
|
28270
|
-
)
|
|
28271
|
-
);
|
|
28210
|
+
"symbol": zod.string(),
|
|
28211
|
+
"high": zod.string().nullish(),
|
|
28212
|
+
"low": zod.string().nullish(),
|
|
28213
|
+
"bid": zod.string().nullish(),
|
|
28214
|
+
"bidVolume": zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
|
|
28215
|
+
"ask": zod.string().nullish(),
|
|
28216
|
+
"askVolume": zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
|
|
28217
|
+
"vwap": zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
|
|
28218
|
+
"open": zod.string().nullish(),
|
|
28219
|
+
"close": zod.string().nullish(),
|
|
28220
|
+
"last": zod.string().nullish(),
|
|
28221
|
+
"previousClose": zod.string().nullish().describe("Close price of the last bar before the 24h window."),
|
|
28222
|
+
"change": zod.string().nullish(),
|
|
28223
|
+
"percentage": zod.string().nullish(),
|
|
28224
|
+
"average": zod.string().nullish().describe("Simple average: (open + last) / 2"),
|
|
28225
|
+
"baseVolume": zod.string(),
|
|
28226
|
+
"quoteVolume": zod.string().nullish(),
|
|
28227
|
+
"timestamp": zod.number().describe("Milliseconds"),
|
|
28228
|
+
"datetime": zod.iso.datetime({}),
|
|
28229
|
+
"info": zod.looseObject({})
|
|
28230
|
+
}).describe("24h ticker stats. All numeric fields are canonical decimal strings\nso quantities at any magnitude survive the JSON round-trip without\nrounding through float64. Pointer-style fields (high/low/bid/etc.)\nare nullable when no data is available for that field.\n");
|
|
28231
|
+
var GetAllTickersResponse = zod.record(zod.string(), zod.object({
|
|
28232
|
+
"symbol": zod.string(),
|
|
28233
|
+
"high": zod.string().nullish(),
|
|
28234
|
+
"low": zod.string().nullish(),
|
|
28235
|
+
"bid": zod.string().nullish(),
|
|
28236
|
+
"bidVolume": zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
|
|
28237
|
+
"ask": zod.string().nullish(),
|
|
28238
|
+
"askVolume": zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
|
|
28239
|
+
"vwap": zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
|
|
28240
|
+
"open": zod.string().nullish(),
|
|
28241
|
+
"close": zod.string().nullish(),
|
|
28242
|
+
"last": zod.string().nullish(),
|
|
28243
|
+
"previousClose": zod.string().nullish().describe("Close price of the last bar before the 24h window."),
|
|
28244
|
+
"change": zod.string().nullish(),
|
|
28245
|
+
"percentage": zod.string().nullish(),
|
|
28246
|
+
"average": zod.string().nullish().describe("Simple average: (open + last) / 2"),
|
|
28247
|
+
"baseVolume": zod.string(),
|
|
28248
|
+
"quoteVolume": zod.string().nullish(),
|
|
28249
|
+
"timestamp": zod.number().describe("Milliseconds"),
|
|
28250
|
+
"datetime": zod.iso.datetime({}),
|
|
28251
|
+
"info": zod.looseObject({})
|
|
28252
|
+
}).describe("24h ticker stats. All numeric fields are canonical decimal strings\nso quantities at any magnitude survive the JSON round-trip without\nrounding through float64. Pointer-style fields (high/low/bid/etc.)\nare nullable when no data is available for that field.\n"));
|
|
28272
28253
|
var GetOrderbookParams = zod.object({
|
|
28273
|
-
symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28254
|
+
"symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28274
28255
|
});
|
|
28275
28256
|
var getOrderbookQueryLimitDefault = 20;
|
|
28276
28257
|
var getOrderbookQueryLimitMax = 20;
|
|
28277
28258
|
var GetOrderbookQueryParams = zod.object({
|
|
28278
|
-
limit: zod.number().min(1).max(getOrderbookQueryLimitMax).default(getOrderbookQueryLimitDefault)
|
|
28259
|
+
"limit": zod.number().min(1).max(getOrderbookQueryLimitMax).default(getOrderbookQueryLimitDefault)
|
|
28279
28260
|
});
|
|
28280
28261
|
var getOrderbookResponseMarketIdRegExp = new RegExp("^[0-9a-f]{2,510}$");
|
|
28281
28262
|
var GetOrderbookResponse = zod.object({
|
|
28282
|
-
symbol: zod.string(),
|
|
28283
|
-
market_id: zod.string().regex(getOrderbookResponseMarketIdRegExp).describe(
|
|
28284
|
-
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
|
|
28288
|
-
|
|
28289
|
-
|
|
28290
|
-
|
|
28291
|
-
).describe(
|
|
28292
|
-
|
|
28293
|
-
),
|
|
28294
|
-
|
|
28295
|
-
zod.tuple([
|
|
28296
|
-
zod.string().describe("price, decimal string"),
|
|
28297
|
-
zod.string().describe("quantity, decimal string")
|
|
28298
|
-
])
|
|
28299
|
-
).describe(
|
|
28300
|
-
"Ask levels as `[price, qty]` decimal-string tuples. Ordered by\nprice ascending \u2014 index 0 is the best ask. Matches the WS\n`book` topic, so consumers that switch between REST snapshots\nand WS deltas don't need to re-sort.\n"
|
|
28301
|
-
),
|
|
28302
|
-
timestamp: zod.number(),
|
|
28303
|
-
datetime: zod.iso.datetime({}),
|
|
28304
|
-
nonce: zod.number()
|
|
28263
|
+
"symbol": zod.string(),
|
|
28264
|
+
"market_id": zod.string().regex(getOrderbookResponseMarketIdRegExp).describe("Hex-encoded chain market identifier (no `0x` prefix). Provided so\nconsumers can round-trip back to chain proto endpoints which key\non the binary market id without re-resolving the symbol map.\nLayout on the chain side is `MarketType (1 byte) | baseDenom |\n\\\\x00 | quoteDenom`, with the full id stored as `VARBINARY(255)`\nin the indexer; the hex form is therefore variable-length, even\nfor short-denom test markets that hit the lower bound.\n"),
|
|
28265
|
+
"bids": zod.array(zod.tuple([
|
|
28266
|
+
zod.string().describe("price, decimal string"),
|
|
28267
|
+
zod.string().describe("quantity, decimal string")
|
|
28268
|
+
])).describe("Bid levels as `[price, qty]` decimal-string tuples. Ordered by\nprice descending \u2014 index 0 is the best bid. Matches the WS\n`book` topic (`docs/websocket-api.md`), so consumers that switch\nbetween REST snapshots and WS deltas don't need to re-sort.\n"),
|
|
28269
|
+
"asks": zod.array(zod.tuple([
|
|
28270
|
+
zod.string().describe("price, decimal string"),
|
|
28271
|
+
zod.string().describe("quantity, decimal string")
|
|
28272
|
+
])).describe("Ask levels as `[price, qty]` decimal-string tuples. Ordered by\nprice ascending \u2014 index 0 is the best ask. Matches the WS\n`book` topic, so consumers that switch between REST snapshots\nand WS deltas don't need to re-sort.\n"),
|
|
28273
|
+
"timestamp": zod.number(),
|
|
28274
|
+
"datetime": zod.iso.datetime({}),
|
|
28275
|
+
"nonce": zod.number()
|
|
28305
28276
|
});
|
|
28306
28277
|
var ListTradesParams = zod.object({
|
|
28307
|
-
symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28278
|
+
"symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28308
28279
|
});
|
|
28309
28280
|
var listTradesQueryLimitDefault = 100;
|
|
28310
28281
|
var listTradesQueryLimitMax = 500;
|
|
28311
28282
|
var listTradesQueryBeforeIndexMin = 0;
|
|
28312
28283
|
var listTradesQueryBeforeIndexMax = 4294967295;
|
|
28313
28284
|
var ListTradesQueryParams = zod.object({
|
|
28314
|
-
limit: zod.number().min(1).max(listTradesQueryLimitMax).default(listTradesQueryLimitDefault),
|
|
28315
|
-
since: zod.number().optional().describe("Unix timestamp in milliseconds"),
|
|
28316
|
-
cursor: zod.string().optional().describe(
|
|
28317
|
-
|
|
28318
|
-
),
|
|
28319
|
-
before_height: zod.number().min(1).optional().describe(
|
|
28320
|
-
"Deprecated in favour of `cursor`; still honoured, and ignored when\n`cursor` is also present.\n\nComposite pagination cursor, upper half. Returns only trades\nstrictly older (in feed order) than the row identified by\n(`before_height`, `before_index`) \u2014 take both values from the\nlast row's `info.block_height` / `info.event_index`. Must be\npassed together with `before_index`. Unlike `since`, the cursor\ncannot skip or repeat trades when many share one timestamp.\n"
|
|
28321
|
-
),
|
|
28322
|
-
before_index: zod.number().min(listTradesQueryBeforeIndexMin).max(listTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
|
|
28285
|
+
"limit": zod.number().min(1).max(listTradesQueryLimitMax).default(listTradesQueryLimitDefault),
|
|
28286
|
+
"since": zod.number().optional().describe("Unix timestamp in milliseconds"),
|
|
28287
|
+
"cursor": zod.string().optional().describe('Opaque pagination cursor. Take it verbatim from the previous page\'s\n`X-Next-Cursor` header (or follow the `Link: rel="next"` URL) and\nrepeat every other query parameter; the cursor is bound to that\nfilter set and a different one is rejected with 400. `limit` may\nchange between pages. No `X-Next-Cursor` on a response means the\nfeed is exhausted. Clients must not build or parse cursors.\n'),
|
|
28288
|
+
"before_height": zod.number().min(1).optional().describe("Deprecated in favour of `cursor`; still honoured, and ignored when\n`cursor` is also present.\n\nComposite pagination cursor, upper half. Returns only trades\nstrictly older (in feed order) than the row identified by\n(`before_height`, `before_index`) \u2014 take both values from the\nlast row's `info.block_height` / `info.event_index`. Must be\npassed together with `before_index`. Unlike `since`, the cursor\ncannot skip or repeat trades when many share one timestamp.\n"),
|
|
28289
|
+
"before_index": zod.number().min(listTradesQueryBeforeIndexMin).max(listTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
|
|
28323
28290
|
});
|
|
28324
28291
|
var listTradesResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28325
28292
|
var listTradesResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
@@ -28331,70 +28298,36 @@ var listTradesResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
|
28331
28298
|
var listTradesResponseInfoEventIndexMin = 0;
|
|
28332
28299
|
var listTradesResponseInfoEventIndexMax = 4294967295;
|
|
28333
28300
|
var ListTradesResponseItem = zod.object({
|
|
28334
|
-
id: zod.string(),
|
|
28335
|
-
order: zod.string().nullish(),
|
|
28336
|
-
timestamp: zod.number(),
|
|
28337
|
-
datetime: zod.iso.datetime({}),
|
|
28338
|
-
symbol: zod.string(),
|
|
28339
|
-
type: zod.union([
|
|
28340
|
-
|
|
28341
|
-
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
|
|
28345
|
-
|
|
28346
|
-
|
|
28347
|
-
|
|
28348
|
-
|
|
28349
|
-
"
|
|
28350
|
-
),
|
|
28351
|
-
|
|
28352
|
-
|
|
28353
|
-
"
|
|
28354
|
-
|
|
28355
|
-
|
|
28356
|
-
|
|
28357
|
-
|
|
28358
|
-
|
|
28359
|
-
cost: zod.string().regex(listTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
|
|
28360
|
-
currency: zod.string().optional().describe(
|
|
28361
|
-
'Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'
|
|
28362
|
-
),
|
|
28363
|
-
rate: zod.string().regex(listTradesResponseFeeRateRegExp).optional().describe(
|
|
28364
|
-
"This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise."
|
|
28365
|
-
)
|
|
28366
|
-
}).optional().describe(
|
|
28367
|
-
"Fee charged on the fill. When the indexer recorded a realized fee, cost and currency report it verbatim; the currency follows the denom the filled leg received, which is the base asset on a taker buy, not always the quote. For rows that predate fee indexing, cost falls back to the estimate amount * price * rate in the quote currency, where rate is this leg's rate (maker_fee_rate for the maker leg, otherwise taker_fee_rate)."
|
|
28368
|
-
),
|
|
28369
|
-
info: zod.object({
|
|
28370
|
-
address: zod.string().regex(listTradesResponseInfoAddressOneRegExp).describe(
|
|
28371
|
-
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
28372
|
-
).describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
28373
|
-
paid: zod.string().describe(
|
|
28374
|
-
'Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'
|
|
28375
|
-
),
|
|
28376
|
-
received: zod.string().describe(
|
|
28377
|
-
"Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"
|
|
28378
|
-
),
|
|
28379
|
-
block_height: zod.string().regex(listTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
|
|
28380
|
-
event_index: zod.number().min(listTradesResponseInfoEventIndexMin).max(listTradesResponseInfoEventIndexMax).describe(
|
|
28381
|
-
"The trade's event position within its block. With `block_height`\nit forms the row's composite pagination cursor: pass the last\nrow's pair as `before_height`/`before_index` to fetch the next\n(older) page.\n"
|
|
28382
|
-
)
|
|
28383
|
-
}).describe(
|
|
28384
|
-
"Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
|
|
28385
|
-
)
|
|
28386
|
-
}).describe(
|
|
28387
|
-
"All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n"
|
|
28388
|
-
);
|
|
28301
|
+
"id": zod.string(),
|
|
28302
|
+
"order": zod.string().nullish(),
|
|
28303
|
+
"timestamp": zod.number(),
|
|
28304
|
+
"datetime": zod.iso.datetime({}),
|
|
28305
|
+
"symbol": zod.string(),
|
|
28306
|
+
"type": zod.union([zod.literal("limit"), zod.literal("market"), zod.literal("twap"), zod.literal("unknown"), zod.literal(null)]).nullish().describe("Order type resolved via JOIN to orders table. `twap` marks a TWAP slice execution (chain code 2). Null if order not found. `unknown` is the fallback for a chain code the API doesn't recognize."),
|
|
28307
|
+
"cloid": zod.string().nullish().describe("Client order id (hex, 8 bytes) resolved via JOIN to orders table. Null when the order carried none, the row predates cloid indexing, or on the public trades feed (cloids are private to the orderer)."),
|
|
28308
|
+
"side": zod.enum(["buy", "sell"]),
|
|
28309
|
+
"takerOrMaker": zod.enum(["taker", "maker"]).optional().describe("Which leg of the match this fill is. Each match writes a maker leg and a taker leg; the public market feed returns only the maker leg so a market's trades aren't double-counted, while the per-orderer feed returns whichever leg belongs to that orderer."),
|
|
28310
|
+
"price": zod.string().regex(listTradesResponsePriceRegExp),
|
|
28311
|
+
"amount": zod.string().regex(listTradesResponseAmountRegExp),
|
|
28312
|
+
"cost": zod.string().regex(listTradesResponseCostRegExp).describe("price * amount"),
|
|
28313
|
+
"fee": zod.object({
|
|
28314
|
+
"cost": zod.string().regex(listTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
|
|
28315
|
+
"currency": zod.string().optional().describe('Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'),
|
|
28316
|
+
"rate": zod.string().regex(listTradesResponseFeeRateRegExp).optional().describe("This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise.")
|
|
28317
|
+
}).optional().describe("Fee charged on the fill. When the indexer recorded a realized fee, cost and currency report it verbatim; the currency follows the denom the filled leg received, which is the base asset on a taker buy, not always the quote. For rows that predate fee indexing, cost falls back to the estimate amount * price * rate in the quote currency, where rate is this leg's rate (maker_fee_rate for the maker leg, otherwise taker_fee_rate)."),
|
|
28318
|
+
"info": zod.object({
|
|
28319
|
+
"address": zod.string().regex(listTradesResponseInfoAddressOneRegExp).describe("Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n").describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
28320
|
+
"paid": zod.string().describe('Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'),
|
|
28321
|
+
"received": zod.string().describe("Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"),
|
|
28322
|
+
"block_height": zod.string().regex(listTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
|
|
28323
|
+
"event_index": zod.number().min(listTradesResponseInfoEventIndexMin).max(listTradesResponseInfoEventIndexMax).describe("The trade's event position within its block. With `block_height`\nit forms the row's composite pagination cursor: pass the last\nrow's pair as `before_height`/`before_index` to fetch the next\n(older) page.\n")
|
|
28324
|
+
}).describe("Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n")
|
|
28325
|
+
}).describe("All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n");
|
|
28389
28326
|
var ListTradesResponse = zod.array(ListTradesResponseItem);
|
|
28390
28327
|
var getTradePathIdMax = 114;
|
|
28391
|
-
var getTradePathIdRegExp = new RegExp(
|
|
28392
|
-
"^(0|[1-9][0-9]*)-[0-9a-f]{32}-(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"
|
|
28393
|
-
);
|
|
28328
|
+
var getTradePathIdRegExp = new RegExp("^(0|[1-9][0-9]*)-[0-9a-f]{32}-(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$");
|
|
28394
28329
|
var GetTradeParams = zod.object({
|
|
28395
|
-
id: zod.string().max(getTradePathIdMax).regex(getTradePathIdRegExp).describe(
|
|
28396
|
-
"Synthesized trade id in the form\n`<block_height>-<hex(order_id)>-<open_quantity>`, taken verbatim from\na REST trade object's `id` field (not the WebSocket `tid`).\n"
|
|
28397
|
-
)
|
|
28330
|
+
"id": zod.string().max(getTradePathIdMax).regex(getTradePathIdRegExp).describe("Synthesized trade id in the form\n`<block_height>-<hex(order_id)>-<open_quantity>`, taken verbatim from\na REST trade object's `id` field (not the WebSocket `tid`).\n")
|
|
28398
28331
|
});
|
|
28399
28332
|
var getTradeResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28400
28333
|
var getTradeResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
@@ -28406,76 +28339,43 @@ var getTradeResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
|
28406
28339
|
var getTradeResponseInfoEventIndexMin = 0;
|
|
28407
28340
|
var getTradeResponseInfoEventIndexMax = 4294967295;
|
|
28408
28341
|
var GetTradeResponse = zod.object({
|
|
28409
|
-
id: zod.string(),
|
|
28410
|
-
order: zod.string().nullish(),
|
|
28411
|
-
timestamp: zod.number(),
|
|
28412
|
-
datetime: zod.iso.datetime({}),
|
|
28413
|
-
symbol: zod.string(),
|
|
28414
|
-
type: zod.union([
|
|
28415
|
-
|
|
28416
|
-
|
|
28417
|
-
|
|
28418
|
-
|
|
28419
|
-
|
|
28420
|
-
|
|
28421
|
-
|
|
28422
|
-
|
|
28423
|
-
|
|
28424
|
-
"
|
|
28425
|
-
),
|
|
28426
|
-
|
|
28427
|
-
|
|
28428
|
-
"
|
|
28429
|
-
|
|
28430
|
-
|
|
28431
|
-
|
|
28432
|
-
|
|
28433
|
-
|
|
28434
|
-
cost: zod.string().regex(getTradeResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
|
|
28435
|
-
currency: zod.string().optional().describe(
|
|
28436
|
-
'Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'
|
|
28437
|
-
),
|
|
28438
|
-
rate: zod.string().regex(getTradeResponseFeeRateRegExp).optional().describe(
|
|
28439
|
-
"This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise."
|
|
28440
|
-
)
|
|
28441
|
-
}).optional().describe(
|
|
28442
|
-
"Fee charged on the fill. When the indexer recorded a realized fee, cost and currency report it verbatim; the currency follows the denom the filled leg received, which is the base asset on a taker buy, not always the quote. For rows that predate fee indexing, cost falls back to the estimate amount * price * rate in the quote currency, where rate is this leg's rate (maker_fee_rate for the maker leg, otherwise taker_fee_rate)."
|
|
28443
|
-
),
|
|
28444
|
-
info: zod.object({
|
|
28445
|
-
address: zod.string().regex(getTradeResponseInfoAddressOneRegExp).describe(
|
|
28446
|
-
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
28447
|
-
).describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
28448
|
-
paid: zod.string().describe(
|
|
28449
|
-
'Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'
|
|
28450
|
-
),
|
|
28451
|
-
received: zod.string().describe(
|
|
28452
|
-
"Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"
|
|
28453
|
-
),
|
|
28454
|
-
block_height: zod.string().regex(getTradeResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
|
|
28455
|
-
event_index: zod.number().min(getTradeResponseInfoEventIndexMin).max(getTradeResponseInfoEventIndexMax).describe(
|
|
28456
|
-
"The trade's event position within its block. With `block_height`\nit forms the row's composite pagination cursor: pass the last\nrow's pair as `before_height`/`before_index` to fetch the next\n(older) page.\n"
|
|
28457
|
-
)
|
|
28458
|
-
}).describe(
|
|
28459
|
-
"Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
|
|
28460
|
-
)
|
|
28461
|
-
}).describe(
|
|
28462
|
-
"All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n"
|
|
28463
|
-
);
|
|
28342
|
+
"id": zod.string(),
|
|
28343
|
+
"order": zod.string().nullish(),
|
|
28344
|
+
"timestamp": zod.number(),
|
|
28345
|
+
"datetime": zod.iso.datetime({}),
|
|
28346
|
+
"symbol": zod.string(),
|
|
28347
|
+
"type": zod.union([zod.literal("limit"), zod.literal("market"), zod.literal("twap"), zod.literal("unknown"), zod.literal(null)]).nullish().describe("Order type resolved via JOIN to orders table. `twap` marks a TWAP slice execution (chain code 2). Null if order not found. `unknown` is the fallback for a chain code the API doesn't recognize."),
|
|
28348
|
+
"cloid": zod.string().nullish().describe("Client order id (hex, 8 bytes) resolved via JOIN to orders table. Null when the order carried none, the row predates cloid indexing, or on the public trades feed (cloids are private to the orderer)."),
|
|
28349
|
+
"side": zod.enum(["buy", "sell"]),
|
|
28350
|
+
"takerOrMaker": zod.enum(["taker", "maker"]).optional().describe("Which leg of the match this fill is. Each match writes a maker leg and a taker leg; the public market feed returns only the maker leg so a market's trades aren't double-counted, while the per-orderer feed returns whichever leg belongs to that orderer."),
|
|
28351
|
+
"price": zod.string().regex(getTradeResponsePriceRegExp),
|
|
28352
|
+
"amount": zod.string().regex(getTradeResponseAmountRegExp),
|
|
28353
|
+
"cost": zod.string().regex(getTradeResponseCostRegExp).describe("price * amount"),
|
|
28354
|
+
"fee": zod.object({
|
|
28355
|
+
"cost": zod.string().regex(getTradeResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
|
|
28356
|
+
"currency": zod.string().optional().describe('Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'),
|
|
28357
|
+
"rate": zod.string().regex(getTradeResponseFeeRateRegExp).optional().describe("This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise.")
|
|
28358
|
+
}).optional().describe("Fee charged on the fill. When the indexer recorded a realized fee, cost and currency report it verbatim; the currency follows the denom the filled leg received, which is the base asset on a taker buy, not always the quote. For rows that predate fee indexing, cost falls back to the estimate amount * price * rate in the quote currency, where rate is this leg's rate (maker_fee_rate for the maker leg, otherwise taker_fee_rate)."),
|
|
28359
|
+
"info": zod.object({
|
|
28360
|
+
"address": zod.string().regex(getTradeResponseInfoAddressOneRegExp).describe("Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n").describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
28361
|
+
"paid": zod.string().describe('Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'),
|
|
28362
|
+
"received": zod.string().describe("Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"),
|
|
28363
|
+
"block_height": zod.string().regex(getTradeResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
|
|
28364
|
+
"event_index": zod.number().min(getTradeResponseInfoEventIndexMin).max(getTradeResponseInfoEventIndexMax).describe("The trade's event position within its block. With `block_height`\nit forms the row's composite pagination cursor: pass the last\nrow's pair as `before_height`/`before_index` to fetch the next\n(older) page.\n")
|
|
28365
|
+
}).describe("Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n")
|
|
28366
|
+
}).describe("All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n");
|
|
28464
28367
|
var getTradingFeesResponseMakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28465
28368
|
var getTradingFeesResponseTakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28466
|
-
var GetTradingFeesResponse = zod.record(
|
|
28467
|
-
zod.string(),
|
|
28468
|
-
zod.
|
|
28469
|
-
|
|
28470
|
-
|
|
28471
|
-
|
|
28472
|
-
|
|
28473
|
-
|
|
28474
|
-
info: zod.looseObject({})
|
|
28475
|
-
})
|
|
28476
|
-
);
|
|
28369
|
+
var GetTradingFeesResponse = zod.record(zod.string(), zod.object({
|
|
28370
|
+
"symbol": zod.string(),
|
|
28371
|
+
"maker": zod.string().regex(getTradingFeesResponseMakerRegExp).describe("Maker fee rate as a canonical decimal string."),
|
|
28372
|
+
"taker": zod.string().regex(getTradingFeesResponseTakerRegExp).describe("Taker fee rate as a canonical decimal string."),
|
|
28373
|
+
"percentage": zod.boolean(),
|
|
28374
|
+
"tierBased": zod.boolean(),
|
|
28375
|
+
"info": zod.looseObject({})
|
|
28376
|
+
}));
|
|
28477
28377
|
var GetStatsQueryParams = zod.object({
|
|
28478
|
-
window: zod.enum(["24h", "7d", "30d", "all"]).optional().describe("Precomputed reporting window. Defaults to `24h`.")
|
|
28378
|
+
"window": zod.enum(["24h", "7d", "30d", "all"]).optional().describe("Precomputed reporting window. Defaults to `24h`.")
|
|
28479
28379
|
});
|
|
28480
28380
|
var getStatsResponseTotalsQuoteVolumeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28481
28381
|
var getStatsResponseTotalsEstimatedFeeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
@@ -28487,44 +28387,30 @@ var getStatsResponseMarketsItemBaseVolumeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$
|
|
|
28487
28387
|
var getStatsResponseMarketsItemEstimatedFeeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28488
28388
|
var getStatsResponseMarketsItemTakerFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28489
28389
|
var GetStatsResponse = zod.object({
|
|
28490
|
-
window: zod.enum(["24h", "7d", "30d", "all"]),
|
|
28491
|
-
totals: zod.object({
|
|
28492
|
-
quoteVolume: zod.string().regex(getStatsResponseTotalsQuoteVolumeRegExp).nullable().describe(
|
|
28493
|
-
|
|
28494
|
-
),
|
|
28495
|
-
|
|
28496
|
-
|
|
28497
|
-
),
|
|
28498
|
-
|
|
28499
|
-
|
|
28500
|
-
),
|
|
28501
|
-
|
|
28502
|
-
traderCount: zod.number().describe("Distinct trading addresses in the window."),
|
|
28503
|
-
activeMarkets: zod.number().describe("Number of markets with at least one fill in the window."),
|
|
28504
|
-
dailyActiveUsers: zod.number().nullable().describe(
|
|
28505
|
-
"Distinct trading addresses over 24 hours. An alias of\n`traderCount` for the `24h` response and null for longer windows;\nseparate so a precise DAU source can diverge later.\n"
|
|
28506
|
-
),
|
|
28507
|
-
averageSlippageBps: zod.string().regex(getStatsResponseTotalsAverageSlippageBpsRegExp).nullable().describe(
|
|
28508
|
-
"Volume-weighted taker slippage (fill vs book-mid) in bps as a\ndecimal string. Null with no benchmarkable taker fill or when\nfills span more than one quote.\n"
|
|
28509
|
-
),
|
|
28510
|
-
depositUsdcVolume24h: zod.string().regex(getStatsResponseTotalsDepositUsdcVolume24hRegExp).nullable().describe("24h USDC deposit volume when available; null for longer windows."),
|
|
28511
|
-
builderCodesFee24h: zod.string().regex(getStatsResponseTotalsBuilderCodesFee24hRegExp).nullable().describe("Reserved. Currently always null.")
|
|
28390
|
+
"window": zod.enum(["24h", "7d", "30d", "all"]),
|
|
28391
|
+
"totals": zod.object({
|
|
28392
|
+
"quoteVolume": zod.string().regex(getStatsResponseTotalsQuoteVolumeRegExp).nullable().describe("Total quote volume over the window as a canonical decimal string.\nNull when contributing markets span more than one quote (then\n`estimatedFee` and `quoteAsset` are null too).\n"),
|
|
28393
|
+
"quoteAsset": zod.string().nullable().describe('Shared quote ticker of the markets that had volume. Null when they\nspan more than one quote, or on an idle window (then `quoteVolume`\nis "0"; a null `quoteVolume` means multi-quote).\n'),
|
|
28394
|
+
"estimatedFee": zod.string().regex(getStatsResponseTotalsEstimatedFeeRegExp).nullable().describe("Estimated total fees (`\u03A3 quoteVolume \xD7 takerFeeRate`) as a decimal\nstring; an estimate, not booked revenue. Null on multi-quote.\n"),
|
|
28395
|
+
"tradeCount": zod.number().describe("Number of fills (maker legs) in the window."),
|
|
28396
|
+
"traderCount": zod.number().describe("Distinct trading addresses in the window."),
|
|
28397
|
+
"activeMarkets": zod.number().describe("Number of markets with at least one fill in the window."),
|
|
28398
|
+
"dailyActiveUsers": zod.number().nullable().describe("Distinct trading addresses over 24 hours. An alias of\n`traderCount` for the `24h` response and null for longer windows;\nseparate so a precise DAU source can diverge later.\n"),
|
|
28399
|
+
"averageSlippageBps": zod.string().regex(getStatsResponseTotalsAverageSlippageBpsRegExp).nullable().describe("Volume-weighted taker slippage (fill vs book-mid) in bps as a\ndecimal string. Null with no benchmarkable taker fill or when\nfills span more than one quote.\n"),
|
|
28400
|
+
"depositUsdcVolume24h": zod.string().regex(getStatsResponseTotalsDepositUsdcVolume24hRegExp).nullable().describe("24h USDC deposit volume when available; null for longer windows."),
|
|
28401
|
+
"builderCodesFee24h": zod.string().regex(getStatsResponseTotalsBuilderCodesFee24hRegExp).nullable().describe("Reserved. Currently always null.")
|
|
28512
28402
|
}).describe("Protocol-wide aggregates for the window."),
|
|
28513
|
-
markets: zod.array(
|
|
28514
|
-
zod.
|
|
28515
|
-
|
|
28516
|
-
|
|
28517
|
-
|
|
28518
|
-
|
|
28519
|
-
|
|
28520
|
-
|
|
28521
|
-
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
)
|
|
28525
|
-
}).describe(
|
|
28526
|
-
"Protocol stats overview for a rolling window. Monetary fields are\ncanonical decimal strings; counts are integers.\n"
|
|
28527
|
-
);
|
|
28403
|
+
"markets": zod.array(zod.object({
|
|
28404
|
+
"symbol": zod.string(),
|
|
28405
|
+
"base": zod.string(),
|
|
28406
|
+
"quote": zod.string(),
|
|
28407
|
+
"quoteVolume": zod.string().regex(getStatsResponseMarketsItemQuoteVolumeRegExp),
|
|
28408
|
+
"baseVolume": zod.string().regex(getStatsResponseMarketsItemBaseVolumeRegExp),
|
|
28409
|
+
"estimatedFee": zod.string().regex(getStatsResponseMarketsItemEstimatedFeeRegExp),
|
|
28410
|
+
"tradeCount": zod.number(),
|
|
28411
|
+
"takerFeeRate": zod.string().regex(getStatsResponseMarketsItemTakerFeeRateRegExp)
|
|
28412
|
+
}).describe("Per-market aggregates for the window."))
|
|
28413
|
+
}).describe("Protocol stats overview for a rolling window. Monetary fields are\ncanonical decimal strings; counts are integers.\n");
|
|
28528
28414
|
var listOrdersQueryAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
|
|
28529
28415
|
var listOrdersQueryAddressTwoRegExp = new RegExp("^0x[a-f0-9]{40}$");
|
|
28530
28416
|
var listOrdersQueryMarketIdRegExp = new RegExp("^[0-9a-fA-F]+$");
|
|
@@ -28532,27 +28418,14 @@ var listOrdersQueryCloidRegExp = new RegExp("^([0-9a-fA-F]{16})?$");
|
|
|
28532
28418
|
var listOrdersQueryLimitDefault = 100;
|
|
28533
28419
|
var listOrdersQueryLimitMax = 500;
|
|
28534
28420
|
var ListOrdersQueryParams = zod.object({
|
|
28535
|
-
address: zod.union([
|
|
28536
|
-
|
|
28537
|
-
|
|
28538
|
-
|
|
28539
|
-
|
|
28540
|
-
|
|
28541
|
-
|
|
28542
|
-
|
|
28543
|
-
"Account address. Accepts either bech32 (`ault1...`) or 0x-hex\n(`0x...`) form; the API normalizes to the canonical bech32\nstored in the indexer before querying.\n"
|
|
28544
|
-
),
|
|
28545
|
-
status: zod.enum(["open", "closed", "canceled"]).optional(),
|
|
28546
|
-
symbol: zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT). Alternative to market_id."),
|
|
28547
|
-
market_id: zod.string().regex(listOrdersQueryMarketIdRegExp).optional().describe("Hex-encoded binary market ID to filter by. Takes precedence over symbol."),
|
|
28548
|
-
cloid: zod.string().regex(listOrdersQueryCloidRegExp).optional().describe(
|
|
28549
|
-
"Client order id (cloid) to filter by, as a hex string. A\nnon-empty value must decode to exactly 8 bytes (16 hex chars);\nanything else returns 400. An absent or empty (`cloid=`) value\napplies no cloid filter, matching how `market_id` behaves.\nCombined with `address`, a set cloid returns the orders carrying\nit. cloid uniqueness is only enforced for currently-resting\norders, so closed orders that reused the cloid may also match and\nmore than one order can be returned.\n"
|
|
28550
|
-
),
|
|
28551
|
-
since: zod.number().optional().describe("Return orders created after this Unix timestamp (milliseconds)"),
|
|
28552
|
-
limit: zod.number().min(1).max(listOrdersQueryLimitMax).default(listOrdersQueryLimitDefault),
|
|
28553
|
-
cursor: zod.string().optional().describe(
|
|
28554
|
-
'Opaque pagination cursor. Take it verbatim from the previous page\'s\n`X-Next-Cursor` header (or follow the `Link: rel="next"` URL) and\nrepeat every other query parameter; the cursor is bound to that\nfilter set and a different one is rejected with 400. `limit` may\nchange between pages. No `X-Next-Cursor` on a response means the\nfeed is exhausted. Clients must not build or parse cursors.\n'
|
|
28555
|
-
)
|
|
28421
|
+
"address": zod.union([zod.string().regex(listOrdersQueryAddressOneRegExp).describe("Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"), zod.string().regex(listOrdersQueryAddressTwoRegExp).describe("EVM hex form of the same 20-byte account address. Always\n`0x`-prefixed and lowercased; mixed-case bodies are rejected so a\nnon-checksummed and a checksummed copy of the same address never\ncompare unequal at the API boundary.\n")]).describe("Account address. Accepts either bech32 (`ault1...`) or 0x-hex\n(`0x...`) form; the API normalizes to the canonical bech32\nstored in the indexer before querying.\n"),
|
|
28422
|
+
"status": zod.enum(["open", "closed", "canceled"]).optional(),
|
|
28423
|
+
"symbol": zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT). Alternative to market_id."),
|
|
28424
|
+
"market_id": zod.string().regex(listOrdersQueryMarketIdRegExp).optional().describe("Hex-encoded binary market ID to filter by. Takes precedence over symbol."),
|
|
28425
|
+
"cloid": zod.string().regex(listOrdersQueryCloidRegExp).optional().describe("Client order id (cloid) to filter by, as a hex string. A\nnon-empty value must decode to exactly 8 bytes (16 hex chars);\nanything else returns 400. An absent or empty (`cloid=`) value\napplies no cloid filter, matching how `market_id` behaves.\nCombined with `address`, a set cloid returns the orders carrying\nit. cloid uniqueness is only enforced for currently-resting\norders, so closed orders that reused the cloid may also match and\nmore than one order can be returned.\n"),
|
|
28426
|
+
"since": zod.number().optional().describe("Return orders created after this Unix timestamp (milliseconds)"),
|
|
28427
|
+
"limit": zod.number().min(1).max(listOrdersQueryLimitMax).default(listOrdersQueryLimitDefault),
|
|
28428
|
+
"cursor": zod.string().optional().describe('Opaque pagination cursor. Take it verbatim from the previous page\'s\n`X-Next-Cursor` header (or follow the `Link: rel="next"` URL) and\nrepeat every other query parameter; the cursor is bound to that\nfilter set and a different one is rejected with 400. `limit` may\nchange between pages. No `X-Next-Cursor` on a response means the\nfeed is exhausted. Clients must not build or parse cursors.\n')
|
|
28556
28429
|
});
|
|
28557
28430
|
var listOrdersResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28558
28431
|
var listOrdersResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
@@ -28563,77 +28436,60 @@ var listOrdersResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
|
28563
28436
|
var listOrdersResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28564
28437
|
var listOrdersResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
28565
28438
|
var listOrdersResponseInfoRemainingDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28439
|
+
var listOrdersResponseInfoTwapIdRegExp = new RegExp("^[0-9a-f]+$");
|
|
28440
|
+
var listOrdersResponseInfoTwapOneTotalDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28441
|
+
var listOrdersResponseInfoTwapOnePriceToleranceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28442
|
+
var listOrdersResponseInfoTwapOneWorstPriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28566
28443
|
var ListOrdersResponseItem = zod.object({
|
|
28567
|
-
id: zod.string(),
|
|
28568
|
-
clientOrderId: zod.string().nullish().describe(
|
|
28569
|
-
|
|
28570
|
-
),
|
|
28571
|
-
|
|
28572
|
-
|
|
28573
|
-
|
|
28574
|
-
|
|
28575
|
-
|
|
28576
|
-
|
|
28577
|
-
|
|
28578
|
-
),
|
|
28579
|
-
|
|
28580
|
-
|
|
28581
|
-
),
|
|
28582
|
-
|
|
28583
|
-
|
|
28584
|
-
|
|
28585
|
-
|
|
28586
|
-
|
|
28587
|
-
|
|
28588
|
-
|
|
28589
|
-
|
|
28590
|
-
),
|
|
28591
|
-
|
|
28592
|
-
|
|
28593
|
-
|
|
28594
|
-
|
|
28595
|
-
|
|
28596
|
-
|
|
28597
|
-
"
|
|
28598
|
-
|
|
28599
|
-
|
|
28600
|
-
|
|
28601
|
-
|
|
28602
|
-
|
|
28603
|
-
|
|
28604
|
-
|
|
28605
|
-
"
|
|
28606
|
-
|
|
28607
|
-
|
|
28608
|
-
|
|
28609
|
-
"
|
|
28610
|
-
),
|
|
28611
|
-
|
|
28612
|
-
|
|
28613
|
-
"partially_filled",
|
|
28614
|
-
"filled",
|
|
28615
|
-
"cancelled",
|
|
28616
|
-
"expired",
|
|
28617
|
-
"triggered_pending",
|
|
28618
|
-
"unknown"
|
|
28619
|
-
]).describe(
|
|
28620
|
-
"Granular chain-level status \u2014 the WS view exposes the same\nstring. The CCXT view at `OrderResponse.status` collapses these\ninto open | closed | canceled. `unknown` is the fallback for a\nchain code the API doesn't recognize.\n"
|
|
28621
|
-
),
|
|
28622
|
-
chain_type: zod.enum(["limit", "market", "twap", "unknown"]).describe(
|
|
28623
|
-
"Granular chain-level order type. Mirrors the dbindexer\n`orders.order_type` column (0=limit, 1=market, 2=twap). TWAP\nslice executions are stored as individual order rows and surface\nhere as `twap`. `unknown` is the fallback for a chain code the\nAPI doesn't recognize.\n"
|
|
28624
|
-
),
|
|
28625
|
-
close_reason: zod.string().nullable().describe(
|
|
28626
|
-
"Free-form chain close reason for a terminal order \u2014 e.g.\n`completed`, `canceled`, `expired`, `ioc_canceled`,\n`self_trade`, `post_only_rejected`, `replaced`. Null while the\norder is still live. Lets consumers tell an IOC-cancelled or\nself-trade-prevented close apart from the generic `canceled` close.\n"
|
|
28627
|
-
)
|
|
28628
|
-
}).describe(
|
|
28629
|
-
"Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n"
|
|
28630
|
-
)
|
|
28631
|
-
}).describe(
|
|
28632
|
-
"All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n"
|
|
28633
|
-
);
|
|
28444
|
+
"id": zod.string(),
|
|
28445
|
+
"clientOrderId": zod.string().nullish().describe("The order's cloid (client order id) as a hex string, or null when the order was placed without one."),
|
|
28446
|
+
"timestamp": zod.number(),
|
|
28447
|
+
"datetime": zod.iso.datetime({}),
|
|
28448
|
+
"lastTradeTimestamp": zod.number().nullish().describe("Timestamp (ms) of the last trade executed against this order. Null if no trades."),
|
|
28449
|
+
"status": zod.enum(["open", "closed", "canceled", "unknown"]).describe("`unknown` is the fallback for a chain status code the API doesn't recognize."),
|
|
28450
|
+
"symbol": zod.string(),
|
|
28451
|
+
"type": zod.enum(["limit", "market", "twap", "unknown"]).describe("`unknown` is the fallback for a chain type code the API doesn't recognize. A `twap` row (chain order_type=2) is either the TWAP parent the user placed (`info.twap` set) or one of its slice executions (`info.twap_id` set)."),
|
|
28452
|
+
"timeInForce": zod.union([zod.literal("ioc"), zod.literal(null)]).nullable().describe("CCXT-collapsed time-in-force. `ioc` for an immediate-or-cancel\norder (chain TIF code 1); null for the default (GTT/GTC) or an\nunrecognized code. Always present (never omitted). The WS\n`orderUpdates` payload exposes the same `ioc`-or-absent value.\n"),
|
|
28453
|
+
"side": zod.enum(["buy", "sell"]),
|
|
28454
|
+
"price": zod.string().regex(listOrdersResponsePriceRegExp),
|
|
28455
|
+
"average": zod.string().nullish().describe("Average execution price as decimal string. Null when filled is 0."),
|
|
28456
|
+
"amount": zod.string().regex(listOrdersResponseAmountRegExp),
|
|
28457
|
+
"filled": zod.string().regex(listOrdersResponseFilledRegExp),
|
|
28458
|
+
"remaining": zod.string().regex(listOrdersResponseRemainingRegExp),
|
|
28459
|
+
"cost": zod.string().regex(listOrdersResponseCostRegExp).describe('Quote-asset notional accumulated across all fills for this order.\n\nWhen the order has at least one indexed fill, the value is summed\nfrom the trades table (`SUM(filled_quantity * price)`) \u2014 it\nreflects the realized average across every level the order\nwalked, not `filled * price`. Until the indexer has caught up\nwith a freshly-matched fill, the value falls back to\n`filled * price` so consumers never see a misleading "0" while\nthe trade row is still in flight.\n'),
|
|
28460
|
+
"trades": zod.array(zod.looseObject({})).optional(),
|
|
28461
|
+
"fee": zod.object({
|
|
28462
|
+
"cost": zod.string().regex(listOrdersResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
|
|
28463
|
+
"currency": zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
|
|
28464
|
+
"rate": zod.string().regex(listOrdersResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
|
|
28465
|
+
}).optional().describe("Fee for the order. `cost` is `cost * taker_fee_rate` \u2014 applied to\nthe realized cost above, so it is more accurate than the previous\n`filled * price * taker_fee_rate` approximation. The rate is the\nmarket's taker rate; this stays an estimate because the indexer\nrecords no realized per-trade fee amount to sum.\n"),
|
|
28466
|
+
"reduceOnly": zod.boolean().optional(),
|
|
28467
|
+
"postOnly": zod.boolean().optional(),
|
|
28468
|
+
"stopPrice": zod.string().nullish(),
|
|
28469
|
+
"triggerPrice": zod.string().nullish(),
|
|
28470
|
+
"info": zod.object({
|
|
28471
|
+
"block_height": zod.string().regex(listOrdersResponseInfoBlockHeightRegExp).describe("Height of the block that wrote the order. Decimal string for\nparity with the WS order `info.block_height`.\n"),
|
|
28472
|
+
"tx_index": zod.number().describe("Index of the order tx within its block."),
|
|
28473
|
+
"remaining_deposit": zod.string().regex(listOrdersResponseInfoRemainingDepositRegExp).describe("Remaining quote-asset escrow (raw decimal string at the chain's\natto-precision) that has not yet been spent on fills. On a TWAP\nparent: the unspent deposit (quote for a buy, base for a sell).\n"),
|
|
28474
|
+
"chain_status": zod.enum(["open", "partially_filled", "filled", "cancelled", "expired", "triggered_pending", "unknown"]).describe("Granular chain-level status \u2014 the WS view exposes the same\nstring. The CCXT view at `OrderResponse.status` collapses these\ninto open | closed | canceled. `unknown` is the fallback for a\nchain code the API doesn't recognize.\n"),
|
|
28475
|
+
"chain_type": zod.enum(["limit", "market", "twap", "unknown"]).describe("Granular chain-level order type. Mirrors the dbindexer\n`orders.order_type` column (0=limit, 1=market, 2=twap). Both a\nTWAP parent and its slice executions surface as `twap`; tell\nthem apart by `twap` (set on the parent) and `twap_id` (set on\na slice). `unknown` is the fallback for a chain code the API\ndoesn't recognize.\n"),
|
|
28476
|
+
"close_reason": zod.string().nullable().describe("Free-form chain close reason for a terminal order \u2014 e.g.\n`completed`, `canceled`, `expired`, `ioc_canceled`,\n`self_trade`, `post_only_rejected`, `replaced`. Null while the\norder is still live. Lets consumers tell an IOC-cancelled or\nself-trade-prevented close apart from the generic `canceled` close.\n"),
|
|
28477
|
+
"twap_id": zod.string().regex(listOrdersResponseInfoTwapIdRegExp).nullish().describe("Hex id of the TWAP parent a slice execution was attributed to;\nnull on parents, non-TWAP rows and unattributed slices.\n"),
|
|
28478
|
+
"twap": zod.union([zod.object({
|
|
28479
|
+
"total_deposit": zod.string().regex(listOrdersResponseInfoTwapOneTotalDepositRegExp).describe("Escrowed size in `deposit_asset` units (the `amount` of a sell, the quote budget of a buy)."),
|
|
28480
|
+
"deposit_asset": zod.enum(["base", "quote"]).describe("Base for a sell, quote for a buy."),
|
|
28481
|
+
"start_time": zod.number().nullable().describe("When the schedule started (ms)."),
|
|
28482
|
+
"deadline": zod.number().nullable().describe("When the schedule ends (ms)."),
|
|
28483
|
+
"num_slices": zod.number().describe("Slices the schedule was cut into."),
|
|
28484
|
+
"slice_index": zod.number().describe("Slices dispatched so far."),
|
|
28485
|
+
"price_tolerance": zod.string().regex(listOrdersResponseInfoTwapOnePriceToleranceRegExp).nullable().describe("Per-slice slippage bound as a ratio (`0.005` = 0.5%); null when `worst_price` is set or the chain default applied."),
|
|
28486
|
+
"worst_price": zod.string().regex(listOrdersResponseInfoTwapOneWorstPriceRegExp).nullable().describe("Absolute worst price per slice; null when a tolerance was used.")
|
|
28487
|
+
}).describe("Schedule of a TWAP parent. Amounts are human units; times are ms epoch."), zod.null()]).optional().describe("The schedule of a TWAP parent; null on every other row.")
|
|
28488
|
+
}).describe("Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n")
|
|
28489
|
+
}).describe("All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n");
|
|
28634
28490
|
var ListOrdersResponse = zod.array(ListOrdersResponseItem);
|
|
28635
28491
|
var GetOrderParams = zod.object({
|
|
28636
|
-
id: zod.string().describe("Hex-encoded order ID")
|
|
28492
|
+
"id": zod.string().describe("Hex-encoded order ID")
|
|
28637
28493
|
});
|
|
28638
28494
|
var getOrderResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28639
28495
|
var getOrderResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
@@ -28644,90 +28500,69 @@ var getOrderResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
|
28644
28500
|
var getOrderResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28645
28501
|
var getOrderResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
28646
28502
|
var getOrderResponseInfoRemainingDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28503
|
+
var getOrderResponseInfoTwapIdRegExp = new RegExp("^[0-9a-f]+$");
|
|
28504
|
+
var getOrderResponseInfoTwapOneTotalDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28505
|
+
var getOrderResponseInfoTwapOnePriceToleranceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28506
|
+
var getOrderResponseInfoTwapOneWorstPriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28647
28507
|
var GetOrderResponse = zod.object({
|
|
28648
|
-
id: zod.string(),
|
|
28649
|
-
clientOrderId: zod.string().nullish().describe(
|
|
28650
|
-
|
|
28651
|
-
),
|
|
28652
|
-
|
|
28653
|
-
|
|
28654
|
-
|
|
28655
|
-
|
|
28656
|
-
|
|
28657
|
-
|
|
28658
|
-
|
|
28659
|
-
),
|
|
28660
|
-
|
|
28661
|
-
|
|
28662
|
-
),
|
|
28663
|
-
|
|
28664
|
-
|
|
28665
|
-
|
|
28666
|
-
|
|
28667
|
-
|
|
28668
|
-
|
|
28669
|
-
|
|
28670
|
-
|
|
28671
|
-
),
|
|
28672
|
-
|
|
28673
|
-
|
|
28674
|
-
|
|
28675
|
-
|
|
28676
|
-
|
|
28677
|
-
|
|
28678
|
-
"
|
|
28679
|
-
|
|
28680
|
-
|
|
28681
|
-
|
|
28682
|
-
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
|
|
28686
|
-
"
|
|
28687
|
-
|
|
28688
|
-
|
|
28689
|
-
|
|
28690
|
-
"
|
|
28691
|
-
),
|
|
28692
|
-
|
|
28693
|
-
|
|
28694
|
-
"partially_filled",
|
|
28695
|
-
"filled",
|
|
28696
|
-
"cancelled",
|
|
28697
|
-
"expired",
|
|
28698
|
-
"triggered_pending",
|
|
28699
|
-
"unknown"
|
|
28700
|
-
]).describe(
|
|
28701
|
-
"Granular chain-level status \u2014 the WS view exposes the same\nstring. The CCXT view at `OrderResponse.status` collapses these\ninto open | closed | canceled. `unknown` is the fallback for a\nchain code the API doesn't recognize.\n"
|
|
28702
|
-
),
|
|
28703
|
-
chain_type: zod.enum(["limit", "market", "twap", "unknown"]).describe(
|
|
28704
|
-
"Granular chain-level order type. Mirrors the dbindexer\n`orders.order_type` column (0=limit, 1=market, 2=twap). TWAP\nslice executions are stored as individual order rows and surface\nhere as `twap`. `unknown` is the fallback for a chain code the\nAPI doesn't recognize.\n"
|
|
28705
|
-
),
|
|
28706
|
-
close_reason: zod.string().nullable().describe(
|
|
28707
|
-
"Free-form chain close reason for a terminal order \u2014 e.g.\n`completed`, `canceled`, `expired`, `ioc_canceled`,\n`self_trade`, `post_only_rejected`, `replaced`. Null while the\norder is still live. Lets consumers tell an IOC-cancelled or\nself-trade-prevented close apart from the generic `canceled` close.\n"
|
|
28708
|
-
)
|
|
28709
|
-
}).describe(
|
|
28710
|
-
"Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n"
|
|
28711
|
-
)
|
|
28712
|
-
}).describe(
|
|
28713
|
-
"All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n"
|
|
28714
|
-
);
|
|
28508
|
+
"id": zod.string(),
|
|
28509
|
+
"clientOrderId": zod.string().nullish().describe("The order's cloid (client order id) as a hex string, or null when the order was placed without one."),
|
|
28510
|
+
"timestamp": zod.number(),
|
|
28511
|
+
"datetime": zod.iso.datetime({}),
|
|
28512
|
+
"lastTradeTimestamp": zod.number().nullish().describe("Timestamp (ms) of the last trade executed against this order. Null if no trades."),
|
|
28513
|
+
"status": zod.enum(["open", "closed", "canceled", "unknown"]).describe("`unknown` is the fallback for a chain status code the API doesn't recognize."),
|
|
28514
|
+
"symbol": zod.string(),
|
|
28515
|
+
"type": zod.enum(["limit", "market", "twap", "unknown"]).describe("`unknown` is the fallback for a chain type code the API doesn't recognize. A `twap` row (chain order_type=2) is either the TWAP parent the user placed (`info.twap` set) or one of its slice executions (`info.twap_id` set)."),
|
|
28516
|
+
"timeInForce": zod.union([zod.literal("ioc"), zod.literal(null)]).nullable().describe("CCXT-collapsed time-in-force. `ioc` for an immediate-or-cancel\norder (chain TIF code 1); null for the default (GTT/GTC) or an\nunrecognized code. Always present (never omitted). The WS\n`orderUpdates` payload exposes the same `ioc`-or-absent value.\n"),
|
|
28517
|
+
"side": zod.enum(["buy", "sell"]),
|
|
28518
|
+
"price": zod.string().regex(getOrderResponsePriceRegExp),
|
|
28519
|
+
"average": zod.string().nullish().describe("Average execution price as decimal string. Null when filled is 0."),
|
|
28520
|
+
"amount": zod.string().regex(getOrderResponseAmountRegExp),
|
|
28521
|
+
"filled": zod.string().regex(getOrderResponseFilledRegExp),
|
|
28522
|
+
"remaining": zod.string().regex(getOrderResponseRemainingRegExp),
|
|
28523
|
+
"cost": zod.string().regex(getOrderResponseCostRegExp).describe('Quote-asset notional accumulated across all fills for this order.\n\nWhen the order has at least one indexed fill, the value is summed\nfrom the trades table (`SUM(filled_quantity * price)`) \u2014 it\nreflects the realized average across every level the order\nwalked, not `filled * price`. Until the indexer has caught up\nwith a freshly-matched fill, the value falls back to\n`filled * price` so consumers never see a misleading "0" while\nthe trade row is still in flight.\n'),
|
|
28524
|
+
"trades": zod.array(zod.looseObject({})).optional(),
|
|
28525
|
+
"fee": zod.object({
|
|
28526
|
+
"cost": zod.string().regex(getOrderResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
|
|
28527
|
+
"currency": zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
|
|
28528
|
+
"rate": zod.string().regex(getOrderResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
|
|
28529
|
+
}).optional().describe("Fee for the order. `cost` is `cost * taker_fee_rate` \u2014 applied to\nthe realized cost above, so it is more accurate than the previous\n`filled * price * taker_fee_rate` approximation. The rate is the\nmarket's taker rate; this stays an estimate because the indexer\nrecords no realized per-trade fee amount to sum.\n"),
|
|
28530
|
+
"reduceOnly": zod.boolean().optional(),
|
|
28531
|
+
"postOnly": zod.boolean().optional(),
|
|
28532
|
+
"stopPrice": zod.string().nullish(),
|
|
28533
|
+
"triggerPrice": zod.string().nullish(),
|
|
28534
|
+
"info": zod.object({
|
|
28535
|
+
"block_height": zod.string().regex(getOrderResponseInfoBlockHeightRegExp).describe("Height of the block that wrote the order. Decimal string for\nparity with the WS order `info.block_height`.\n"),
|
|
28536
|
+
"tx_index": zod.number().describe("Index of the order tx within its block."),
|
|
28537
|
+
"remaining_deposit": zod.string().regex(getOrderResponseInfoRemainingDepositRegExp).describe("Remaining quote-asset escrow (raw decimal string at the chain's\natto-precision) that has not yet been spent on fills. On a TWAP\nparent: the unspent deposit (quote for a buy, base for a sell).\n"),
|
|
28538
|
+
"chain_status": zod.enum(["open", "partially_filled", "filled", "cancelled", "expired", "triggered_pending", "unknown"]).describe("Granular chain-level status \u2014 the WS view exposes the same\nstring. The CCXT view at `OrderResponse.status` collapses these\ninto open | closed | canceled. `unknown` is the fallback for a\nchain code the API doesn't recognize.\n"),
|
|
28539
|
+
"chain_type": zod.enum(["limit", "market", "twap", "unknown"]).describe("Granular chain-level order type. Mirrors the dbindexer\n`orders.order_type` column (0=limit, 1=market, 2=twap). Both a\nTWAP parent and its slice executions surface as `twap`; tell\nthem apart by `twap` (set on the parent) and `twap_id` (set on\na slice). `unknown` is the fallback for a chain code the API\ndoesn't recognize.\n"),
|
|
28540
|
+
"close_reason": zod.string().nullable().describe("Free-form chain close reason for a terminal order \u2014 e.g.\n`completed`, `canceled`, `expired`, `ioc_canceled`,\n`self_trade`, `post_only_rejected`, `replaced`. Null while the\norder is still live. Lets consumers tell an IOC-cancelled or\nself-trade-prevented close apart from the generic `canceled` close.\n"),
|
|
28541
|
+
"twap_id": zod.string().regex(getOrderResponseInfoTwapIdRegExp).nullish().describe("Hex id of the TWAP parent a slice execution was attributed to;\nnull on parents, non-TWAP rows and unattributed slices.\n"),
|
|
28542
|
+
"twap": zod.union([zod.object({
|
|
28543
|
+
"total_deposit": zod.string().regex(getOrderResponseInfoTwapOneTotalDepositRegExp).describe("Escrowed size in `deposit_asset` units (the `amount` of a sell, the quote budget of a buy)."),
|
|
28544
|
+
"deposit_asset": zod.enum(["base", "quote"]).describe("Base for a sell, quote for a buy."),
|
|
28545
|
+
"start_time": zod.number().nullable().describe("When the schedule started (ms)."),
|
|
28546
|
+
"deadline": zod.number().nullable().describe("When the schedule ends (ms)."),
|
|
28547
|
+
"num_slices": zod.number().describe("Slices the schedule was cut into."),
|
|
28548
|
+
"slice_index": zod.number().describe("Slices dispatched so far."),
|
|
28549
|
+
"price_tolerance": zod.string().regex(getOrderResponseInfoTwapOnePriceToleranceRegExp).nullable().describe("Per-slice slippage bound as a ratio (`0.005` = 0.5%); null when `worst_price` is set or the chain default applied."),
|
|
28550
|
+
"worst_price": zod.string().regex(getOrderResponseInfoTwapOneWorstPriceRegExp).nullable().describe("Absolute worst price per slice; null when a tolerance was used.")
|
|
28551
|
+
}).describe("Schedule of a TWAP parent. Amounts are human units; times are ms epoch."), zod.null()]).optional().describe("The schedule of a TWAP parent; null on every other row.")
|
|
28552
|
+
}).describe("Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n")
|
|
28553
|
+
}).describe("All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n");
|
|
28715
28554
|
var listMyTradesQueryLimitDefault = 100;
|
|
28716
28555
|
var listMyTradesQueryLimitMax = 500;
|
|
28717
28556
|
var listMyTradesQueryBeforeIndexMin = 0;
|
|
28718
28557
|
var listMyTradesQueryBeforeIndexMax = 4294967295;
|
|
28719
28558
|
var ListMyTradesQueryParams = zod.object({
|
|
28720
|
-
address: zod.string().describe("Blockchain address of the trader"),
|
|
28721
|
-
symbol: zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT)"),
|
|
28722
|
-
since: zod.number().optional().describe("Unix timestamp in milliseconds"),
|
|
28723
|
-
limit: zod.number().min(1).max(listMyTradesQueryLimitMax).default(listMyTradesQueryLimitDefault),
|
|
28724
|
-
cursor: zod.string().optional().describe(
|
|
28725
|
-
|
|
28726
|
-
),
|
|
28727
|
-
before_height: zod.number().min(1).optional().describe(
|
|
28728
|
-
"Deprecated in favour of `cursor`; still honoured, and ignored when\n`cursor` is also present.\n\nComposite pagination cursor, upper half. Returns only trades\nstrictly older (in feed order) than the row identified by\n(`before_height`, `before_index`) \u2014 take both values from the\nlast row's `info.block_height` / `info.event_index`. Must be\npassed together with `before_index`. Unlike `since`, the cursor\ncannot skip or repeat trades when many share one timestamp.\n"
|
|
28729
|
-
),
|
|
28730
|
-
before_index: zod.number().min(listMyTradesQueryBeforeIndexMin).max(listMyTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
|
|
28559
|
+
"address": zod.string().describe("Blockchain address of the trader"),
|
|
28560
|
+
"symbol": zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT)"),
|
|
28561
|
+
"since": zod.number().optional().describe("Unix timestamp in milliseconds"),
|
|
28562
|
+
"limit": zod.number().min(1).max(listMyTradesQueryLimitMax).default(listMyTradesQueryLimitDefault),
|
|
28563
|
+
"cursor": zod.string().optional().describe('Opaque pagination cursor. Take it verbatim from the previous page\'s\n`X-Next-Cursor` header (or follow the `Link: rel="next"` URL) and\nrepeat every other query parameter; the cursor is bound to that\nfilter set and a different one is rejected with 400. `limit` may\nchange between pages. No `X-Next-Cursor` on a response means the\nfeed is exhausted. Clients must not build or parse cursors.\n'),
|
|
28564
|
+
"before_height": zod.number().min(1).optional().describe("Deprecated in favour of `cursor`; still honoured, and ignored when\n`cursor` is also present.\n\nComposite pagination cursor, upper half. Returns only trades\nstrictly older (in feed order) than the row identified by\n(`before_height`, `before_index`) \u2014 take both values from the\nlast row's `info.block_height` / `info.event_index`. Must be\npassed together with `before_index`. Unlike `since`, the cursor\ncannot skip or repeat trades when many share one timestamp.\n"),
|
|
28565
|
+
"before_index": zod.number().min(listMyTradesQueryBeforeIndexMin).max(listMyTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
|
|
28731
28566
|
});
|
|
28732
28567
|
var listMyTradesResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28733
28568
|
var listMyTradesResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
@@ -28739,93 +28574,57 @@ var listMyTradesResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
|
|
|
28739
28574
|
var listMyTradesResponseInfoEventIndexMin = 0;
|
|
28740
28575
|
var listMyTradesResponseInfoEventIndexMax = 4294967295;
|
|
28741
28576
|
var ListMyTradesResponseItem = zod.object({
|
|
28742
|
-
id: zod.string(),
|
|
28743
|
-
order: zod.string().nullish(),
|
|
28744
|
-
timestamp: zod.number(),
|
|
28745
|
-
datetime: zod.iso.datetime({}),
|
|
28746
|
-
symbol: zod.string(),
|
|
28747
|
-
type: zod.union([
|
|
28748
|
-
|
|
28749
|
-
|
|
28750
|
-
|
|
28751
|
-
|
|
28752
|
-
|
|
28753
|
-
|
|
28754
|
-
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
"
|
|
28758
|
-
),
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
"
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
cost: zod.string().regex(listMyTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
|
|
28768
|
-
currency: zod.string().optional().describe(
|
|
28769
|
-
'Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'
|
|
28770
|
-
),
|
|
28771
|
-
rate: zod.string().regex(listMyTradesResponseFeeRateRegExp).optional().describe(
|
|
28772
|
-
"This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise."
|
|
28773
|
-
)
|
|
28774
|
-
}).optional().describe(
|
|
28775
|
-
"Fee charged on the fill. When the indexer recorded a realized fee, cost and currency report it verbatim; the currency follows the denom the filled leg received, which is the base asset on a taker buy, not always the quote. For rows that predate fee indexing, cost falls back to the estimate amount * price * rate in the quote currency, where rate is this leg's rate (maker_fee_rate for the maker leg, otherwise taker_fee_rate)."
|
|
28776
|
-
),
|
|
28777
|
-
info: zod.object({
|
|
28778
|
-
address: zod.string().regex(listMyTradesResponseInfoAddressOneRegExp).describe(
|
|
28779
|
-
"Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n"
|
|
28780
|
-
).describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
28781
|
-
paid: zod.string().describe(
|
|
28782
|
-
'Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'
|
|
28783
|
-
),
|
|
28784
|
-
received: zod.string().describe(
|
|
28785
|
-
"Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"
|
|
28786
|
-
),
|
|
28787
|
-
block_height: zod.string().regex(listMyTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
|
|
28788
|
-
event_index: zod.number().min(listMyTradesResponseInfoEventIndexMin).max(listMyTradesResponseInfoEventIndexMax).describe(
|
|
28789
|
-
"The trade's event position within its block. With `block_height`\nit forms the row's composite pagination cursor: pass the last\nrow's pair as `before_height`/`before_index` to fetch the next\n(older) page.\n"
|
|
28790
|
-
)
|
|
28791
|
-
}).describe(
|
|
28792
|
-
"Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
|
|
28793
|
-
)
|
|
28794
|
-
}).describe(
|
|
28795
|
-
"All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n"
|
|
28796
|
-
);
|
|
28577
|
+
"id": zod.string(),
|
|
28578
|
+
"order": zod.string().nullish(),
|
|
28579
|
+
"timestamp": zod.number(),
|
|
28580
|
+
"datetime": zod.iso.datetime({}),
|
|
28581
|
+
"symbol": zod.string(),
|
|
28582
|
+
"type": zod.union([zod.literal("limit"), zod.literal("market"), zod.literal("twap"), zod.literal("unknown"), zod.literal(null)]).nullish().describe("Order type resolved via JOIN to orders table. `twap` marks a TWAP slice execution (chain code 2). Null if order not found. `unknown` is the fallback for a chain code the API doesn't recognize."),
|
|
28583
|
+
"cloid": zod.string().nullish().describe("Client order id (hex, 8 bytes) resolved via JOIN to orders table. Null when the order carried none, the row predates cloid indexing, or on the public trades feed (cloids are private to the orderer)."),
|
|
28584
|
+
"side": zod.enum(["buy", "sell"]),
|
|
28585
|
+
"takerOrMaker": zod.enum(["taker", "maker"]).optional().describe("Which leg of the match this fill is. Each match writes a maker leg and a taker leg; the public market feed returns only the maker leg so a market's trades aren't double-counted, while the per-orderer feed returns whichever leg belongs to that orderer."),
|
|
28586
|
+
"price": zod.string().regex(listMyTradesResponsePriceRegExp),
|
|
28587
|
+
"amount": zod.string().regex(listMyTradesResponseAmountRegExp),
|
|
28588
|
+
"cost": zod.string().regex(listMyTradesResponseCostRegExp).describe("price * amount"),
|
|
28589
|
+
"fee": zod.object({
|
|
28590
|
+
"cost": zod.string().regex(listMyTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
|
|
28591
|
+
"currency": zod.string().optional().describe('Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'),
|
|
28592
|
+
"rate": zod.string().regex(listMyTradesResponseFeeRateRegExp).optional().describe("This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise.")
|
|
28593
|
+
}).optional().describe("Fee charged on the fill. When the indexer recorded a realized fee, cost and currency report it verbatim; the currency follows the denom the filled leg received, which is the base asset on a taker buy, not always the quote. For rows that predate fee indexing, cost falls back to the estimate amount * price * rate in the quote currency, where rate is this leg's rate (maker_fee_rate for the maker leg, otherwise taker_fee_rate)."),
|
|
28594
|
+
"info": zod.object({
|
|
28595
|
+
"address": zod.string().regex(listMyTradesResponseInfoAddressOneRegExp).describe("Cosmos bech32 account address. The HRP is fixed to `ault` for\naccounts (validators use `aultvaloper`, which this schema rejects).\nLowercased and checksum-verified by the API; mixed-case bech32 is\nrejected to avoid silent EIP-55-style ambiguity.\n").describe("Bech32 address of the orderer that owns this leg of the fill."),
|
|
28596
|
+
"paid": zod.string().describe('Atto-precision amount the orderer paid for this fill, suffixed\nwith the chain denom (e.g. `"1500000000000000000uusdt"`). Empty\nstring when the chain did not record this side.\n'),
|
|
28597
|
+
"received": zod.string().describe("Atto-precision amount the orderer received for this fill,\nsuffixed with the chain denom. Empty string when the chain did\nnot record this side.\n"),
|
|
28598
|
+
"block_height": zod.string().regex(listMyTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
|
|
28599
|
+
"event_index": zod.number().min(listMyTradesResponseInfoEventIndexMin).max(listMyTradesResponseInfoEventIndexMax).describe("The trade's event position within its block. With `block_height`\nit forms the row's composite pagination cursor: pass the last\nrow's pair as `before_height`/`before_index` to fetch the next\n(older) page.\n")
|
|
28600
|
+
}).describe("Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n")
|
|
28601
|
+
}).describe("All numeric fields are canonical decimal strings \u2014 quantities at any\nmagnitude survive the JSON round-trip without rounding through\nfloat64. Consumers parse with their own bigdecimal.\n");
|
|
28797
28602
|
var ListMyTradesResponse = zod.array(ListMyTradesResponseItem);
|
|
28798
28603
|
var GetBalanceQueryParams = zod.object({
|
|
28799
|
-
address: zod.string()
|
|
28604
|
+
"address": zod.string()
|
|
28800
28605
|
});
|
|
28801
28606
|
var getBalanceResponseFreeRegExpOne = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28802
28607
|
var getBalanceResponseUsedRegExpOne = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28803
28608
|
var getBalanceResponseTotalRegExpOne = new RegExp("^-?\\d+(\\.\\d+)?$");
|
|
28804
28609
|
var GetBalanceResponse = zod.object({
|
|
28805
|
-
free: zod.record(zod.string(), zod.string().regex(getBalanceResponseFreeRegExpOne)),
|
|
28806
|
-
used: zod.record(zod.string(), zod.string().regex(getBalanceResponseUsedRegExpOne)),
|
|
28807
|
-
total: zod.record(zod.string(), zod.string().regex(getBalanceResponseTotalRegExpOne)),
|
|
28808
|
-
timestamp: zod.number().nullish(),
|
|
28809
|
-
datetime: zod.string().nullish(),
|
|
28810
|
-
info: zod.looseObject({})
|
|
28811
|
-
}).describe(
|
|
28812
|
-
"Balance object. Contains `free`, `used`, `total` dictionaries\n(currency code -> decimal string), plus per-currency entries with\n{free, used, total} as decimal strings, and `info`, `timestamp`,\n`datetime`. Strings preserve precision past 2^53 raw units.\n"
|
|
28813
|
-
);
|
|
28610
|
+
"free": zod.record(zod.string(), zod.string().regex(getBalanceResponseFreeRegExpOne)),
|
|
28611
|
+
"used": zod.record(zod.string(), zod.string().regex(getBalanceResponseUsedRegExpOne)),
|
|
28612
|
+
"total": zod.record(zod.string(), zod.string().regex(getBalanceResponseTotalRegExpOne)),
|
|
28613
|
+
"timestamp": zod.number().nullish(),
|
|
28614
|
+
"datetime": zod.string().nullish(),
|
|
28615
|
+
"info": zod.looseObject({})
|
|
28616
|
+
}).describe("Balance object. Contains `free`, `used`, `total` dictionaries\n(currency code -> decimal string), plus per-currency entries with\n{free, used, total} as decimal strings, and `info`, `timestamp`,\n`datetime`. Strings preserve precision past 2^53 raw units.\n");
|
|
28814
28617
|
var GetOHLCVParams = zod.object({
|
|
28815
|
-
symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28618
|
+
"symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
|
|
28816
28619
|
});
|
|
28817
28620
|
var getOHLCVQueryTimeframeDefault = `1m`;
|
|
28818
28621
|
var getOHLCVQueryLimitDefault = 500;
|
|
28819
28622
|
var getOHLCVQueryLimitMax = 1e3;
|
|
28820
28623
|
var GetOHLCVQueryParams = zod.object({
|
|
28821
|
-
timeframe: zod.string().default(getOHLCVQueryTimeframeDefault).describe("Timeframe: 1m, 5m, 15m, 30m, 1h, 4h, 1d. Also accepts TV format: 1, 5, 15, 60, 1D"),
|
|
28822
|
-
limit: zod.number().min(1).max(getOHLCVQueryLimitMax).default(getOHLCVQueryLimitDefault).describe(
|
|
28823
|
-
|
|
28824
|
-
)
|
|
28825
|
-
since: zod.number().optional().describe("Unix timestamp in milliseconds"),
|
|
28826
|
-
cursor: zod.string().optional().describe(
|
|
28827
|
-
'Opaque pagination cursor. Take it verbatim from the previous page\'s\n`X-Next-Cursor` header (or follow the `Link: rel="next"` URL) and\nrepeat every other query parameter; the cursor is bound to that\nfilter set and a different one is rejected with 400. `limit` may\nchange between pages. No `X-Next-Cursor` on a response means the\nfeed is exhausted. Clients must not build or parse cursors.\n'
|
|
28828
|
-
)
|
|
28624
|
+
"timeframe": zod.string().default(getOHLCVQueryTimeframeDefault).describe("Timeframe: 1m, 5m, 15m, 30m, 1h, 4h, 1d. Also accepts TV format: 1, 5, 15, 60, 1D"),
|
|
28625
|
+
"limit": zod.number().min(1).max(getOHLCVQueryLimitMax).default(getOHLCVQueryLimitDefault).describe("Bars per page, oldest first within the page. Without `since` the\npage holds the newest `limit` bars and the cursor walks back in\ntime; with `since` it holds the first `limit` bars from `since`\nand the cursor walks forward.\n"),
|
|
28626
|
+
"since": zod.number().optional().describe("Unix timestamp in milliseconds"),
|
|
28627
|
+
"cursor": zod.string().optional().describe('Opaque pagination cursor. Take it verbatim from the previous page\'s\n`X-Next-Cursor` header (or follow the `Link: rel="next"` URL) and\nrepeat every other query parameter; the cursor is bound to that\nfilter set and a different one is rejected with 400. `limit` may\nchange between pages. No `X-Next-Cursor` on a response means the\nfeed is exhausted. Clients must not build or parse cursors.\n')
|
|
28829
28628
|
});
|
|
28830
28629
|
var GetOHLCVResponseItem = zod.tuple([
|
|
28831
28630
|
zod.number().describe("timestamp in milliseconds"),
|
|
@@ -28835,142 +28634,134 @@ var GetOHLCVResponseItem = zod.tuple([
|
|
|
28835
28634
|
zod.string().describe("close price, decimal string"),
|
|
28836
28635
|
zod.string().describe("base-asset volume, decimal string"),
|
|
28837
28636
|
zod.string().describe("quote-asset volume, decimal string (approximation of `baseVolume * close`)")
|
|
28838
|
-
]).describe(
|
|
28839
|
-
"`[timestamp_ms, open, high, low, close, baseVolume, quoteVolume]`.\nTimestamp is a numeric ms epoch; the o/h/l/c/baseVolume/quoteVolume\nfields are canonical decimal strings so quantities at any magnitude\nsurvive the JSON round-trip. The trailing `quoteVolume` slot is\nderived as `baseVolume * close_price` until the chain indexer\nemits a realized `volume_quote` column. Both SDK clients\n(`ault-sdk-ts`, `ault-sdk-py`) consume the 7-tuple as the\ncanonical shape.\n(Patterns omitted on tuple items because orval generates broken\nregex references when `prefixItems` carry `pattern`; the format is\ndocumented in the descriptions.)\n"
|
|
28840
|
-
);
|
|
28637
|
+
]).describe("`[timestamp_ms, open, high, low, close, baseVolume, quoteVolume]`.\nTimestamp is a numeric ms epoch; the o/h/l/c/baseVolume/quoteVolume\nfields are canonical decimal strings so quantities at any magnitude\nsurvive the JSON round-trip. The trailing `quoteVolume` slot is\nderived as `baseVolume * close_price` until the chain indexer\nemits a realized `volume_quote` column. Both SDK clients\n(`ault-sdk-ts`, `ault-sdk-py`) consume the 7-tuple as the\ncanonical shape.\n(Patterns omitted on tuple items because orval generates broken\nregex references when `prefixItems` carry `pattern`; the format is\ndocumented in the descriptions.)\n");
|
|
28841
28638
|
var GetOHLCVResponse = zod.array(GetOHLCVResponseItem);
|
|
28842
28639
|
var GetUDFConfigResponse = zod.object({
|
|
28843
|
-
supports_search: zod.boolean(),
|
|
28844
|
-
supports_group_request: zod.boolean(),
|
|
28845
|
-
supports_marks: zod.boolean(),
|
|
28846
|
-
supports_timescale_marks: zod.boolean(),
|
|
28847
|
-
supports_time: zod.boolean(),
|
|
28848
|
-
supported_resolutions: zod.array(zod.string()),
|
|
28849
|
-
exchanges: zod.array(
|
|
28850
|
-
zod.
|
|
28851
|
-
|
|
28852
|
-
|
|
28853
|
-
|
|
28854
|
-
|
|
28855
|
-
|
|
28856
|
-
|
|
28857
|
-
|
|
28858
|
-
name: zod.string(),
|
|
28859
|
-
value: zod.string()
|
|
28860
|
-
})
|
|
28861
|
-
)
|
|
28640
|
+
"supports_search": zod.boolean(),
|
|
28641
|
+
"supports_group_request": zod.boolean(),
|
|
28642
|
+
"supports_marks": zod.boolean(),
|
|
28643
|
+
"supports_timescale_marks": zod.boolean(),
|
|
28644
|
+
"supports_time": zod.boolean(),
|
|
28645
|
+
"supported_resolutions": zod.array(zod.string()),
|
|
28646
|
+
"exchanges": zod.array(zod.object({
|
|
28647
|
+
"value": zod.string(),
|
|
28648
|
+
"name": zod.string(),
|
|
28649
|
+
"desc": zod.string()
|
|
28650
|
+
})),
|
|
28651
|
+
"symbols_types": zod.array(zod.object({
|
|
28652
|
+
"name": zod.string(),
|
|
28653
|
+
"value": zod.string()
|
|
28654
|
+
}))
|
|
28862
28655
|
});
|
|
28863
28656
|
var GetUDFSymbolQueryParams = zod.object({
|
|
28864
|
-
symbol: zod.string()
|
|
28657
|
+
"symbol": zod.string()
|
|
28865
28658
|
});
|
|
28866
28659
|
var GetUDFSymbolResponse = zod.object({
|
|
28867
|
-
name: zod.string(),
|
|
28868
|
-
ticker: zod.string(),
|
|
28869
|
-
description: zod.string(),
|
|
28870
|
-
type: zod.string(),
|
|
28871
|
-
session: zod.string(),
|
|
28872
|
-
exchange: zod.string(),
|
|
28873
|
-
listed_exchange: zod.string(),
|
|
28874
|
-
timezone: zod.string(),
|
|
28875
|
-
minmov: zod.number(),
|
|
28876
|
-
pricescale: zod.number(),
|
|
28877
|
-
has_intraday: zod.boolean(),
|
|
28878
|
-
has_daily: zod.boolean(),
|
|
28879
|
-
has_no_volume: zod.boolean().describe("Whether the symbol has volume data"),
|
|
28880
|
-
volume_precision: zod.number().describe("Number of decimal places for volume"),
|
|
28881
|
-
data_status: zod.enum(["streaming", "endofday", "pulsed", "delayed_streaming"]).describe("Data feed status"),
|
|
28882
|
-
currency_code: zod.string().describe("Quote currency code"),
|
|
28883
|
-
supported_resolutions: zod.array(zod.string())
|
|
28660
|
+
"name": zod.string(),
|
|
28661
|
+
"ticker": zod.string(),
|
|
28662
|
+
"description": zod.string(),
|
|
28663
|
+
"type": zod.string(),
|
|
28664
|
+
"session": zod.string(),
|
|
28665
|
+
"exchange": zod.string(),
|
|
28666
|
+
"listed_exchange": zod.string(),
|
|
28667
|
+
"timezone": zod.string(),
|
|
28668
|
+
"minmov": zod.number(),
|
|
28669
|
+
"pricescale": zod.number(),
|
|
28670
|
+
"has_intraday": zod.boolean(),
|
|
28671
|
+
"has_daily": zod.boolean(),
|
|
28672
|
+
"has_no_volume": zod.boolean().describe("Whether the symbol has volume data"),
|
|
28673
|
+
"volume_precision": zod.number().describe("Number of decimal places for volume"),
|
|
28674
|
+
"data_status": zod.enum(["streaming", "endofday", "pulsed", "delayed_streaming"]).describe("Data feed status"),
|
|
28675
|
+
"currency_code": zod.string().describe("Quote currency code"),
|
|
28676
|
+
"supported_resolutions": zod.array(zod.string())
|
|
28884
28677
|
});
|
|
28885
28678
|
var SearchUDFSymbolsQueryParams = zod.object({
|
|
28886
|
-
query: zod.string().optional().describe("Text typed by the user in the search box"),
|
|
28887
|
-
type: zod.string().optional().describe("Symbol type filter"),
|
|
28888
|
-
exchange: zod.string().optional().describe("Exchange filter"),
|
|
28889
|
-
limit: zod.number().min(1).optional().describe("Maximum number of results (default 30)")
|
|
28679
|
+
"query": zod.string().optional().describe("Text typed by the user in the search box"),
|
|
28680
|
+
"type": zod.string().optional().describe("Symbol type filter"),
|
|
28681
|
+
"exchange": zod.string().optional().describe("Exchange filter"),
|
|
28682
|
+
"limit": zod.number().min(1).optional().describe("Maximum number of results (default 30)")
|
|
28890
28683
|
});
|
|
28891
28684
|
var SearchUDFSymbolsResponseItem = zod.object({
|
|
28892
|
-
symbol: zod.string(),
|
|
28893
|
-
full_name: zod.string(),
|
|
28894
|
-
description: zod.string(),
|
|
28895
|
-
exchange: zod.string(),
|
|
28896
|
-
ticker: zod.string(),
|
|
28897
|
-
type: zod.string()
|
|
28685
|
+
"symbol": zod.string(),
|
|
28686
|
+
"full_name": zod.string(),
|
|
28687
|
+
"description": zod.string(),
|
|
28688
|
+
"exchange": zod.string(),
|
|
28689
|
+
"ticker": zod.string(),
|
|
28690
|
+
"type": zod.string()
|
|
28898
28691
|
});
|
|
28899
28692
|
var SearchUDFSymbolsResponse = zod.array(SearchUDFSymbolsResponseItem);
|
|
28900
28693
|
var getUDFHistoryQueryCountbackMax = 1e3;
|
|
28901
28694
|
var GetUDFHistoryQueryParams = zod.object({
|
|
28902
|
-
symbol: zod.string(),
|
|
28903
|
-
resolution: zod.enum(["1", "5", "15", "30", "60", "1D", "1W", "1M"]),
|
|
28904
|
-
from: zod.number().describe("Unix seconds"),
|
|
28905
|
-
to: zod.number().describe("Unix seconds"),
|
|
28906
|
-
countback: zod.number().min(1).max(getUDFHistoryQueryCountbackMax).optional().describe("Values above 1000 are clamped to 1000 server-side.")
|
|
28695
|
+
"symbol": zod.string(),
|
|
28696
|
+
"resolution": zod.enum(["1", "5", "15", "30", "60", "1D", "1W", "1M"]),
|
|
28697
|
+
"from": zod.number().describe("Unix seconds"),
|
|
28698
|
+
"to": zod.number().describe("Unix seconds"),
|
|
28699
|
+
"countback": zod.number().min(1).max(getUDFHistoryQueryCountbackMax).optional().describe("Values above 1000 are clamped to 1000 server-side.")
|
|
28907
28700
|
});
|
|
28908
28701
|
var GetUDFHistoryResponse = zod.object({
|
|
28909
|
-
s: zod.enum(["ok", "no_data", "error"]),
|
|
28910
|
-
errmsg: zod.string().optional().describe('Error message (present only when s = "error")'),
|
|
28911
|
-
t: zod.array(zod.number()).optional(),
|
|
28912
|
-
o: zod.array(zod.number()).optional(),
|
|
28913
|
-
h: zod.array(zod.number()).optional(),
|
|
28914
|
-
l: zod.array(zod.number()).optional(),
|
|
28915
|
-
c: zod.array(zod.number()).optional(),
|
|
28916
|
-
v: zod.array(zod.number()).optional(),
|
|
28917
|
-
nextTime: zod.number().optional().describe('Unix seconds of next available bar (when s = "no_data")')
|
|
28702
|
+
"s": zod.enum(["ok", "no_data", "error"]),
|
|
28703
|
+
"errmsg": zod.string().optional().describe('Error message (present only when s = "error")'),
|
|
28704
|
+
"t": zod.array(zod.number()).optional(),
|
|
28705
|
+
"o": zod.array(zod.number()).optional(),
|
|
28706
|
+
"h": zod.array(zod.number()).optional(),
|
|
28707
|
+
"l": zod.array(zod.number()).optional(),
|
|
28708
|
+
"c": zod.array(zod.number()).optional(),
|
|
28709
|
+
"v": zod.array(zod.number()).optional(),
|
|
28710
|
+
"nextTime": zod.number().optional().describe('Unix seconds of next available bar (when s = "no_data")')
|
|
28918
28711
|
});
|
|
28919
28712
|
var GetUDFQuotesQueryParams = zod.object({
|
|
28920
|
-
symbols: zod.string().describe("Comma-separated list of symbols, at most 100 (400 above that)")
|
|
28713
|
+
"symbols": zod.string().describe("Comma-separated list of symbols, at most 100 (400 above that)")
|
|
28921
28714
|
});
|
|
28922
28715
|
var GetUDFQuotesResponse = zod.object({
|
|
28923
|
-
s: zod.enum(["ok", "error"]),
|
|
28924
|
-
errmsg: zod.string().optional(),
|
|
28925
|
-
d: zod.array(
|
|
28926
|
-
zod.
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28942
|
-
volume: zod.number().nullish()
|
|
28943
|
-
})
|
|
28716
|
+
"s": zod.enum(["ok", "error"]),
|
|
28717
|
+
"errmsg": zod.string().optional(),
|
|
28718
|
+
"d": zod.array(zod.object({
|
|
28719
|
+
"s": zod.enum(["ok", "error"]).describe("Per-symbol status"),
|
|
28720
|
+
"n": zod.string().describe("Full symbol name"),
|
|
28721
|
+
"v": zod.object({
|
|
28722
|
+
"ch": zod.number().nullish().describe("Price change"),
|
|
28723
|
+
"chp": zod.number().nullish().describe("Change percentage"),
|
|
28724
|
+
"short_name": zod.string().optional(),
|
|
28725
|
+
"exchange": zod.string().optional(),
|
|
28726
|
+
"description": zod.string().optional(),
|
|
28727
|
+
"lp": zod.number().nullish().describe("Last price"),
|
|
28728
|
+
"ask": zod.number().nullish(),
|
|
28729
|
+
"bid": zod.number().nullish(),
|
|
28730
|
+
"open_price": zod.number().nullish(),
|
|
28731
|
+
"high_price": zod.number().nullish(),
|
|
28732
|
+
"low_price": zod.number().nullish(),
|
|
28733
|
+
"prev_close_price": zod.number().nullish(),
|
|
28734
|
+
"volume": zod.number().nullish()
|
|
28944
28735
|
})
|
|
28945
|
-
)
|
|
28736
|
+
}))
|
|
28946
28737
|
});
|
|
28947
28738
|
var GetUDFMarksQueryParams = zod.object({
|
|
28948
|
-
symbol: zod.string(),
|
|
28949
|
-
from: zod.number().describe("Left boundary of the visible range (Unix seconds)"),
|
|
28950
|
-
to: zod.number().describe("Right boundary of the visible range (Unix seconds)"),
|
|
28951
|
-
resolution: zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
|
|
28739
|
+
"symbol": zod.string(),
|
|
28740
|
+
"from": zod.number().describe("Left boundary of the visible range (Unix seconds)"),
|
|
28741
|
+
"to": zod.number().describe("Right boundary of the visible range (Unix seconds)"),
|
|
28742
|
+
"resolution": zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
|
|
28952
28743
|
});
|
|
28953
28744
|
var GetUDFMarksResponse = zod.object({
|
|
28954
|
-
id: zod.array(zod.number()),
|
|
28955
|
-
time: zod.array(zod.number()),
|
|
28956
|
-
color: zod.array(zod.string()),
|
|
28957
|
-
text: zod.array(zod.string()),
|
|
28958
|
-
label: zod.array(zod.string()),
|
|
28959
|
-
labelFontColor: zod.array(zod.string()),
|
|
28960
|
-
minSize: zod.array(zod.number())
|
|
28745
|
+
"id": zod.array(zod.number()),
|
|
28746
|
+
"time": zod.array(zod.number()),
|
|
28747
|
+
"color": zod.array(zod.string()),
|
|
28748
|
+
"text": zod.array(zod.string()),
|
|
28749
|
+
"label": zod.array(zod.string()),
|
|
28750
|
+
"labelFontColor": zod.array(zod.string()),
|
|
28751
|
+
"minSize": zod.array(zod.number())
|
|
28961
28752
|
});
|
|
28962
28753
|
var GetUDFTimescaleMarksQueryParams = zod.object({
|
|
28963
|
-
symbol: zod.string(),
|
|
28964
|
-
from: zod.number().describe("Left boundary of the visible range (Unix seconds)"),
|
|
28965
|
-
to: zod.number().describe("Right boundary of the visible range (Unix seconds)"),
|
|
28966
|
-
resolution: zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
|
|
28754
|
+
"symbol": zod.string(),
|
|
28755
|
+
"from": zod.number().describe("Left boundary of the visible range (Unix seconds)"),
|
|
28756
|
+
"to": zod.number().describe("Right boundary of the visible range (Unix seconds)"),
|
|
28757
|
+
"resolution": zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
|
|
28967
28758
|
});
|
|
28968
28759
|
var GetUDFTimescaleMarksResponseItem = zod.object({
|
|
28969
|
-
id: zod.number(),
|
|
28970
|
-
time: zod.number(),
|
|
28971
|
-
color: zod.string(),
|
|
28972
|
-
label: zod.string().describe("Single character displayed in a circle"),
|
|
28973
|
-
tooltip: zod.string()
|
|
28760
|
+
"id": zod.number(),
|
|
28761
|
+
"time": zod.number(),
|
|
28762
|
+
"color": zod.string(),
|
|
28763
|
+
"label": zod.string().describe("Single character displayed in a circle"),
|
|
28764
|
+
"tooltip": zod.string()
|
|
28974
28765
|
});
|
|
28975
28766
|
var GetUDFTimescaleMarksResponse = zod.array(GetUDFTimescaleMarksResponseItem);
|
|
28976
28767
|
|
|
@@ -29164,6 +28955,10 @@ function createDexWs(url, options) {
|
|
|
29164
28955
|
getOrderResponseFilledRegExp,
|
|
29165
28956
|
getOrderResponseInfoBlockHeightRegExp,
|
|
29166
28957
|
getOrderResponseInfoRemainingDepositRegExp,
|
|
28958
|
+
getOrderResponseInfoTwapIdRegExp,
|
|
28959
|
+
getOrderResponseInfoTwapOnePriceToleranceRegExp,
|
|
28960
|
+
getOrderResponseInfoTwapOneTotalDepositRegExp,
|
|
28961
|
+
getOrderResponseInfoTwapOneWorstPriceRegExp,
|
|
29167
28962
|
getOrderResponsePriceRegExp,
|
|
29168
28963
|
getOrderResponseRemainingRegExp,
|
|
29169
28964
|
getOrderbookQueryLimitDefault,
|
|
@@ -29232,6 +29027,10 @@ function createDexWs(url, options) {
|
|
|
29232
29027
|
listOrdersResponseFilledRegExp,
|
|
29233
29028
|
listOrdersResponseInfoBlockHeightRegExp,
|
|
29234
29029
|
listOrdersResponseInfoRemainingDepositRegExp,
|
|
29030
|
+
listOrdersResponseInfoTwapIdRegExp,
|
|
29031
|
+
listOrdersResponseInfoTwapOnePriceToleranceRegExp,
|
|
29032
|
+
listOrdersResponseInfoTwapOneTotalDepositRegExp,
|
|
29033
|
+
listOrdersResponseInfoTwapOneWorstPriceRegExp,
|
|
29235
29034
|
listOrdersResponsePriceRegExp,
|
|
29236
29035
|
listOrdersResponseRemainingRegExp,
|
|
29237
29036
|
listTradesQueryBeforeIndexMax,
|