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.js CHANGED
@@ -5,7 +5,7 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // src/core/user-agent.ts
8
- var SDK_VERSION = "0.7.2";
8
+ var SDK_VERSION = "0.8.0";
9
9
  var USER_AGENT = `ault-sdk-ts/${SDK_VERSION}`;
10
10
  function isServerRuntime() {
11
11
  if (typeof document !== "undefined") return false;
@@ -11462,6 +11462,7 @@ __export(dex_generated_exports, {
11462
11462
  OrderResponseStatus: () => OrderResponseStatus,
11463
11463
  OrderResponseTimeInForce: () => OrderResponseTimeInForce,
11464
11464
  OrderResponseType: () => OrderResponseType,
11465
+ OrderTwapInfoDepositAsset: () => OrderTwapInfoDepositAsset,
11465
11466
  RangeQueryDayParameter: () => RangeQueryDayParameter,
11466
11467
  RangeQueryParameter: () => RangeQueryParameter,
11467
11468
  ReadyResponseStatus: () => ReadyResponseStatus,
@@ -11547,6 +11548,10 @@ var OrderInfoChainType = {
11547
11548
  twap: "twap",
11548
11549
  unknown: "unknown"
11549
11550
  };
11551
+ var OrderTwapInfoDepositAsset = {
11552
+ base: "base",
11553
+ quote: "quote"
11554
+ };
11550
11555
  var HealthResponseStatus = {
11551
11556
  healthy: "healthy"
11552
11557
  };
@@ -27763,247 +27768,201 @@ var PageResponseSchema = z3.object({
27763
27768
  // src/rest/dex-types.generated.ts
27764
27769
  import * as zod from "zod";
27765
27770
  var GetHealthResponse = zod.object({
27766
- status: zod.enum(["healthy"])
27771
+ "status": zod.enum(["healthy"])
27767
27772
  });
27768
27773
  var GetReadyResponse = zod.object({
27769
- status: zod.enum(["ready"])
27774
+ "status": zod.enum(["ready"])
27770
27775
  });
27771
27776
  var GetLiveResponse = zod.object({
27772
- status: zod.enum(["alive"])
27777
+ "status": zod.enum(["alive"])
27773
27778
  });
27774
27779
  var GetDBReadyResponse = zod.object({
27775
- status: zod.enum(["ok", "unavailable"]),
27776
- database: zod.enum(["ok", "unreachable"])
27780
+ "status": zod.enum(["ok", "unavailable"]),
27781
+ "database": zod.enum(["ok", "unreachable"])
27777
27782
  });
27778
27783
  var GetStatusResponse = zod.object({
27779
- last_indexed_height: zod.number(),
27780
- last_indexed_at: zod.iso.datetime({})
27784
+ "last_indexed_height": zod.number(),
27785
+ "last_indexed_at": zod.iso.datetime({})
27781
27786
  });
27782
27787
  var GetSDKManifestResponse = zod.object({
27783
- schemaVersion: zod.number().min(1).describe(
27784
- "Manifest schema version. Server rejects values `< 1` at boot;\nfuture majors (e.g. `2`) pass through and are interpreted by\nthe SDK.\n"
27785
- ),
27786
- gas: zod.record(zod.string(), zod.unknown()).optional().describe(
27787
- "Module gas constants overridden for this env (keyed by message\ntype, e.g. `LIMIT_ORDER`). Values are integers.\n"
27788
- ),
27789
- eip712: zod.record(zod.string(), zod.unknown()).optional().describe(
27790
- "EIP-712 fee-related defaults (e.g. fee amount, gas limit). Shape\nis operator-controlled.\n"
27791
- ),
27792
- urls: zod.record(zod.string(), zod.unknown()).optional().describe("Env-specific URL overrides (e.g. `rest`, `rpc`, `ws`).\n")
27793
- }).describe(
27794
- "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"
27795
- );
27788
+ "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"),
27789
+ "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"),
27790
+ "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"),
27791
+ "urls": zod.record(zod.string(), zod.unknown()).optional().describe("Env-specific URL overrides (e.g. `rest`, `rpc`, `ws`).\n")
27792
+ }).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");
27796
27793
  var listMarketsResponseTakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
27797
27794
  var listMarketsResponseMakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
27798
27795
  var listMarketsResponseInfoEscrowAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
27799
27796
  var ListMarketsResponseItem = zod.object({
27800
- id: zod.string(),
27801
- symbol: zod.string(),
27802
- base: zod.string(),
27803
- quote: zod.string(),
27804
- baseId: zod.string().describe("On-chain denom"),
27805
- quoteId: zod.string(),
27806
- active: zod.boolean(),
27807
- type: zod.enum(["spot"]),
27808
- spot: zod.boolean(),
27809
- margin: zod.boolean().optional(),
27810
- future: zod.boolean().optional(),
27811
- swap: zod.boolean().optional(),
27812
- option: zod.boolean().optional(),
27813
- contract: zod.boolean().optional(),
27814
- settle: zod.string().nullish(),
27815
- settleId: zod.string().nullish(),
27816
- contractSize: zod.number().nullish(),
27817
- linear: zod.boolean().nullish(),
27818
- inverse: zod.boolean().nullish(),
27819
- expiry: zod.number().nullish(),
27820
- expiryDatetime: zod.string().nullish(),
27821
- strike: zod.number().nullish(),
27822
- optionType: zod.string().nullish(),
27823
- feeSide: zod.string().optional(),
27824
- taker: zod.string().regex(listMarketsResponseTakerRegExp).describe(
27825
- "Taker fee rate as a canonical decimal string. Strings preserve\nprecision past 2^53 raw units and avoid float-rounding noise.\n"
27826
- ),
27827
- maker: zod.string().regex(listMarketsResponseMakerRegExp).describe("Maker fee rate as a canonical decimal string."),
27828
- percentage: zod.boolean().optional(),
27829
- tierBased: zod.boolean().optional(),
27830
- precision: zod.object({
27831
- amount: zod.number().optional(),
27832
- price: zod.number().optional(),
27833
- cost: zod.number().optional()
27797
+ "id": zod.string(),
27798
+ "symbol": zod.string(),
27799
+ "base": zod.string(),
27800
+ "quote": zod.string(),
27801
+ "baseId": zod.string().describe("On-chain denom"),
27802
+ "quoteId": zod.string(),
27803
+ "active": zod.boolean(),
27804
+ "type": zod.enum(["spot"]),
27805
+ "spot": zod.boolean(),
27806
+ "margin": zod.boolean().optional(),
27807
+ "future": zod.boolean().optional(),
27808
+ "swap": zod.boolean().optional(),
27809
+ "option": zod.boolean().optional(),
27810
+ "contract": zod.boolean().optional(),
27811
+ "settle": zod.string().nullish(),
27812
+ "settleId": zod.string().nullish(),
27813
+ "contractSize": zod.number().nullish(),
27814
+ "linear": zod.boolean().nullish(),
27815
+ "inverse": zod.boolean().nullish(),
27816
+ "expiry": zod.number().nullish(),
27817
+ "expiryDatetime": zod.string().nullish(),
27818
+ "strike": zod.number().nullish(),
27819
+ "optionType": zod.string().nullish(),
27820
+ "feeSide": zod.string().optional(),
27821
+ "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"),
27822
+ "maker": zod.string().regex(listMarketsResponseMakerRegExp).describe("Maker fee rate as a canonical decimal string."),
27823
+ "percentage": zod.boolean().optional(),
27824
+ "tierBased": zod.boolean().optional(),
27825
+ "precision": zod.object({
27826
+ "amount": zod.number().optional(),
27827
+ "price": zod.number().optional(),
27828
+ "cost": zod.number().optional()
27834
27829
  }),
27835
- limits: zod.object({
27836
- leverage: zod.object({
27837
- min: zod.number().nullish(),
27838
- max: zod.number().nullish()
27830
+ "limits": zod.object({
27831
+ "leverage": zod.object({
27832
+ "min": zod.number().nullish(),
27833
+ "max": zod.number().nullish()
27839
27834
  }).optional(),
27840
- amount: zod.object({
27841
- min: zod.number().nullish(),
27842
- max: zod.number().nullish()
27835
+ "amount": zod.object({
27836
+ "min": zod.number().nullish(),
27837
+ "max": zod.number().nullish()
27843
27838
  }).optional(),
27844
- price: zod.object({
27845
- min: zod.number().nullish(),
27846
- max: zod.number().nullish()
27839
+ "price": zod.object({
27840
+ "min": zod.number().nullish(),
27841
+ "max": zod.number().nullish()
27847
27842
  }).optional(),
27848
- cost: zod.object({
27849
- min: zod.number().nullish(),
27850
- max: zod.number().nullish()
27843
+ "cost": zod.object({
27844
+ "min": zod.number().nullish(),
27845
+ "max": zod.number().nullish()
27851
27846
  }).optional()
27852
27847
  }),
27853
- created: zod.number().nullish(),
27854
- info: zod.object({
27855
- escrow_address: zod.string().regex(listMarketsResponseInfoEscrowAddressOneRegExp).describe(
27856
- "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"
27857
- ).optional().describe(
27858
- "Bech32 address of the per-market escrow account that holds\nuser deposits while orders are resting.\n"
27859
- ),
27860
- block_height: zod.number().optional().describe("Height of the block at which the market was registered."),
27861
- market_type: zod.number().optional().describe(
27862
- "On-chain market type code (e.g. spot). Stable across the\nlifecycle of the market; `MarketResponse.type` carries the\nCCXT label.\n"
27863
- )
27864
- }).describe(
27865
- "Exchange-specific extension on `MarketResponse`. Mirrors the\n`Info` map populated in `internal/domain/market/service.go`.\n"
27866
- )
27848
+ "created": zod.number().nullish(),
27849
+ "info": zod.object({
27850
+ "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"),
27851
+ "block_height": zod.number().optional().describe("Height of the block at which the market was registered."),
27852
+ "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")
27853
+ }).describe("Exchange-specific extension on `MarketResponse`. Mirrors the\n`Info` map populated in `internal/domain/market/service.go`.\n")
27867
27854
  });
27868
27855
  var ListMarketsResponse = zod.array(ListMarketsResponseItem);
27869
27856
  var listCurrenciesResponseInfoContractDecimalsMin = 0;
27870
27857
  var listCurrenciesResponseInfoContractDecimalsMax = 255;
27871
- var ListCurrenciesResponse = zod.record(
27872
- zod.string(),
27873
- zod.object({
27874
- id: zod.string().describe("On-chain denom"),
27875
- code: zod.string().describe("Ticker symbol"),
27876
- name: zod.string().nullish(),
27877
- active: zod.boolean(),
27878
- deposit: zod.boolean().nullish(),
27879
- withdraw: zod.boolean().nullish(),
27880
- fee: zod.number().nullish(),
27881
- precision: zod.number().describe(
27882
- "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"
27883
- ),
27884
- limits: zod.object({
27885
- amount: zod.object({
27886
- min: zod.number().nullish(),
27887
- max: zod.number().nullish()
27888
- }).optional(),
27889
- withdraw: zod.object({
27890
- min: zod.number().nullish(),
27891
- max: zod.number().nullish()
27892
- }).optional()
27893
- }),
27894
- networks: zod.looseObject({}).optional(),
27895
- info: zod.object({
27896
- contractDecimals: zod.number().min(listCurrenciesResponseInfoContractDecimalsMin).max(listCurrenciesResponseInfoContractDecimalsMax).describe(
27897
- "The token contract's own decimals (raw ERC20 decimals). Amounts\non the API are NOT in these units \u2014 see `precision`.\n"
27898
- )
27899
- })
27858
+ var ListCurrenciesResponse = zod.record(zod.string(), zod.object({
27859
+ "id": zod.string().describe("On-chain denom"),
27860
+ "code": zod.string().describe("Ticker symbol"),
27861
+ "name": zod.string().nullish(),
27862
+ "active": zod.boolean(),
27863
+ "deposit": zod.boolean().nullish(),
27864
+ "withdraw": zod.boolean().nullish(),
27865
+ "fee": zod.number().nullish(),
27866
+ "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"),
27867
+ "limits": zod.object({
27868
+ "amount": zod.object({
27869
+ "min": zod.number().nullish(),
27870
+ "max": zod.number().nullish()
27871
+ }).optional(),
27872
+ "withdraw": zod.object({
27873
+ "min": zod.number().nullish(),
27874
+ "max": zod.number().nullish()
27875
+ }).optional()
27876
+ }),
27877
+ "networks": zod.looseObject({}).optional(),
27878
+ "info": zod.object({
27879
+ "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")
27900
27880
  })
27901
- );
27881
+ }));
27902
27882
  var GetTickerParams = zod.object({
27903
- symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
27883
+ "symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
27904
27884
  });
27905
27885
  var GetTickerResponse = zod.object({
27906
- symbol: zod.string(),
27907
- high: zod.string().nullish(),
27908
- low: zod.string().nullish(),
27909
- bid: zod.string().nullish(),
27910
- bidVolume: zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
27911
- ask: zod.string().nullish(),
27912
- askVolume: zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
27913
- vwap: zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
27914
- open: zod.string().nullish(),
27915
- close: zod.string().nullish(),
27916
- last: zod.string().nullish(),
27917
- previousClose: zod.string().nullish().describe("Close price of the last bar before the 24h window."),
27918
- change: zod.string().nullish(),
27919
- percentage: zod.string().nullish(),
27920
- average: zod.string().nullish().describe("Simple average: (open + last) / 2"),
27921
- baseVolume: zod.string(),
27922
- quoteVolume: zod.string().nullish(),
27923
- timestamp: zod.number().describe("Milliseconds"),
27924
- datetime: zod.iso.datetime({}),
27925
- info: zod.looseObject({})
27926
- }).describe(
27927
- "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"
27928
- );
27929
- var GetAllTickersResponse = zod.record(
27930
- zod.string(),
27931
- zod.object({
27932
- symbol: zod.string(),
27933
- high: zod.string().nullish(),
27934
- low: zod.string().nullish(),
27935
- bid: zod.string().nullish(),
27936
- bidVolume: zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
27937
- ask: zod.string().nullish(),
27938
- askVolume: zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
27939
- vwap: zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
27940
- open: zod.string().nullish(),
27941
- close: zod.string().nullish(),
27942
- last: zod.string().nullish(),
27943
- previousClose: zod.string().nullish().describe("Close price of the last bar before the 24h window."),
27944
- change: zod.string().nullish(),
27945
- percentage: zod.string().nullish(),
27946
- average: zod.string().nullish().describe("Simple average: (open + last) / 2"),
27947
- baseVolume: zod.string(),
27948
- quoteVolume: zod.string().nullish(),
27949
- timestamp: zod.number().describe("Milliseconds"),
27950
- datetime: zod.iso.datetime({}),
27951
- info: zod.looseObject({})
27952
- }).describe(
27953
- "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"
27954
- )
27955
- );
27886
+ "symbol": zod.string(),
27887
+ "high": zod.string().nullish(),
27888
+ "low": zod.string().nullish(),
27889
+ "bid": zod.string().nullish(),
27890
+ "bidVolume": zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
27891
+ "ask": zod.string().nullish(),
27892
+ "askVolume": zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
27893
+ "vwap": zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
27894
+ "open": zod.string().nullish(),
27895
+ "close": zod.string().nullish(),
27896
+ "last": zod.string().nullish(),
27897
+ "previousClose": zod.string().nullish().describe("Close price of the last bar before the 24h window."),
27898
+ "change": zod.string().nullish(),
27899
+ "percentage": zod.string().nullish(),
27900
+ "average": zod.string().nullish().describe("Simple average: (open + last) / 2"),
27901
+ "baseVolume": zod.string(),
27902
+ "quoteVolume": zod.string().nullish(),
27903
+ "timestamp": zod.number().describe("Milliseconds"),
27904
+ "datetime": zod.iso.datetime({}),
27905
+ "info": zod.looseObject({})
27906
+ }).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");
27907
+ var GetAllTickersResponse = zod.record(zod.string(), zod.object({
27908
+ "symbol": zod.string(),
27909
+ "high": zod.string().nullish(),
27910
+ "low": zod.string().nullish(),
27911
+ "bid": zod.string().nullish(),
27912
+ "bidVolume": zod.string().nullish().describe("Volume at the best bid price level. Extracted from the orderbook snapshot."),
27913
+ "ask": zod.string().nullish(),
27914
+ "askVolume": zod.string().nullish().describe("Volume at the best ask price level. Extracted from the orderbook snapshot."),
27915
+ "vwap": zod.string().nullish().describe("Volume-weighted average price: quoteVolume / baseVolume"),
27916
+ "open": zod.string().nullish(),
27917
+ "close": zod.string().nullish(),
27918
+ "last": zod.string().nullish(),
27919
+ "previousClose": zod.string().nullish().describe("Close price of the last bar before the 24h window."),
27920
+ "change": zod.string().nullish(),
27921
+ "percentage": zod.string().nullish(),
27922
+ "average": zod.string().nullish().describe("Simple average: (open + last) / 2"),
27923
+ "baseVolume": zod.string(),
27924
+ "quoteVolume": zod.string().nullish(),
27925
+ "timestamp": zod.number().describe("Milliseconds"),
27926
+ "datetime": zod.iso.datetime({}),
27927
+ "info": zod.looseObject({})
27928
+ }).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"));
27956
27929
  var GetOrderbookParams = zod.object({
27957
- symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
27930
+ "symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
27958
27931
  });
27959
27932
  var getOrderbookQueryLimitDefault = 20;
27960
27933
  var getOrderbookQueryLimitMax = 20;
27961
27934
  var GetOrderbookQueryParams = zod.object({
27962
- limit: zod.number().min(1).max(getOrderbookQueryLimitMax).default(getOrderbookQueryLimitDefault)
27935
+ "limit": zod.number().min(1).max(getOrderbookQueryLimitMax).default(getOrderbookQueryLimitDefault)
27963
27936
  });
27964
27937
  var getOrderbookResponseMarketIdRegExp = new RegExp("^[0-9a-f]{2,510}$");
27965
27938
  var GetOrderbookResponse = zod.object({
27966
- symbol: zod.string(),
27967
- market_id: zod.string().regex(getOrderbookResponseMarketIdRegExp).describe(
27968
- "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"
27969
- ),
27970
- bids: zod.array(
27971
- zod.tuple([
27972
- zod.string().describe("price, decimal string"),
27973
- zod.string().describe("quantity, decimal string")
27974
- ])
27975
- ).describe(
27976
- "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"
27977
- ),
27978
- asks: zod.array(
27979
- zod.tuple([
27980
- zod.string().describe("price, decimal string"),
27981
- zod.string().describe("quantity, decimal string")
27982
- ])
27983
- ).describe(
27984
- "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"
27985
- ),
27986
- timestamp: zod.number(),
27987
- datetime: zod.iso.datetime({}),
27988
- nonce: zod.number()
27939
+ "symbol": zod.string(),
27940
+ "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"),
27941
+ "bids": zod.array(zod.tuple([
27942
+ zod.string().describe("price, decimal string"),
27943
+ zod.string().describe("quantity, decimal string")
27944
+ ])).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"),
27945
+ "asks": zod.array(zod.tuple([
27946
+ zod.string().describe("price, decimal string"),
27947
+ zod.string().describe("quantity, decimal string")
27948
+ ])).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"),
27949
+ "timestamp": zod.number(),
27950
+ "datetime": zod.iso.datetime({}),
27951
+ "nonce": zod.number()
27989
27952
  });
27990
27953
  var ListTradesParams = zod.object({
27991
- symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
27954
+ "symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
27992
27955
  });
27993
27956
  var listTradesQueryLimitDefault = 100;
27994
27957
  var listTradesQueryLimitMax = 500;
27995
27958
  var listTradesQueryBeforeIndexMin = 0;
27996
27959
  var listTradesQueryBeforeIndexMax = 4294967295;
27997
27960
  var ListTradesQueryParams = zod.object({
27998
- limit: zod.number().min(1).max(listTradesQueryLimitMax).default(listTradesQueryLimitDefault),
27999
- since: zod.number().optional().describe("Unix timestamp in milliseconds"),
28000
- cursor: zod.string().optional().describe(
28001
- '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'
28002
- ),
28003
- before_height: zod.number().min(1).optional().describe(
28004
- "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"
28005
- ),
28006
- before_index: zod.number().min(listTradesQueryBeforeIndexMin).max(listTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
27961
+ "limit": zod.number().min(1).max(listTradesQueryLimitMax).default(listTradesQueryLimitDefault),
27962
+ "since": zod.number().optional().describe("Unix timestamp in milliseconds"),
27963
+ "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'),
27964
+ "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"),
27965
+ "before_index": zod.number().min(listTradesQueryBeforeIndexMin).max(listTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
28007
27966
  });
28008
27967
  var listTradesResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28009
27968
  var listTradesResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
@@ -28015,70 +27974,36 @@ var listTradesResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
28015
27974
  var listTradesResponseInfoEventIndexMin = 0;
28016
27975
  var listTradesResponseInfoEventIndexMax = 4294967295;
28017
27976
  var ListTradesResponseItem = zod.object({
28018
- id: zod.string(),
28019
- order: zod.string().nullish(),
28020
- timestamp: zod.number(),
28021
- datetime: zod.iso.datetime({}),
28022
- symbol: zod.string(),
28023
- type: zod.union([
28024
- zod.literal("limit"),
28025
- zod.literal("market"),
28026
- zod.literal("twap"),
28027
- zod.literal("unknown"),
28028
- zod.literal(null)
28029
- ]).nullish().describe(
28030
- "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."
28031
- ),
28032
- cloid: zod.string().nullish().describe(
28033
- "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)."
28034
- ),
28035
- side: zod.enum(["buy", "sell"]),
28036
- takerOrMaker: zod.enum(["taker", "maker"]).optional().describe(
28037
- "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."
28038
- ),
28039
- price: zod.string().regex(listTradesResponsePriceRegExp),
28040
- amount: zod.string().regex(listTradesResponseAmountRegExp),
28041
- cost: zod.string().regex(listTradesResponseCostRegExp).describe("price * amount"),
28042
- fee: zod.object({
28043
- cost: zod.string().regex(listTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
28044
- currency: zod.string().optional().describe(
28045
- 'Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'
28046
- ),
28047
- rate: zod.string().regex(listTradesResponseFeeRateRegExp).optional().describe(
28048
- "This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise."
28049
- )
28050
- }).optional().describe(
28051
- "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)."
28052
- ),
28053
- info: zod.object({
28054
- address: zod.string().regex(listTradesResponseInfoAddressOneRegExp).describe(
28055
- "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"
28056
- ).describe("Bech32 address of the orderer that owns this leg of the fill."),
28057
- paid: zod.string().describe(
28058
- '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'
28059
- ),
28060
- received: zod.string().describe(
28061
- "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"
28062
- ),
28063
- block_height: zod.string().regex(listTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
28064
- event_index: zod.number().min(listTradesResponseInfoEventIndexMin).max(listTradesResponseInfoEventIndexMax).describe(
28065
- "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"
28066
- )
28067
- }).describe(
28068
- "Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
28069
- )
28070
- }).describe(
28071
- "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"
28072
- );
27977
+ "id": zod.string(),
27978
+ "order": zod.string().nullish(),
27979
+ "timestamp": zod.number(),
27980
+ "datetime": zod.iso.datetime({}),
27981
+ "symbol": zod.string(),
27982
+ "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."),
27983
+ "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)."),
27984
+ "side": zod.enum(["buy", "sell"]),
27985
+ "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."),
27986
+ "price": zod.string().regex(listTradesResponsePriceRegExp),
27987
+ "amount": zod.string().regex(listTradesResponseAmountRegExp),
27988
+ "cost": zod.string().regex(listTradesResponseCostRegExp).describe("price * amount"),
27989
+ "fee": zod.object({
27990
+ "cost": zod.string().regex(listTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
27991
+ "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.'),
27992
+ "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.")
27993
+ }).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)."),
27994
+ "info": zod.object({
27995
+ "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."),
27996
+ "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'),
27997
+ "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"),
27998
+ "block_height": zod.string().regex(listTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
27999
+ "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")
28000
+ }).describe("Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n")
28001
+ }).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");
28073
28002
  var ListTradesResponse = zod.array(ListTradesResponseItem);
28074
28003
  var getTradePathIdMax = 114;
28075
- var getTradePathIdRegExp = new RegExp(
28076
- "^(0|[1-9][0-9]*)-[0-9a-f]{32}-(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"
28077
- );
28004
+ var getTradePathIdRegExp = new RegExp("^(0|[1-9][0-9]*)-[0-9a-f]{32}-(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$");
28078
28005
  var GetTradeParams = zod.object({
28079
- id: zod.string().max(getTradePathIdMax).regex(getTradePathIdRegExp).describe(
28080
- "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"
28081
- )
28006
+ "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")
28082
28007
  });
28083
28008
  var getTradeResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28084
28009
  var getTradeResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
@@ -28090,76 +28015,43 @@ var getTradeResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
28090
28015
  var getTradeResponseInfoEventIndexMin = 0;
28091
28016
  var getTradeResponseInfoEventIndexMax = 4294967295;
28092
28017
  var GetTradeResponse = zod.object({
28093
- id: zod.string(),
28094
- order: zod.string().nullish(),
28095
- timestamp: zod.number(),
28096
- datetime: zod.iso.datetime({}),
28097
- symbol: zod.string(),
28098
- type: zod.union([
28099
- zod.literal("limit"),
28100
- zod.literal("market"),
28101
- zod.literal("twap"),
28102
- zod.literal("unknown"),
28103
- zod.literal(null)
28104
- ]).nullish().describe(
28105
- "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."
28106
- ),
28107
- cloid: zod.string().nullish().describe(
28108
- "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)."
28109
- ),
28110
- side: zod.enum(["buy", "sell"]),
28111
- takerOrMaker: zod.enum(["taker", "maker"]).optional().describe(
28112
- "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."
28113
- ),
28114
- price: zod.string().regex(getTradeResponsePriceRegExp),
28115
- amount: zod.string().regex(getTradeResponseAmountRegExp),
28116
- cost: zod.string().regex(getTradeResponseCostRegExp).describe("price * amount"),
28117
- fee: zod.object({
28118
- cost: zod.string().regex(getTradeResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
28119
- currency: zod.string().optional().describe(
28120
- 'Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'
28121
- ),
28122
- rate: zod.string().regex(getTradeResponseFeeRateRegExp).optional().describe(
28123
- "This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise."
28124
- )
28125
- }).optional().describe(
28126
- "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)."
28127
- ),
28128
- info: zod.object({
28129
- address: zod.string().regex(getTradeResponseInfoAddressOneRegExp).describe(
28130
- "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"
28131
- ).describe("Bech32 address of the orderer that owns this leg of the fill."),
28132
- paid: zod.string().describe(
28133
- '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'
28134
- ),
28135
- received: zod.string().describe(
28136
- "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"
28137
- ),
28138
- block_height: zod.string().regex(getTradeResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
28139
- event_index: zod.number().min(getTradeResponseInfoEventIndexMin).max(getTradeResponseInfoEventIndexMax).describe(
28140
- "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"
28141
- )
28142
- }).describe(
28143
- "Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
28144
- )
28145
- }).describe(
28146
- "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"
28147
- );
28018
+ "id": zod.string(),
28019
+ "order": zod.string().nullish(),
28020
+ "timestamp": zod.number(),
28021
+ "datetime": zod.iso.datetime({}),
28022
+ "symbol": zod.string(),
28023
+ "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."),
28024
+ "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)."),
28025
+ "side": zod.enum(["buy", "sell"]),
28026
+ "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."),
28027
+ "price": zod.string().regex(getTradeResponsePriceRegExp),
28028
+ "amount": zod.string().regex(getTradeResponseAmountRegExp),
28029
+ "cost": zod.string().regex(getTradeResponseCostRegExp).describe("price * amount"),
28030
+ "fee": zod.object({
28031
+ "cost": zod.string().regex(getTradeResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
28032
+ "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.'),
28033
+ "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.")
28034
+ }).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)."),
28035
+ "info": zod.object({
28036
+ "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."),
28037
+ "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'),
28038
+ "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"),
28039
+ "block_height": zod.string().regex(getTradeResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
28040
+ "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")
28041
+ }).describe("Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n")
28042
+ }).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");
28148
28043
  var getTradingFeesResponseMakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28149
28044
  var getTradingFeesResponseTakerRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28150
- var GetTradingFeesResponse = zod.record(
28151
- zod.string(),
28152
- zod.object({
28153
- symbol: zod.string(),
28154
- maker: zod.string().regex(getTradingFeesResponseMakerRegExp).describe("Maker fee rate as a canonical decimal string."),
28155
- taker: zod.string().regex(getTradingFeesResponseTakerRegExp).describe("Taker fee rate as a canonical decimal string."),
28156
- percentage: zod.boolean(),
28157
- tierBased: zod.boolean(),
28158
- info: zod.looseObject({})
28159
- })
28160
- );
28045
+ var GetTradingFeesResponse = zod.record(zod.string(), zod.object({
28046
+ "symbol": zod.string(),
28047
+ "maker": zod.string().regex(getTradingFeesResponseMakerRegExp).describe("Maker fee rate as a canonical decimal string."),
28048
+ "taker": zod.string().regex(getTradingFeesResponseTakerRegExp).describe("Taker fee rate as a canonical decimal string."),
28049
+ "percentage": zod.boolean(),
28050
+ "tierBased": zod.boolean(),
28051
+ "info": zod.looseObject({})
28052
+ }));
28161
28053
  var GetStatsQueryParams = zod.object({
28162
- window: zod.enum(["24h", "7d", "30d", "all"]).optional().describe("Precomputed reporting window. Defaults to `24h`.")
28054
+ "window": zod.enum(["24h", "7d", "30d", "all"]).optional().describe("Precomputed reporting window. Defaults to `24h`.")
28163
28055
  });
28164
28056
  var getStatsResponseTotalsQuoteVolumeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28165
28057
  var getStatsResponseTotalsEstimatedFeeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
@@ -28171,44 +28063,30 @@ var getStatsResponseMarketsItemBaseVolumeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$
28171
28063
  var getStatsResponseMarketsItemEstimatedFeeRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28172
28064
  var getStatsResponseMarketsItemTakerFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28173
28065
  var GetStatsResponse = zod.object({
28174
- window: zod.enum(["24h", "7d", "30d", "all"]),
28175
- totals: zod.object({
28176
- quoteVolume: zod.string().regex(getStatsResponseTotalsQuoteVolumeRegExp).nullable().describe(
28177
- "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"
28178
- ),
28179
- quoteAsset: zod.string().nullable().describe(
28180
- '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'
28181
- ),
28182
- estimatedFee: zod.string().regex(getStatsResponseTotalsEstimatedFeeRegExp).nullable().describe(
28183
- "Estimated total fees (`\u03A3 quoteVolume \xD7 takerFeeRate`) as a decimal\nstring; an estimate, not booked revenue. Null on multi-quote.\n"
28184
- ),
28185
- tradeCount: zod.number().describe("Number of fills (maker legs) in the window."),
28186
- traderCount: zod.number().describe("Distinct trading addresses in the window."),
28187
- activeMarkets: zod.number().describe("Number of markets with at least one fill in the window."),
28188
- dailyActiveUsers: zod.number().nullable().describe(
28189
- "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"
28190
- ),
28191
- averageSlippageBps: zod.string().regex(getStatsResponseTotalsAverageSlippageBpsRegExp).nullable().describe(
28192
- "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"
28193
- ),
28194
- depositUsdcVolume24h: zod.string().regex(getStatsResponseTotalsDepositUsdcVolume24hRegExp).nullable().describe("24h USDC deposit volume when available; null for longer windows."),
28195
- builderCodesFee24h: zod.string().regex(getStatsResponseTotalsBuilderCodesFee24hRegExp).nullable().describe("Reserved. Currently always null.")
28066
+ "window": zod.enum(["24h", "7d", "30d", "all"]),
28067
+ "totals": zod.object({
28068
+ "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"),
28069
+ "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'),
28070
+ "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"),
28071
+ "tradeCount": zod.number().describe("Number of fills (maker legs) in the window."),
28072
+ "traderCount": zod.number().describe("Distinct trading addresses in the window."),
28073
+ "activeMarkets": zod.number().describe("Number of markets with at least one fill in the window."),
28074
+ "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"),
28075
+ "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"),
28076
+ "depositUsdcVolume24h": zod.string().regex(getStatsResponseTotalsDepositUsdcVolume24hRegExp).nullable().describe("24h USDC deposit volume when available; null for longer windows."),
28077
+ "builderCodesFee24h": zod.string().regex(getStatsResponseTotalsBuilderCodesFee24hRegExp).nullable().describe("Reserved. Currently always null.")
28196
28078
  }).describe("Protocol-wide aggregates for the window."),
28197
- markets: zod.array(
28198
- zod.object({
28199
- symbol: zod.string(),
28200
- base: zod.string(),
28201
- quote: zod.string(),
28202
- quoteVolume: zod.string().regex(getStatsResponseMarketsItemQuoteVolumeRegExp),
28203
- baseVolume: zod.string().regex(getStatsResponseMarketsItemBaseVolumeRegExp),
28204
- estimatedFee: zod.string().regex(getStatsResponseMarketsItemEstimatedFeeRegExp),
28205
- tradeCount: zod.number(),
28206
- takerFeeRate: zod.string().regex(getStatsResponseMarketsItemTakerFeeRateRegExp)
28207
- }).describe("Per-market aggregates for the window.")
28208
- )
28209
- }).describe(
28210
- "Protocol stats overview for a rolling window. Monetary fields are\ncanonical decimal strings; counts are integers.\n"
28211
- );
28079
+ "markets": zod.array(zod.object({
28080
+ "symbol": zod.string(),
28081
+ "base": zod.string(),
28082
+ "quote": zod.string(),
28083
+ "quoteVolume": zod.string().regex(getStatsResponseMarketsItemQuoteVolumeRegExp),
28084
+ "baseVolume": zod.string().regex(getStatsResponseMarketsItemBaseVolumeRegExp),
28085
+ "estimatedFee": zod.string().regex(getStatsResponseMarketsItemEstimatedFeeRegExp),
28086
+ "tradeCount": zod.number(),
28087
+ "takerFeeRate": zod.string().regex(getStatsResponseMarketsItemTakerFeeRateRegExp)
28088
+ }).describe("Per-market aggregates for the window."))
28089
+ }).describe("Protocol stats overview for a rolling window. Monetary fields are\ncanonical decimal strings; counts are integers.\n");
28212
28090
  var listOrdersQueryAddressOneRegExp = new RegExp("^ault1[a-z0-9]{38,}$");
28213
28091
  var listOrdersQueryAddressTwoRegExp = new RegExp("^0x[a-f0-9]{40}$");
28214
28092
  var listOrdersQueryMarketIdRegExp = new RegExp("^[0-9a-fA-F]+$");
@@ -28216,27 +28094,14 @@ var listOrdersQueryCloidRegExp = new RegExp("^([0-9a-fA-F]{16})?$");
28216
28094
  var listOrdersQueryLimitDefault = 100;
28217
28095
  var listOrdersQueryLimitMax = 500;
28218
28096
  var ListOrdersQueryParams = zod.object({
28219
- address: zod.union([
28220
- zod.string().regex(listOrdersQueryAddressOneRegExp).describe(
28221
- "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"
28222
- ),
28223
- zod.string().regex(listOrdersQueryAddressTwoRegExp).describe(
28224
- "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"
28225
- )
28226
- ]).describe(
28227
- "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"
28228
- ),
28229
- status: zod.enum(["open", "closed", "canceled"]).optional(),
28230
- symbol: zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT). Alternative to market_id."),
28231
- market_id: zod.string().regex(listOrdersQueryMarketIdRegExp).optional().describe("Hex-encoded binary market ID to filter by. Takes precedence over symbol."),
28232
- cloid: zod.string().regex(listOrdersQueryCloidRegExp).optional().describe(
28233
- "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"
28234
- ),
28235
- since: zod.number().optional().describe("Return orders created after this Unix timestamp (milliseconds)"),
28236
- limit: zod.number().min(1).max(listOrdersQueryLimitMax).default(listOrdersQueryLimitDefault),
28237
- cursor: zod.string().optional().describe(
28238
- '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'
28239
- )
28097
+ "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"),
28098
+ "status": zod.enum(["open", "closed", "canceled"]).optional(),
28099
+ "symbol": zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT). Alternative to market_id."),
28100
+ "market_id": zod.string().regex(listOrdersQueryMarketIdRegExp).optional().describe("Hex-encoded binary market ID to filter by. Takes precedence over symbol."),
28101
+ "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"),
28102
+ "since": zod.number().optional().describe("Return orders created after this Unix timestamp (milliseconds)"),
28103
+ "limit": zod.number().min(1).max(listOrdersQueryLimitMax).default(listOrdersQueryLimitDefault),
28104
+ "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')
28240
28105
  });
28241
28106
  var listOrdersResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28242
28107
  var listOrdersResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
@@ -28247,77 +28112,60 @@ var listOrdersResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28247
28112
  var listOrdersResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28248
28113
  var listOrdersResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
28249
28114
  var listOrdersResponseInfoRemainingDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28115
+ var listOrdersResponseInfoTwapIdRegExp = new RegExp("^[0-9a-f]+$");
28116
+ var listOrdersResponseInfoTwapOneTotalDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28117
+ var listOrdersResponseInfoTwapOnePriceToleranceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28118
+ var listOrdersResponseInfoTwapOneWorstPriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28250
28119
  var ListOrdersResponseItem = zod.object({
28251
- id: zod.string(),
28252
- clientOrderId: zod.string().nullish().describe(
28253
- "The order's cloid (client order id) as a hex string, or null when the order was placed without one."
28254
- ),
28255
- timestamp: zod.number(),
28256
- datetime: zod.iso.datetime({}),
28257
- lastTradeTimestamp: zod.number().nullish().describe("Timestamp (ms) of the last trade executed against this order. Null if no trades."),
28258
- status: zod.enum(["open", "closed", "canceled", "unknown"]).describe("`unknown` is the fallback for a chain status code the API doesn't recognize."),
28259
- symbol: zod.string(),
28260
- type: zod.enum(["limit", "market", "twap", "unknown"]).describe(
28261
- "`unknown` is the fallback for a chain type code the API doesn't recognize. A `twap` row (chain order_type=2) is a TWAP slice execution \u2014 the TWAP parent lives in `twap_orders` and is not returned by the order endpoints."
28262
- ),
28263
- timeInForce: zod.union([zod.literal("ioc"), zod.literal(null)]).nullable().describe(
28264
- "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"
28265
- ),
28266
- side: zod.enum(["buy", "sell"]),
28267
- price: zod.string().regex(listOrdersResponsePriceRegExp),
28268
- average: zod.string().nullish().describe("Average execution price as decimal string. Null when filled is 0."),
28269
- amount: zod.string().regex(listOrdersResponseAmountRegExp),
28270
- filled: zod.string().regex(listOrdersResponseFilledRegExp),
28271
- remaining: zod.string().regex(listOrdersResponseRemainingRegExp),
28272
- cost: zod.string().regex(listOrdersResponseCostRegExp).describe(
28273
- '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'
28274
- ),
28275
- trades: zod.array(zod.looseObject({})).optional(),
28276
- fee: zod.object({
28277
- cost: zod.string().regex(listOrdersResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
28278
- currency: zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
28279
- rate: zod.string().regex(listOrdersResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
28280
- }).optional().describe(
28281
- "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"
28282
- ),
28283
- reduceOnly: zod.boolean().optional(),
28284
- postOnly: zod.boolean().optional(),
28285
- stopPrice: zod.string().nullish(),
28286
- triggerPrice: zod.string().nullish(),
28287
- info: zod.object({
28288
- block_height: zod.string().regex(listOrdersResponseInfoBlockHeightRegExp).describe(
28289
- "Height of the block that wrote the order. Decimal string for\nparity with the WS order `info.block_height`.\n"
28290
- ),
28291
- tx_index: zod.number().describe("Index of the order tx within its block."),
28292
- remaining_deposit: zod.string().regex(listOrdersResponseInfoRemainingDepositRegExp).describe(
28293
- "Remaining quote-asset escrow (raw decimal string at the chain's\natto-precision) that has not yet been spent on fills.\n"
28294
- ),
28295
- chain_status: zod.enum([
28296
- "open",
28297
- "partially_filled",
28298
- "filled",
28299
- "cancelled",
28300
- "expired",
28301
- "triggered_pending",
28302
- "unknown"
28303
- ]).describe(
28304
- "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"
28305
- ),
28306
- chain_type: zod.enum(["limit", "market", "twap", "unknown"]).describe(
28307
- "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"
28308
- ),
28309
- close_reason: zod.string().nullable().describe(
28310
- "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"
28311
- )
28312
- }).describe(
28313
- "Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n"
28314
- )
28315
- }).describe(
28316
- "All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n"
28317
- );
28120
+ "id": zod.string(),
28121
+ "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."),
28122
+ "timestamp": zod.number(),
28123
+ "datetime": zod.iso.datetime({}),
28124
+ "lastTradeTimestamp": zod.number().nullish().describe("Timestamp (ms) of the last trade executed against this order. Null if no trades."),
28125
+ "status": zod.enum(["open", "closed", "canceled", "unknown"]).describe("`unknown` is the fallback for a chain status code the API doesn't recognize."),
28126
+ "symbol": zod.string(),
28127
+ "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)."),
28128
+ "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"),
28129
+ "side": zod.enum(["buy", "sell"]),
28130
+ "price": zod.string().regex(listOrdersResponsePriceRegExp),
28131
+ "average": zod.string().nullish().describe("Average execution price as decimal string. Null when filled is 0."),
28132
+ "amount": zod.string().regex(listOrdersResponseAmountRegExp),
28133
+ "filled": zod.string().regex(listOrdersResponseFilledRegExp),
28134
+ "remaining": zod.string().regex(listOrdersResponseRemainingRegExp),
28135
+ "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'),
28136
+ "trades": zod.array(zod.looseObject({})).optional(),
28137
+ "fee": zod.object({
28138
+ "cost": zod.string().regex(listOrdersResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
28139
+ "currency": zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
28140
+ "rate": zod.string().regex(listOrdersResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
28141
+ }).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"),
28142
+ "reduceOnly": zod.boolean().optional(),
28143
+ "postOnly": zod.boolean().optional(),
28144
+ "stopPrice": zod.string().nullish(),
28145
+ "triggerPrice": zod.string().nullish(),
28146
+ "info": zod.object({
28147
+ "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"),
28148
+ "tx_index": zod.number().describe("Index of the order tx within its block."),
28149
+ "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"),
28150
+ "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"),
28151
+ "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"),
28152
+ "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"),
28153
+ "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"),
28154
+ "twap": zod.union([zod.object({
28155
+ "total_deposit": zod.string().regex(listOrdersResponseInfoTwapOneTotalDepositRegExp).describe("Escrowed size in `deposit_asset` units (the `amount` of a sell, the quote budget of a buy)."),
28156
+ "deposit_asset": zod.enum(["base", "quote"]).describe("Base for a sell, quote for a buy."),
28157
+ "start_time": zod.number().nullable().describe("When the schedule started (ms)."),
28158
+ "deadline": zod.number().nullable().describe("When the schedule ends (ms)."),
28159
+ "num_slices": zod.number().describe("Slices the schedule was cut into."),
28160
+ "slice_index": zod.number().describe("Slices dispatched so far."),
28161
+ "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."),
28162
+ "worst_price": zod.string().regex(listOrdersResponseInfoTwapOneWorstPriceRegExp).nullable().describe("Absolute worst price per slice; null when a tolerance was used.")
28163
+ }).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.")
28164
+ }).describe("Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n")
28165
+ }).describe("All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n");
28318
28166
  var ListOrdersResponse = zod.array(ListOrdersResponseItem);
28319
28167
  var GetOrderParams = zod.object({
28320
- id: zod.string().describe("Hex-encoded order ID")
28168
+ "id": zod.string().describe("Hex-encoded order ID")
28321
28169
  });
28322
28170
  var getOrderResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28323
28171
  var getOrderResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
@@ -28328,90 +28176,69 @@ var getOrderResponseFeeCostRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28328
28176
  var getOrderResponseFeeRateRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28329
28177
  var getOrderResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
28330
28178
  var getOrderResponseInfoRemainingDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28179
+ var getOrderResponseInfoTwapIdRegExp = new RegExp("^[0-9a-f]+$");
28180
+ var getOrderResponseInfoTwapOneTotalDepositRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28181
+ var getOrderResponseInfoTwapOnePriceToleranceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28182
+ var getOrderResponseInfoTwapOneWorstPriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28331
28183
  var GetOrderResponse = zod.object({
28332
- id: zod.string(),
28333
- clientOrderId: zod.string().nullish().describe(
28334
- "The order's cloid (client order id) as a hex string, or null when the order was placed without one."
28335
- ),
28336
- timestamp: zod.number(),
28337
- datetime: zod.iso.datetime({}),
28338
- lastTradeTimestamp: zod.number().nullish().describe("Timestamp (ms) of the last trade executed against this order. Null if no trades."),
28339
- status: zod.enum(["open", "closed", "canceled", "unknown"]).describe("`unknown` is the fallback for a chain status code the API doesn't recognize."),
28340
- symbol: zod.string(),
28341
- type: zod.enum(["limit", "market", "twap", "unknown"]).describe(
28342
- "`unknown` is the fallback for a chain type code the API doesn't recognize. A `twap` row (chain order_type=2) is a TWAP slice execution \u2014 the TWAP parent lives in `twap_orders` and is not returned by the order endpoints."
28343
- ),
28344
- timeInForce: zod.union([zod.literal("ioc"), zod.literal(null)]).nullable().describe(
28345
- "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"
28346
- ),
28347
- side: zod.enum(["buy", "sell"]),
28348
- price: zod.string().regex(getOrderResponsePriceRegExp),
28349
- average: zod.string().nullish().describe("Average execution price as decimal string. Null when filled is 0."),
28350
- amount: zod.string().regex(getOrderResponseAmountRegExp),
28351
- filled: zod.string().regex(getOrderResponseFilledRegExp),
28352
- remaining: zod.string().regex(getOrderResponseRemainingRegExp),
28353
- cost: zod.string().regex(getOrderResponseCostRegExp).describe(
28354
- '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'
28355
- ),
28356
- trades: zod.array(zod.looseObject({})).optional(),
28357
- fee: zod.object({
28358
- cost: zod.string().regex(getOrderResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
28359
- currency: zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
28360
- rate: zod.string().regex(getOrderResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
28361
- }).optional().describe(
28362
- "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"
28363
- ),
28364
- reduceOnly: zod.boolean().optional(),
28365
- postOnly: zod.boolean().optional(),
28366
- stopPrice: zod.string().nullish(),
28367
- triggerPrice: zod.string().nullish(),
28368
- info: zod.object({
28369
- block_height: zod.string().regex(getOrderResponseInfoBlockHeightRegExp).describe(
28370
- "Height of the block that wrote the order. Decimal string for\nparity with the WS order `info.block_height`.\n"
28371
- ),
28372
- tx_index: zod.number().describe("Index of the order tx within its block."),
28373
- remaining_deposit: zod.string().regex(getOrderResponseInfoRemainingDepositRegExp).describe(
28374
- "Remaining quote-asset escrow (raw decimal string at the chain's\natto-precision) that has not yet been spent on fills.\n"
28375
- ),
28376
- chain_status: zod.enum([
28377
- "open",
28378
- "partially_filled",
28379
- "filled",
28380
- "cancelled",
28381
- "expired",
28382
- "triggered_pending",
28383
- "unknown"
28384
- ]).describe(
28385
- "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"
28386
- ),
28387
- chain_type: zod.enum(["limit", "market", "twap", "unknown"]).describe(
28388
- "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"
28389
- ),
28390
- close_reason: zod.string().nullable().describe(
28391
- "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"
28392
- )
28393
- }).describe(
28394
- "Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n"
28395
- )
28396
- }).describe(
28397
- "All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n"
28398
- );
28184
+ "id": zod.string(),
28185
+ "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."),
28186
+ "timestamp": zod.number(),
28187
+ "datetime": zod.iso.datetime({}),
28188
+ "lastTradeTimestamp": zod.number().nullish().describe("Timestamp (ms) of the last trade executed against this order. Null if no trades."),
28189
+ "status": zod.enum(["open", "closed", "canceled", "unknown"]).describe("`unknown` is the fallback for a chain status code the API doesn't recognize."),
28190
+ "symbol": zod.string(),
28191
+ "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)."),
28192
+ "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"),
28193
+ "side": zod.enum(["buy", "sell"]),
28194
+ "price": zod.string().regex(getOrderResponsePriceRegExp),
28195
+ "average": zod.string().nullish().describe("Average execution price as decimal string. Null when filled is 0."),
28196
+ "amount": zod.string().regex(getOrderResponseAmountRegExp),
28197
+ "filled": zod.string().regex(getOrderResponseFilledRegExp),
28198
+ "remaining": zod.string().regex(getOrderResponseRemainingRegExp),
28199
+ "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'),
28200
+ "trades": zod.array(zod.looseObject({})).optional(),
28201
+ "fee": zod.object({
28202
+ "cost": zod.string().regex(getOrderResponseFeeCostRegExp).optional().describe("Fee cost in quote currency, decimal string."),
28203
+ "currency": zod.string().optional().describe('Quote currency ticker (e.g., "USDT")'),
28204
+ "rate": zod.string().regex(getOrderResponseFeeRateRegExp).optional().describe("Fee rate from the market, decimal string.")
28205
+ }).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"),
28206
+ "reduceOnly": zod.boolean().optional(),
28207
+ "postOnly": zod.boolean().optional(),
28208
+ "stopPrice": zod.string().nullish(),
28209
+ "triggerPrice": zod.string().nullish(),
28210
+ "info": zod.object({
28211
+ "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"),
28212
+ "tx_index": zod.number().describe("Index of the order tx within its block."),
28213
+ "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"),
28214
+ "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"),
28215
+ "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"),
28216
+ "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"),
28217
+ "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"),
28218
+ "twap": zod.union([zod.object({
28219
+ "total_deposit": zod.string().regex(getOrderResponseInfoTwapOneTotalDepositRegExp).describe("Escrowed size in `deposit_asset` units (the `amount` of a sell, the quote budget of a buy)."),
28220
+ "deposit_asset": zod.enum(["base", "quote"]).describe("Base for a sell, quote for a buy."),
28221
+ "start_time": zod.number().nullable().describe("When the schedule started (ms)."),
28222
+ "deadline": zod.number().nullable().describe("When the schedule ends (ms)."),
28223
+ "num_slices": zod.number().describe("Slices the schedule was cut into."),
28224
+ "slice_index": zod.number().describe("Slices dispatched so far."),
28225
+ "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."),
28226
+ "worst_price": zod.string().regex(getOrderResponseInfoTwapOneWorstPriceRegExp).nullable().describe("Absolute worst price per slice; null when a tolerance was used.")
28227
+ }).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.")
28228
+ }).describe("Exchange-specific extension on `OrderResponse`. Mirrors the\n`info` map populated in `internal/domain/order/service.go`.\n")
28229
+ }).describe("All numeric fields (price, amount, filled, remaining, cost,\nfee.cost, fee.rate, average, triggerPrice, stopPrice) are canonical\ndecimal strings.\n");
28399
28230
  var listMyTradesQueryLimitDefault = 100;
28400
28231
  var listMyTradesQueryLimitMax = 500;
28401
28232
  var listMyTradesQueryBeforeIndexMin = 0;
28402
28233
  var listMyTradesQueryBeforeIndexMax = 4294967295;
28403
28234
  var ListMyTradesQueryParams = zod.object({
28404
- address: zod.string().describe("Blockchain address of the trader"),
28405
- symbol: zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT)"),
28406
- since: zod.number().optional().describe("Unix timestamp in milliseconds"),
28407
- limit: zod.number().min(1).max(listMyTradesQueryLimitMax).default(listMyTradesQueryLimitDefault),
28408
- cursor: zod.string().optional().describe(
28409
- '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'
28410
- ),
28411
- before_height: zod.number().min(1).optional().describe(
28412
- "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"
28413
- ),
28414
- before_index: zod.number().min(listMyTradesQueryBeforeIndexMin).max(listMyTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
28235
+ "address": zod.string().describe("Blockchain address of the trader"),
28236
+ "symbol": zod.string().optional().describe("Symbol to filter by (e.g., AULT/USDT)"),
28237
+ "since": zod.number().optional().describe("Unix timestamp in milliseconds"),
28238
+ "limit": zod.number().min(1).max(listMyTradesQueryLimitMax).default(listMyTradesQueryLimitDefault),
28239
+ "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'),
28240
+ "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"),
28241
+ "before_index": zod.number().min(listMyTradesQueryBeforeIndexMin).max(listMyTradesQueryBeforeIndexMax).optional().describe("Composite pagination cursor, lower half. See `before_height`.")
28415
28242
  });
28416
28243
  var listMyTradesResponsePriceRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
28417
28244
  var listMyTradesResponseAmountRegExp = new RegExp("^-?\\d+(\\.\\d+)?$");
@@ -28423,93 +28250,57 @@ var listMyTradesResponseInfoBlockHeightRegExp = new RegExp("^\\d+$");
28423
28250
  var listMyTradesResponseInfoEventIndexMin = 0;
28424
28251
  var listMyTradesResponseInfoEventIndexMax = 4294967295;
28425
28252
  var ListMyTradesResponseItem = zod.object({
28426
- id: zod.string(),
28427
- order: zod.string().nullish(),
28428
- timestamp: zod.number(),
28429
- datetime: zod.iso.datetime({}),
28430
- symbol: zod.string(),
28431
- type: zod.union([
28432
- zod.literal("limit"),
28433
- zod.literal("market"),
28434
- zod.literal("twap"),
28435
- zod.literal("unknown"),
28436
- zod.literal(null)
28437
- ]).nullish().describe(
28438
- "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."
28439
- ),
28440
- cloid: zod.string().nullish().describe(
28441
- "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)."
28442
- ),
28443
- side: zod.enum(["buy", "sell"]),
28444
- takerOrMaker: zod.enum(["taker", "maker"]).optional().describe(
28445
- "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."
28446
- ),
28447
- price: zod.string().regex(listMyTradesResponsePriceRegExp),
28448
- amount: zod.string().regex(listMyTradesResponseAmountRegExp),
28449
- cost: zod.string().regex(listMyTradesResponseCostRegExp).describe("price * amount"),
28450
- fee: zod.object({
28451
- cost: zod.string().regex(listMyTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
28452
- currency: zod.string().optional().describe(
28453
- 'Ticker of the fee denom (e.g., "USDT", or "AULT" for a base-denom fee). The quote ticker for the rate-estimated fallback.'
28454
- ),
28455
- rate: zod.string().regex(listMyTradesResponseFeeRateRegExp).optional().describe(
28456
- "This leg's fee rate from the market, decimal string: the maker rate for the maker leg, the taker rate otherwise."
28457
- )
28458
- }).optional().describe(
28459
- "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)."
28460
- ),
28461
- info: zod.object({
28462
- address: zod.string().regex(listMyTradesResponseInfoAddressOneRegExp).describe(
28463
- "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"
28464
- ).describe("Bech32 address of the orderer that owns this leg of the fill."),
28465
- paid: zod.string().describe(
28466
- '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'
28467
- ),
28468
- received: zod.string().describe(
28469
- "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"
28470
- ),
28471
- block_height: zod.string().regex(listMyTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
28472
- event_index: zod.number().min(listMyTradesResponseInfoEventIndexMin).max(listMyTradesResponseInfoEventIndexMax).describe(
28473
- "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"
28474
- )
28475
- }).describe(
28476
- "Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n"
28477
- )
28478
- }).describe(
28479
- "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"
28480
- );
28253
+ "id": zod.string(),
28254
+ "order": zod.string().nullish(),
28255
+ "timestamp": zod.number(),
28256
+ "datetime": zod.iso.datetime({}),
28257
+ "symbol": zod.string(),
28258
+ "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."),
28259
+ "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)."),
28260
+ "side": zod.enum(["buy", "sell"]),
28261
+ "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."),
28262
+ "price": zod.string().regex(listMyTradesResponsePriceRegExp),
28263
+ "amount": zod.string().regex(listMyTradesResponseAmountRegExp),
28264
+ "cost": zod.string().regex(listMyTradesResponseCostRegExp).describe("price * amount"),
28265
+ "fee": zod.object({
28266
+ "cost": zod.string().regex(listMyTradesResponseFeeCostRegExp).optional().describe("Fee cost in `currency` units, decimal string."),
28267
+ "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.'),
28268
+ "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.")
28269
+ }).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)."),
28270
+ "info": zod.object({
28271
+ "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."),
28272
+ "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'),
28273
+ "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"),
28274
+ "block_height": zod.string().regex(listMyTradesResponseInfoBlockHeightRegExp).describe("Decimal-string block height for parity with the WS trade event."),
28275
+ "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")
28276
+ }).describe("Exchange-specific extension on `TradeResponse`. Mirrors the\n`Info` struct populated in `internal/domain/trade/service.go`.\n")
28277
+ }).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");
28481
28278
  var ListMyTradesResponse = zod.array(ListMyTradesResponseItem);
28482
28279
  var GetBalanceQueryParams = zod.object({
28483
- address: zod.string()
28280
+ "address": zod.string()
28484
28281
  });
28485
28282
  var getBalanceResponseFreeRegExpOne = new RegExp("^-?\\d+(\\.\\d+)?$");
28486
28283
  var getBalanceResponseUsedRegExpOne = new RegExp("^-?\\d+(\\.\\d+)?$");
28487
28284
  var getBalanceResponseTotalRegExpOne = new RegExp("^-?\\d+(\\.\\d+)?$");
28488
28285
  var GetBalanceResponse = zod.object({
28489
- free: zod.record(zod.string(), zod.string().regex(getBalanceResponseFreeRegExpOne)),
28490
- used: zod.record(zod.string(), zod.string().regex(getBalanceResponseUsedRegExpOne)),
28491
- total: zod.record(zod.string(), zod.string().regex(getBalanceResponseTotalRegExpOne)),
28492
- timestamp: zod.number().nullish(),
28493
- datetime: zod.string().nullish(),
28494
- info: zod.looseObject({})
28495
- }).describe(
28496
- "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"
28497
- );
28286
+ "free": zod.record(zod.string(), zod.string().regex(getBalanceResponseFreeRegExpOne)),
28287
+ "used": zod.record(zod.string(), zod.string().regex(getBalanceResponseUsedRegExpOne)),
28288
+ "total": zod.record(zod.string(), zod.string().regex(getBalanceResponseTotalRegExpOne)),
28289
+ "timestamp": zod.number().nullish(),
28290
+ "datetime": zod.string().nullish(),
28291
+ "info": zod.looseObject({})
28292
+ }).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");
28498
28293
  var GetOHLCVParams = zod.object({
28499
- symbol: zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
28294
+ "symbol": zod.string().describe("URL-encoded trading pair (e.g., `AULT%2FUSDT`)")
28500
28295
  });
28501
28296
  var getOHLCVQueryTimeframeDefault = `1m`;
28502
28297
  var getOHLCVQueryLimitDefault = 500;
28503
28298
  var getOHLCVQueryLimitMax = 1e3;
28504
28299
  var GetOHLCVQueryParams = zod.object({
28505
- timeframe: zod.string().default(getOHLCVQueryTimeframeDefault).describe("Timeframe: 1m, 5m, 15m, 30m, 1h, 4h, 1d. Also accepts TV format: 1, 5, 15, 60, 1D"),
28506
- limit: zod.number().min(1).max(getOHLCVQueryLimitMax).default(getOHLCVQueryLimitDefault).describe(
28507
- "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"
28508
- ),
28509
- since: zod.number().optional().describe("Unix timestamp in milliseconds"),
28510
- cursor: zod.string().optional().describe(
28511
- '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'
28512
- )
28300
+ "timeframe": zod.string().default(getOHLCVQueryTimeframeDefault).describe("Timeframe: 1m, 5m, 15m, 30m, 1h, 4h, 1d. Also accepts TV format: 1, 5, 15, 60, 1D"),
28301
+ "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"),
28302
+ "since": zod.number().optional().describe("Unix timestamp in milliseconds"),
28303
+ "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')
28513
28304
  });
28514
28305
  var GetOHLCVResponseItem = zod.tuple([
28515
28306
  zod.number().describe("timestamp in milliseconds"),
@@ -28519,142 +28310,134 @@ var GetOHLCVResponseItem = zod.tuple([
28519
28310
  zod.string().describe("close price, decimal string"),
28520
28311
  zod.string().describe("base-asset volume, decimal string"),
28521
28312
  zod.string().describe("quote-asset volume, decimal string (approximation of `baseVolume * close`)")
28522
- ]).describe(
28523
- "`[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"
28524
- );
28313
+ ]).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");
28525
28314
  var GetOHLCVResponse = zod.array(GetOHLCVResponseItem);
28526
28315
  var GetUDFConfigResponse = zod.object({
28527
- supports_search: zod.boolean(),
28528
- supports_group_request: zod.boolean(),
28529
- supports_marks: zod.boolean(),
28530
- supports_timescale_marks: zod.boolean(),
28531
- supports_time: zod.boolean(),
28532
- supported_resolutions: zod.array(zod.string()),
28533
- exchanges: zod.array(
28534
- zod.object({
28535
- value: zod.string(),
28536
- name: zod.string(),
28537
- desc: zod.string()
28538
- })
28539
- ),
28540
- symbols_types: zod.array(
28541
- zod.object({
28542
- name: zod.string(),
28543
- value: zod.string()
28544
- })
28545
- )
28316
+ "supports_search": zod.boolean(),
28317
+ "supports_group_request": zod.boolean(),
28318
+ "supports_marks": zod.boolean(),
28319
+ "supports_timescale_marks": zod.boolean(),
28320
+ "supports_time": zod.boolean(),
28321
+ "supported_resolutions": zod.array(zod.string()),
28322
+ "exchanges": zod.array(zod.object({
28323
+ "value": zod.string(),
28324
+ "name": zod.string(),
28325
+ "desc": zod.string()
28326
+ })),
28327
+ "symbols_types": zod.array(zod.object({
28328
+ "name": zod.string(),
28329
+ "value": zod.string()
28330
+ }))
28546
28331
  });
28547
28332
  var GetUDFSymbolQueryParams = zod.object({
28548
- symbol: zod.string()
28333
+ "symbol": zod.string()
28549
28334
  });
28550
28335
  var GetUDFSymbolResponse = zod.object({
28551
- name: zod.string(),
28552
- ticker: zod.string(),
28553
- description: zod.string(),
28554
- type: zod.string(),
28555
- session: zod.string(),
28556
- exchange: zod.string(),
28557
- listed_exchange: zod.string(),
28558
- timezone: zod.string(),
28559
- minmov: zod.number(),
28560
- pricescale: zod.number(),
28561
- has_intraday: zod.boolean(),
28562
- has_daily: zod.boolean(),
28563
- has_no_volume: zod.boolean().describe("Whether the symbol has volume data"),
28564
- volume_precision: zod.number().describe("Number of decimal places for volume"),
28565
- data_status: zod.enum(["streaming", "endofday", "pulsed", "delayed_streaming"]).describe("Data feed status"),
28566
- currency_code: zod.string().describe("Quote currency code"),
28567
- supported_resolutions: zod.array(zod.string())
28336
+ "name": zod.string(),
28337
+ "ticker": zod.string(),
28338
+ "description": zod.string(),
28339
+ "type": zod.string(),
28340
+ "session": zod.string(),
28341
+ "exchange": zod.string(),
28342
+ "listed_exchange": zod.string(),
28343
+ "timezone": zod.string(),
28344
+ "minmov": zod.number(),
28345
+ "pricescale": zod.number(),
28346
+ "has_intraday": zod.boolean(),
28347
+ "has_daily": zod.boolean(),
28348
+ "has_no_volume": zod.boolean().describe("Whether the symbol has volume data"),
28349
+ "volume_precision": zod.number().describe("Number of decimal places for volume"),
28350
+ "data_status": zod.enum(["streaming", "endofday", "pulsed", "delayed_streaming"]).describe("Data feed status"),
28351
+ "currency_code": zod.string().describe("Quote currency code"),
28352
+ "supported_resolutions": zod.array(zod.string())
28568
28353
  });
28569
28354
  var SearchUDFSymbolsQueryParams = zod.object({
28570
- query: zod.string().optional().describe("Text typed by the user in the search box"),
28571
- type: zod.string().optional().describe("Symbol type filter"),
28572
- exchange: zod.string().optional().describe("Exchange filter"),
28573
- limit: zod.number().min(1).optional().describe("Maximum number of results (default 30)")
28355
+ "query": zod.string().optional().describe("Text typed by the user in the search box"),
28356
+ "type": zod.string().optional().describe("Symbol type filter"),
28357
+ "exchange": zod.string().optional().describe("Exchange filter"),
28358
+ "limit": zod.number().min(1).optional().describe("Maximum number of results (default 30)")
28574
28359
  });
28575
28360
  var SearchUDFSymbolsResponseItem = zod.object({
28576
- symbol: zod.string(),
28577
- full_name: zod.string(),
28578
- description: zod.string(),
28579
- exchange: zod.string(),
28580
- ticker: zod.string(),
28581
- type: zod.string()
28361
+ "symbol": zod.string(),
28362
+ "full_name": zod.string(),
28363
+ "description": zod.string(),
28364
+ "exchange": zod.string(),
28365
+ "ticker": zod.string(),
28366
+ "type": zod.string()
28582
28367
  });
28583
28368
  var SearchUDFSymbolsResponse = zod.array(SearchUDFSymbolsResponseItem);
28584
28369
  var getUDFHistoryQueryCountbackMax = 1e3;
28585
28370
  var GetUDFHistoryQueryParams = zod.object({
28586
- symbol: zod.string(),
28587
- resolution: zod.enum(["1", "5", "15", "30", "60", "1D", "1W", "1M"]),
28588
- from: zod.number().describe("Unix seconds"),
28589
- to: zod.number().describe("Unix seconds"),
28590
- countback: zod.number().min(1).max(getUDFHistoryQueryCountbackMax).optional().describe("Values above 1000 are clamped to 1000 server-side.")
28371
+ "symbol": zod.string(),
28372
+ "resolution": zod.enum(["1", "5", "15", "30", "60", "1D", "1W", "1M"]),
28373
+ "from": zod.number().describe("Unix seconds"),
28374
+ "to": zod.number().describe("Unix seconds"),
28375
+ "countback": zod.number().min(1).max(getUDFHistoryQueryCountbackMax).optional().describe("Values above 1000 are clamped to 1000 server-side.")
28591
28376
  });
28592
28377
  var GetUDFHistoryResponse = zod.object({
28593
- s: zod.enum(["ok", "no_data", "error"]),
28594
- errmsg: zod.string().optional().describe('Error message (present only when s = "error")'),
28595
- t: zod.array(zod.number()).optional(),
28596
- o: zod.array(zod.number()).optional(),
28597
- h: zod.array(zod.number()).optional(),
28598
- l: zod.array(zod.number()).optional(),
28599
- c: zod.array(zod.number()).optional(),
28600
- v: zod.array(zod.number()).optional(),
28601
- nextTime: zod.number().optional().describe('Unix seconds of next available bar (when s = "no_data")')
28378
+ "s": zod.enum(["ok", "no_data", "error"]),
28379
+ "errmsg": zod.string().optional().describe('Error message (present only when s = "error")'),
28380
+ "t": zod.array(zod.number()).optional(),
28381
+ "o": zod.array(zod.number()).optional(),
28382
+ "h": zod.array(zod.number()).optional(),
28383
+ "l": zod.array(zod.number()).optional(),
28384
+ "c": zod.array(zod.number()).optional(),
28385
+ "v": zod.array(zod.number()).optional(),
28386
+ "nextTime": zod.number().optional().describe('Unix seconds of next available bar (when s = "no_data")')
28602
28387
  });
28603
28388
  var GetUDFQuotesQueryParams = zod.object({
28604
- symbols: zod.string().describe("Comma-separated list of symbols, at most 100 (400 above that)")
28389
+ "symbols": zod.string().describe("Comma-separated list of symbols, at most 100 (400 above that)")
28605
28390
  });
28606
28391
  var GetUDFQuotesResponse = zod.object({
28607
- s: zod.enum(["ok", "error"]),
28608
- errmsg: zod.string().optional(),
28609
- d: zod.array(
28610
- zod.object({
28611
- s: zod.enum(["ok", "error"]).describe("Per-symbol status"),
28612
- n: zod.string().describe("Full symbol name"),
28613
- v: zod.object({
28614
- ch: zod.number().nullish().describe("Price change"),
28615
- chp: zod.number().nullish().describe("Change percentage"),
28616
- short_name: zod.string().optional(),
28617
- exchange: zod.string().optional(),
28618
- description: zod.string().optional(),
28619
- lp: zod.number().nullish().describe("Last price"),
28620
- ask: zod.number().nullish(),
28621
- bid: zod.number().nullish(),
28622
- open_price: zod.number().nullish(),
28623
- high_price: zod.number().nullish(),
28624
- low_price: zod.number().nullish(),
28625
- prev_close_price: zod.number().nullish(),
28626
- volume: zod.number().nullish()
28627
- })
28392
+ "s": zod.enum(["ok", "error"]),
28393
+ "errmsg": zod.string().optional(),
28394
+ "d": zod.array(zod.object({
28395
+ "s": zod.enum(["ok", "error"]).describe("Per-symbol status"),
28396
+ "n": zod.string().describe("Full symbol name"),
28397
+ "v": zod.object({
28398
+ "ch": zod.number().nullish().describe("Price change"),
28399
+ "chp": zod.number().nullish().describe("Change percentage"),
28400
+ "short_name": zod.string().optional(),
28401
+ "exchange": zod.string().optional(),
28402
+ "description": zod.string().optional(),
28403
+ "lp": zod.number().nullish().describe("Last price"),
28404
+ "ask": zod.number().nullish(),
28405
+ "bid": zod.number().nullish(),
28406
+ "open_price": zod.number().nullish(),
28407
+ "high_price": zod.number().nullish(),
28408
+ "low_price": zod.number().nullish(),
28409
+ "prev_close_price": zod.number().nullish(),
28410
+ "volume": zod.number().nullish()
28628
28411
  })
28629
- )
28412
+ }))
28630
28413
  });
28631
28414
  var GetUDFMarksQueryParams = zod.object({
28632
- symbol: zod.string(),
28633
- from: zod.number().describe("Left boundary of the visible range (Unix seconds)"),
28634
- to: zod.number().describe("Right boundary of the visible range (Unix seconds)"),
28635
- resolution: zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
28415
+ "symbol": zod.string(),
28416
+ "from": zod.number().describe("Left boundary of the visible range (Unix seconds)"),
28417
+ "to": zod.number().describe("Right boundary of the visible range (Unix seconds)"),
28418
+ "resolution": zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
28636
28419
  });
28637
28420
  var GetUDFMarksResponse = zod.object({
28638
- id: zod.array(zod.number()),
28639
- time: zod.array(zod.number()),
28640
- color: zod.array(zod.string()),
28641
- text: zod.array(zod.string()),
28642
- label: zod.array(zod.string()),
28643
- labelFontColor: zod.array(zod.string()),
28644
- minSize: zod.array(zod.number())
28421
+ "id": zod.array(zod.number()),
28422
+ "time": zod.array(zod.number()),
28423
+ "color": zod.array(zod.string()),
28424
+ "text": zod.array(zod.string()),
28425
+ "label": zod.array(zod.string()),
28426
+ "labelFontColor": zod.array(zod.string()),
28427
+ "minSize": zod.array(zod.number())
28645
28428
  });
28646
28429
  var GetUDFTimescaleMarksQueryParams = zod.object({
28647
- symbol: zod.string(),
28648
- from: zod.number().describe("Left boundary of the visible range (Unix seconds)"),
28649
- to: zod.number().describe("Right boundary of the visible range (Unix seconds)"),
28650
- resolution: zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
28430
+ "symbol": zod.string(),
28431
+ "from": zod.number().describe("Left boundary of the visible range (Unix seconds)"),
28432
+ "to": zod.number().describe("Right boundary of the visible range (Unix seconds)"),
28433
+ "resolution": zod.string().optional().describe("Bar resolution (e.g. 1, 5, 15, 30, 60, 1D, 1W, 1M)")
28651
28434
  });
28652
28435
  var GetUDFTimescaleMarksResponseItem = zod.object({
28653
- id: zod.number(),
28654
- time: zod.number(),
28655
- color: zod.string(),
28656
- label: zod.string().describe("Single character displayed in a circle"),
28657
- tooltip: zod.string()
28436
+ "id": zod.number(),
28437
+ "time": zod.number(),
28438
+ "color": zod.string(),
28439
+ "label": zod.string().describe("Single character displayed in a circle"),
28440
+ "tooltip": zod.string()
28658
28441
  });
28659
28442
  var GetUDFTimescaleMarksResponse = zod.array(GetUDFTimescaleMarksResponseItem);
28660
28443
 
@@ -28847,6 +28630,10 @@ export {
28847
28630
  getOrderResponseFilledRegExp,
28848
28631
  getOrderResponseInfoBlockHeightRegExp,
28849
28632
  getOrderResponseInfoRemainingDepositRegExp,
28633
+ getOrderResponseInfoTwapIdRegExp,
28634
+ getOrderResponseInfoTwapOnePriceToleranceRegExp,
28635
+ getOrderResponseInfoTwapOneTotalDepositRegExp,
28636
+ getOrderResponseInfoTwapOneWorstPriceRegExp,
28850
28637
  getOrderResponsePriceRegExp,
28851
28638
  getOrderResponseRemainingRegExp,
28852
28639
  getOrderbookQueryLimitDefault,
@@ -28915,6 +28702,10 @@ export {
28915
28702
  listOrdersResponseFilledRegExp,
28916
28703
  listOrdersResponseInfoBlockHeightRegExp,
28917
28704
  listOrdersResponseInfoRemainingDepositRegExp,
28705
+ listOrdersResponseInfoTwapIdRegExp,
28706
+ listOrdersResponseInfoTwapOnePriceToleranceRegExp,
28707
+ listOrdersResponseInfoTwapOneTotalDepositRegExp,
28708
+ listOrdersResponseInfoTwapOneWorstPriceRegExp,
28918
28709
  listOrdersResponsePriceRegExp,
28919
28710
  listOrdersResponseRemainingRegExp,
28920
28711
  listTradesQueryBeforeIndexMax,