tapimo 0.6.0 → 0.7.1
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/App.d.ts +8641 -8263
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +9 -1
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +4 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +5 -0
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +112 -11
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +2 -1
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/early-access.d.ts +2 -2
- package/dist/admin/apps/early-access.d.ts.map +1 -1
- package/dist/admin/apps/early-access.js +5 -5
- package/dist/admin/apps/early-access.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +124 -1
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +97 -6
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.d.ts.map +1 -1
- package/dist/admin/ui.generated.js +47 -39
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +20 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +18 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +36 -7
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +8050 -8019
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.js +2 -15
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
- package/dist/apps/data/FxOracle.d.ts +1 -1
- package/dist/apps/data/FxOracle.d.ts.map +1 -1
- package/dist/apps/data/FxOracle.js +1 -1
- package/dist/apps/data/FxOracle.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +27 -27
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +21 -1
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +58 -58
- package/dist/apps/data/routes/blocks.d.ts +39 -39
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/exchanges.d.ts +669 -669
- package/dist/apps/data/routes/fee-amm.d.ts +157 -143
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +76 -91
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/funding.d.ts +72 -34
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +34 -26
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +30 -30
- package/dist/apps/data/routes/receipts.d.ts +8 -8
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +12 -3
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +4 -4
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +5 -1
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +6 -6
- package/dist/apps/data/routes/transfers.d.ts +101 -90
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +226 -141
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +2 -2
- package/dist/apps/data/routes/valuation.js +3 -3
- package/dist/apps/data/routes/valuation.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/verified-tokens.js +34 -9
- package/dist/apps/data/routes/verified-tokens.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +2 -2
- package/dist/apps/data/routes/webhooks.js +14 -6
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/index.d.ts +1 -0
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +1 -0
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +460 -523
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +7 -23
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +20 -8
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +106 -151
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +28 -28
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +48 -34
- package/dist/apps/management/routes/faucet.d.ts.map +1 -1
- package/dist/apps/management/routes/faucet.js +33 -18
- package/dist/apps/management/routes/faucet.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +131 -131
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +0 -3
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +6 -8
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +0 -4
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +73 -73
- package/dist/apps/management/routes/orgs.d.ts +94 -94
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +5 -0
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +72 -72
- package/dist/apps/management/routes/verified-token-requests.d.ts +94 -94
- package/dist/apps/management/routes/webhooks.d.ts +1 -1
- package/dist/apps/mpp/App.d.ts +363 -0
- package/dist/apps/mpp/App.d.ts.map +1 -0
- package/dist/apps/mpp/App.js +72 -0
- package/dist/apps/mpp/App.js.map +1 -0
- package/dist/apps/mpp/Mpp.d.ts +178 -0
- package/dist/apps/mpp/Mpp.d.ts.map +1 -0
- package/dist/apps/mpp/Mpp.js +183 -0
- package/dist/apps/mpp/Mpp.js.map +1 -0
- package/dist/apps/mpp/index.d.ts +3 -0
- package/dist/apps/mpp/index.d.ts.map +1 -0
- package/dist/apps/mpp/index.js +3 -0
- package/dist/apps/mpp/index.js.map +1 -0
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +57 -10
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/relay/Sponsorships.js +1 -1
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/db/Db.d.ts +2 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +27 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +12 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +11 -0
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/enabledBillingSources.d.ts +73 -0
- package/dist/db/tables/enabledBillingSources.d.ts.map +1 -0
- package/dist/db/tables/enabledBillingSources.js +69 -0
- package/dist/db/tables/enabledBillingSources.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +1 -12
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +3 -23
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +5 -2
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +32 -2
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +13 -3
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/handlers/internal/utils.d.ts +1 -16
- package/dist/handlers/internal/utils.d.ts.map +1 -1
- package/dist/handlers/internal/utils.js +17 -6
- package/dist/handlers/internal/utils.js.map +1 -1
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +37 -5
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +0 -32
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +3 -51
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts +1 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +3 -2
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +78 -32
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +45 -8
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +18 -4
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +50 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +15 -0
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/Response.d.ts +2 -2
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Response.js +12 -4
- package/dist/internal/Response.js.map +1 -1
- package/dist/internal/Schema.d.ts +2 -2
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +4 -2
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Viem.d.ts +1 -1
- package/package.json +7 -2
- package/src/App.test.ts +9 -4
- package/src/App.ts +14 -2
- package/src/Client.test-d.ts +109 -28
- package/src/Scope.ts +5 -0
- package/src/admin/App.test.ts +4 -0
- package/src/admin/apps/early-access.ts +6 -5
- package/src/admin/apps/organizations.test.ts +86 -2
- package/src/admin/apps/organizations.ts +155 -31
- package/src/admin/apps/scopes.test.ts +5 -0
- package/src/admin/ui/src/lib/organizations.test.ts +81 -1
- package/src/admin/ui/src/lib/organizations.ts +92 -0
- package/src/admin/ui/src/routes/api-keys.tsx +1 -1
- package/src/admin/ui/src/routes/early-access.tsx +8 -3
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +103 -0
- package/src/admin/ui.generated.ts +49 -39
- package/src/analytics/Analytics.test.ts +83 -0
- package/src/analytics/Analytics.ts +20 -0
- package/src/analytics/tables/requestEvents.ts +60 -7
- package/src/apps/composition.test.ts +11 -2
- package/src/apps/data/App.test.ts +14 -2
- package/src/apps/data/FundingQuoteProviders.test.ts +0 -5
- package/src/apps/data/FundingQuoteProviders.ts +2 -29
- package/src/apps/data/FxOracle.test.ts +2 -2
- package/src/apps/data/FxOracle.ts +2 -2
- package/src/apps/data/routes/activities.test.ts +6 -2
- package/src/apps/data/routes/activities.ts +39 -1
- package/src/apps/data/routes/balances.test.ts +6 -2
- package/src/apps/data/routes/exchanges.test.ts +7 -3
- package/src/apps/data/routes/fee-amm.test.ts +47 -23
- package/src/apps/data/routes/fee-amm.ts +98 -119
- package/src/apps/data/routes/funding.test.ts +29 -8
- package/src/apps/data/routes/funding.ts +42 -48
- package/src/apps/data/routes/receipts.test.ts +6 -2
- package/src/apps/data/routes/tokenlist.test.ts +15 -0
- package/src/apps/data/routes/tokenlist.ts +18 -5
- package/src/apps/data/routes/tokens.ts +5 -1
- package/src/apps/data/routes/transfers.test.ts +203 -35
- package/src/apps/data/routes/transfers.ts +294 -172
- package/src/apps/data/routes/valuation.test.ts +18 -3
- package/src/apps/data/routes/valuation.ts +4 -4
- package/src/apps/data/routes/verified-tokens.test.ts +51 -0
- package/src/apps/data/routes/verified-tokens.ts +52 -15
- package/src/apps/data/routes/webhooks.test.ts +56 -0
- package/src/apps/data/routes/webhooks.ts +17 -8
- package/src/apps/index.ts +1 -0
- package/src/apps/management/routes/api-keys.test.ts +2 -75
- package/src/apps/management/routes/api-keys.ts +30 -7
- package/src/apps/management/routes/billing.test.ts +106 -85
- package/src/apps/management/routes/billing.ts +32 -21
- package/src/apps/management/routes/faucet.test.ts +11 -3
- package/src/apps/management/routes/faucet.ts +46 -30
- package/src/apps/management/routes/invitations.test.ts +0 -172
- package/src/apps/management/routes/invitations.ts +0 -3
- package/src/apps/management/routes/me.test.ts +3 -145
- package/src/apps/management/routes/me.ts +0 -6
- package/src/apps/management/routes/orgs.test.ts +45 -2
- package/src/apps/management/routes/orgs.ts +6 -0
- package/src/apps/management/routes/scopes.test.ts +1 -0
- package/src/apps/mpp/App.ts +86 -0
- package/src/apps/mpp/Mpp.test.ts +193 -0
- package/src/apps/mpp/Mpp.ts +353 -0
- package/src/apps/mpp/index.ts +2 -0
- package/src/apps/mpp/internal/Adapter.ts +11 -0
- package/src/apps/mpp/internal/Error.ts +9 -0
- package/src/apps/mpp/internal/Idempotency.ts +7 -0
- package/src/apps/mpp/internal/Screening.ts +10 -0
- package/src/apps/relay/App.test.ts +90 -8
- package/src/apps/relay/App.ts +62 -10
- package/src/apps/relay/Sponsorships.test.ts +2 -0
- package/src/apps/relay/Sponsorships.ts +1 -1
- package/src/db/Db.test.ts +2 -2
- package/src/db/Db.ts +30 -0
- package/src/db/Schema.ts +15 -0
- package/src/db/tables/enabledBillingSources.test.ts +303 -0
- package/src/db/tables/enabledBillingSources.ts +118 -0
- package/src/db/tables/invitations.ts +4 -26
- package/src/db/tables/organizations.test.ts +191 -0
- package/src/db/tables/organizations.ts +44 -3
- package/src/db/tables/sponsoredTransactions.test.ts +41 -2
- package/src/db/tables/sponsoredTransactions.ts +15 -3
- package/src/handlers/internal/utils.ts +22 -6
- package/src/handlers/relay.errors.test.ts +153 -0
- package/src/handlers/relay.ts +42 -7
- package/src/internal/Auth.test.ts +3 -3
- package/src/internal/Auth.ts +3 -63
- package/src/internal/EdgeCache.test.ts +18 -5
- package/src/internal/EdgeCache.ts +4 -2
- package/src/internal/FundingQuotes.test.ts +18 -5
- package/src/internal/FundingQuotes.ts +46 -11
- package/src/internal/Log.test.ts +91 -0
- package/src/internal/Log.ts +69 -5
- package/src/internal/MetricSink.test.ts +55 -0
- package/src/internal/MetricSink.ts +14 -0
- package/src/internal/Response.test.ts +28 -0
- package/src/internal/Response.ts +12 -4
- package/src/internal/Schema.test.ts +13 -0
- package/src/internal/Schema.ts +14 -7
|
@@ -67,7 +67,7 @@ export declare namespace schema {
|
|
|
67
67
|
/** Response-level valuation rate provenance. */
|
|
68
68
|
const Meta: z.ZodMiniObject<{
|
|
69
69
|
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
70
|
-
asOf: z.
|
|
70
|
+
asOf: z.ZodMiniISODateTime;
|
|
71
71
|
basis: z.ZodMiniLiteral<"nominal">;
|
|
72
72
|
source: z.ZodMiniString<string>;
|
|
73
73
|
}, z.core.$strip>>;
|
|
@@ -105,7 +105,7 @@ export declare namespace schema {
|
|
|
105
105
|
}, z.core.$strip>;
|
|
106
106
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
107
107
|
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
108
|
-
asOf: z.
|
|
108
|
+
asOf: z.ZodMiniISODateTime;
|
|
109
109
|
basis: z.ZodMiniLiteral<"nominal">;
|
|
110
110
|
source: z.ZodMiniString<string>;
|
|
111
111
|
}, z.core.$strip>>;
|
|
@@ -163,7 +163,7 @@ export declare namespace schema {
|
|
|
163
163
|
}, z.core.$strip>;
|
|
164
164
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
165
165
|
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
166
|
-
asOf: z.
|
|
166
|
+
asOf: z.ZodMiniISODateTime;
|
|
167
167
|
basis: z.ZodMiniLiteral<"nominal">;
|
|
168
168
|
source: z.ZodMiniString<string>;
|
|
169
169
|
}, z.core.$strip>>;
|
|
@@ -408,8 +408,8 @@ export declare namespace schema {
|
|
|
408
408
|
}>>;
|
|
409
409
|
participant: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
410
410
|
taker: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
411
|
-
'timestamp.from': z.ZodMiniOptional<z.ZodMiniISODateTime
|
|
412
|
-
'timestamp.to': z.ZodMiniOptional<z.ZodMiniISODateTime
|
|
411
|
+
'timestamp.from': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<string, string>>>;
|
|
412
|
+
'timestamp.to': z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniISODateTime, z.ZodMiniTransform<string, string>>>;
|
|
413
413
|
transactionHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
414
414
|
}, z.core.$strict>;
|
|
415
415
|
/** One swap-side token with RPC metadata and optional curated fields. */
|
|
@@ -582,7 +582,7 @@ export declare namespace schema {
|
|
|
582
582
|
/** Page-level resources: valuation rate provenance. */
|
|
583
583
|
const Meta: z.ZodMiniObject<{
|
|
584
584
|
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
585
|
-
asOf: z.
|
|
585
|
+
asOf: z.ZodMiniISODateTime;
|
|
586
586
|
basis: z.ZodMiniLiteral<"nominal">;
|
|
587
587
|
source: z.ZodMiniString<string>;
|
|
588
588
|
}, z.core.$strip>>;
|
|
@@ -687,7 +687,7 @@ export declare namespace schema {
|
|
|
687
687
|
}, z.core.$strip>>;
|
|
688
688
|
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
689
689
|
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
690
|
-
asOf: z.
|
|
690
|
+
asOf: z.ZodMiniISODateTime;
|
|
691
691
|
basis: z.ZodMiniLiteral<"nominal">;
|
|
692
692
|
source: z.ZodMiniString<string>;
|
|
693
693
|
}, z.core.$strip>>;
|
|
@@ -1262,9 +1262,139 @@ export declare namespace schema {
|
|
|
1262
1262
|
export declare function exchanges(options?: exchanges.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
1263
1263
|
"/v1/exchange/quotes": {
|
|
1264
1264
|
$post: {
|
|
1265
|
-
output:
|
|
1266
|
-
|
|
1267
|
-
|
|
1265
|
+
output: {
|
|
1266
|
+
destinationAmount: {
|
|
1267
|
+
baseUnits: string;
|
|
1268
|
+
currency: string;
|
|
1269
|
+
decimals: number;
|
|
1270
|
+
formatted: string;
|
|
1271
|
+
valuation?: {
|
|
1272
|
+
amount: string;
|
|
1273
|
+
currency: string;
|
|
1274
|
+
} | null | undefined;
|
|
1275
|
+
};
|
|
1276
|
+
destinationAmountMin: {
|
|
1277
|
+
baseUnits: string;
|
|
1278
|
+
currency: string;
|
|
1279
|
+
decimals: number;
|
|
1280
|
+
formatted: string;
|
|
1281
|
+
valuation?: {
|
|
1282
|
+
amount: string;
|
|
1283
|
+
currency: string;
|
|
1284
|
+
} | null | undefined;
|
|
1285
|
+
};
|
|
1286
|
+
destinationToken: {
|
|
1287
|
+
currency: string;
|
|
1288
|
+
decimals: number;
|
|
1289
|
+
logoUri?: string | undefined;
|
|
1290
|
+
name: string;
|
|
1291
|
+
symbol: string;
|
|
1292
|
+
verified?: boolean | undefined;
|
|
1293
|
+
address: `0x${string}`;
|
|
1294
|
+
};
|
|
1295
|
+
meta?: {
|
|
1296
|
+
pricing?: {
|
|
1297
|
+
asOf: string;
|
|
1298
|
+
basis: "nominal";
|
|
1299
|
+
source: string;
|
|
1300
|
+
} | undefined;
|
|
1301
|
+
} | undefined;
|
|
1302
|
+
mode: "exactSource";
|
|
1303
|
+
sourceAmount: {
|
|
1304
|
+
baseUnits: string;
|
|
1305
|
+
currency: string;
|
|
1306
|
+
decimals: number;
|
|
1307
|
+
formatted: string;
|
|
1308
|
+
valuation?: {
|
|
1309
|
+
amount: string;
|
|
1310
|
+
currency: string;
|
|
1311
|
+
} | null | undefined;
|
|
1312
|
+
};
|
|
1313
|
+
sourceToken: {
|
|
1314
|
+
currency: string;
|
|
1315
|
+
decimals: number;
|
|
1316
|
+
logoUri?: string | undefined;
|
|
1317
|
+
name: string;
|
|
1318
|
+
symbol: string;
|
|
1319
|
+
verified?: boolean | undefined;
|
|
1320
|
+
address: `0x${string}`;
|
|
1321
|
+
};
|
|
1322
|
+
transaction: {
|
|
1323
|
+
calls: {
|
|
1324
|
+
data: `0x${string}`;
|
|
1325
|
+
to: `0x${string}`;
|
|
1326
|
+
value: `0x${string}`;
|
|
1327
|
+
}[];
|
|
1328
|
+
chainId: number;
|
|
1329
|
+
};
|
|
1330
|
+
} | {
|
|
1331
|
+
destinationAmount: {
|
|
1332
|
+
baseUnits: string;
|
|
1333
|
+
currency: string;
|
|
1334
|
+
decimals: number;
|
|
1335
|
+
formatted: string;
|
|
1336
|
+
valuation?: {
|
|
1337
|
+
amount: string;
|
|
1338
|
+
currency: string;
|
|
1339
|
+
} | null | undefined;
|
|
1340
|
+
};
|
|
1341
|
+
destinationToken: {
|
|
1342
|
+
currency: string;
|
|
1343
|
+
decimals: number;
|
|
1344
|
+
logoUri?: string | undefined;
|
|
1345
|
+
name: string;
|
|
1346
|
+
symbol: string;
|
|
1347
|
+
verified?: boolean | undefined;
|
|
1348
|
+
address: `0x${string}`;
|
|
1349
|
+
};
|
|
1350
|
+
meta?: {
|
|
1351
|
+
pricing?: {
|
|
1352
|
+
asOf: string;
|
|
1353
|
+
basis: "nominal";
|
|
1354
|
+
source: string;
|
|
1355
|
+
} | undefined;
|
|
1356
|
+
} | undefined;
|
|
1357
|
+
mode: "exactDestination";
|
|
1358
|
+
sourceAmount: {
|
|
1359
|
+
baseUnits: string;
|
|
1360
|
+
currency: string;
|
|
1361
|
+
decimals: number;
|
|
1362
|
+
formatted: string;
|
|
1363
|
+
valuation?: {
|
|
1364
|
+
amount: string;
|
|
1365
|
+
currency: string;
|
|
1366
|
+
} | null | undefined;
|
|
1367
|
+
};
|
|
1368
|
+
sourceAmountMax: {
|
|
1369
|
+
baseUnits: string;
|
|
1370
|
+
currency: string;
|
|
1371
|
+
decimals: number;
|
|
1372
|
+
formatted: string;
|
|
1373
|
+
valuation?: {
|
|
1374
|
+
amount: string;
|
|
1375
|
+
currency: string;
|
|
1376
|
+
} | null | undefined;
|
|
1377
|
+
};
|
|
1378
|
+
sourceToken: {
|
|
1379
|
+
currency: string;
|
|
1380
|
+
decimals: number;
|
|
1381
|
+
logoUri?: string | undefined;
|
|
1382
|
+
name: string;
|
|
1383
|
+
symbol: string;
|
|
1384
|
+
verified?: boolean | undefined;
|
|
1385
|
+
address: `0x${string}`;
|
|
1386
|
+
};
|
|
1387
|
+
transaction: {
|
|
1388
|
+
calls: {
|
|
1389
|
+
data: `0x${string}`;
|
|
1390
|
+
to: `0x${string}`;
|
|
1391
|
+
value: `0x${string}`;
|
|
1392
|
+
}[];
|
|
1393
|
+
chainId: number;
|
|
1394
|
+
};
|
|
1395
|
+
};
|
|
1396
|
+
outputFormat: "json";
|
|
1397
|
+
status: 200;
|
|
1268
1398
|
input: {
|
|
1269
1399
|
query?: {
|
|
1270
1400
|
chainId?: string | string[];
|
|
@@ -1283,14 +1413,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1283
1413
|
} | {
|
|
1284
1414
|
output: {
|
|
1285
1415
|
error: {
|
|
1286
|
-
code: "
|
|
1416
|
+
code: "api_key_malformed";
|
|
1287
1417
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1288
1418
|
message: string;
|
|
1289
1419
|
};
|
|
1290
1420
|
requestId: string;
|
|
1291
1421
|
};
|
|
1292
1422
|
outputFormat: "json";
|
|
1293
|
-
status:
|
|
1423
|
+
status: 400;
|
|
1294
1424
|
input: {
|
|
1295
1425
|
query?: {
|
|
1296
1426
|
chainId?: string | string[];
|
|
@@ -1309,7 +1439,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1309
1439
|
} | {
|
|
1310
1440
|
output: {
|
|
1311
1441
|
error: {
|
|
1312
|
-
code: "
|
|
1442
|
+
code: "query_invalid";
|
|
1313
1443
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1314
1444
|
message: string;
|
|
1315
1445
|
};
|
|
@@ -1335,14 +1465,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1335
1465
|
} | {
|
|
1336
1466
|
output: {
|
|
1337
1467
|
error: {
|
|
1338
|
-
code: "
|
|
1468
|
+
code: "body_invalid";
|
|
1339
1469
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1340
1470
|
message: string;
|
|
1341
1471
|
};
|
|
1342
1472
|
requestId: string;
|
|
1343
1473
|
};
|
|
1344
1474
|
outputFormat: "json";
|
|
1345
|
-
status:
|
|
1475
|
+
status: 400;
|
|
1346
1476
|
input: {
|
|
1347
1477
|
query?: {
|
|
1348
1478
|
chainId?: string | string[];
|
|
@@ -1361,14 +1491,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1361
1491
|
} | {
|
|
1362
1492
|
output: {
|
|
1363
1493
|
error: {
|
|
1364
|
-
code: "
|
|
1494
|
+
code: "quote_amount_out_of_range";
|
|
1365
1495
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1366
1496
|
message: string;
|
|
1367
1497
|
};
|
|
1368
1498
|
requestId: string;
|
|
1369
1499
|
};
|
|
1370
1500
|
outputFormat: "json";
|
|
1371
|
-
status:
|
|
1501
|
+
status: 400;
|
|
1372
1502
|
input: {
|
|
1373
1503
|
query?: {
|
|
1374
1504
|
chainId?: string | string[];
|
|
@@ -1387,14 +1517,33 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1387
1517
|
} | {
|
|
1388
1518
|
output: {
|
|
1389
1519
|
error: {
|
|
1390
|
-
code: "
|
|
1520
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1391
1521
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1392
1522
|
message: string;
|
|
1393
1523
|
};
|
|
1394
1524
|
requestId: string;
|
|
1395
1525
|
};
|
|
1396
1526
|
outputFormat: "json";
|
|
1397
|
-
status:
|
|
1527
|
+
status: 401;
|
|
1528
|
+
input: {
|
|
1529
|
+
query?: {
|
|
1530
|
+
chainId?: string | string[];
|
|
1531
|
+
denomination?: string | string[];
|
|
1532
|
+
include?: string | string[];
|
|
1533
|
+
} | undefined;
|
|
1534
|
+
} & {
|
|
1535
|
+
json: {
|
|
1536
|
+
amount: string;
|
|
1537
|
+
destinationToken: `0x${string}`;
|
|
1538
|
+
mode: "exactDestination" | "exactSource";
|
|
1539
|
+
slippageBps: number;
|
|
1540
|
+
sourceToken: `0x${string}`;
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
} | {
|
|
1544
|
+
output: null;
|
|
1545
|
+
outputFormat: "body";
|
|
1546
|
+
status: 402;
|
|
1398
1547
|
input: {
|
|
1399
1548
|
query?: {
|
|
1400
1549
|
chainId?: string | string[];
|
|
@@ -1413,14 +1562,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1413
1562
|
} | {
|
|
1414
1563
|
output: {
|
|
1415
1564
|
error: {
|
|
1416
|
-
code: "
|
|
1565
|
+
code: "api_key_forbidden";
|
|
1417
1566
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1418
1567
|
message: string;
|
|
1419
1568
|
};
|
|
1420
1569
|
requestId: string;
|
|
1421
1570
|
};
|
|
1422
1571
|
outputFormat: "json";
|
|
1423
|
-
status:
|
|
1572
|
+
status: 403;
|
|
1424
1573
|
input: {
|
|
1425
1574
|
query?: {
|
|
1426
1575
|
chainId?: string | string[];
|
|
@@ -1439,14 +1588,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1439
1588
|
} | {
|
|
1440
1589
|
output: {
|
|
1441
1590
|
error: {
|
|
1442
|
-
code: "
|
|
1591
|
+
code: "quote_not_available";
|
|
1443
1592
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1444
1593
|
message: string;
|
|
1445
1594
|
};
|
|
1446
1595
|
requestId: string;
|
|
1447
1596
|
};
|
|
1448
1597
|
outputFormat: "json";
|
|
1449
|
-
status:
|
|
1598
|
+
status: 404;
|
|
1450
1599
|
input: {
|
|
1451
1600
|
query?: {
|
|
1452
1601
|
chainId?: string | string[];
|
|
@@ -1465,14 +1614,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1465
1614
|
} | {
|
|
1466
1615
|
output: {
|
|
1467
1616
|
error: {
|
|
1468
|
-
code: "
|
|
1617
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1469
1618
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1470
1619
|
message: string;
|
|
1471
1620
|
};
|
|
1472
1621
|
requestId: string;
|
|
1473
1622
|
};
|
|
1474
1623
|
outputFormat: "json";
|
|
1475
|
-
status:
|
|
1624
|
+
status: 429;
|
|
1476
1625
|
input: {
|
|
1477
1626
|
query?: {
|
|
1478
1627
|
chainId?: string | string[];
|
|
@@ -1491,14 +1640,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1491
1640
|
} | {
|
|
1492
1641
|
output: {
|
|
1493
1642
|
error: {
|
|
1494
|
-
code: "
|
|
1643
|
+
code: "upstream_error";
|
|
1495
1644
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1496
1645
|
message: string;
|
|
1497
1646
|
};
|
|
1498
1647
|
requestId: string;
|
|
1499
1648
|
};
|
|
1500
1649
|
outputFormat: "json";
|
|
1501
|
-
status:
|
|
1650
|
+
status: 502;
|
|
1502
1651
|
input: {
|
|
1503
1652
|
query?: {
|
|
1504
1653
|
chainId?: string | string[];
|
|
@@ -1514,92 +1663,106 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1514
1663
|
sourceToken: `0x${string}`;
|
|
1515
1664
|
};
|
|
1516
1665
|
};
|
|
1517
|
-
}
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
} & {
|
|
1669
|
+
"/v1/exchange/swaps": {
|
|
1670
|
+
$get: {
|
|
1518
1671
|
output: {
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
formatted: string;
|
|
1524
|
-
valuation?: {
|
|
1525
|
-
amount: string;
|
|
1526
|
-
currency: string;
|
|
1527
|
-
} | null | undefined;
|
|
1528
|
-
};
|
|
1529
|
-
destinationAmountMin: {
|
|
1530
|
-
baseUnits: string;
|
|
1531
|
-
currency: string;
|
|
1532
|
-
decimals: number;
|
|
1533
|
-
formatted: string;
|
|
1534
|
-
valuation?: {
|
|
1535
|
-
amount: string;
|
|
1672
|
+
data: {
|
|
1673
|
+
blockNumber: number;
|
|
1674
|
+
destinationAmount: {
|
|
1675
|
+
baseUnits: string;
|
|
1536
1676
|
currency: string;
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
address: `0x${string}`;
|
|
1547
|
-
};
|
|
1548
|
-
meta?: {
|
|
1549
|
-
pricing?: {
|
|
1550
|
-
asOf: string;
|
|
1551
|
-
basis: "nominal";
|
|
1552
|
-
source: string;
|
|
1553
|
-
} | undefined;
|
|
1554
|
-
} | undefined;
|
|
1555
|
-
mode: "exactSource";
|
|
1556
|
-
sourceAmount: {
|
|
1557
|
-
baseUnits: string;
|
|
1558
|
-
currency: string;
|
|
1559
|
-
decimals: number;
|
|
1560
|
-
formatted: string;
|
|
1561
|
-
valuation?: {
|
|
1562
|
-
amount: string;
|
|
1677
|
+
decimals: number;
|
|
1678
|
+
formatted: string;
|
|
1679
|
+
valuation?: {
|
|
1680
|
+
amount: string;
|
|
1681
|
+
currency: string;
|
|
1682
|
+
} | null | undefined;
|
|
1683
|
+
};
|
|
1684
|
+
destinationToken: {
|
|
1685
|
+
address: `0x${string}`;
|
|
1563
1686
|
currency: string;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1687
|
+
decimals: number;
|
|
1688
|
+
logoUri?: string | undefined;
|
|
1689
|
+
name: string;
|
|
1690
|
+
symbol: string;
|
|
1691
|
+
verified?: boolean | undefined;
|
|
1692
|
+
};
|
|
1693
|
+
filledAt: string;
|
|
1694
|
+
fills: {
|
|
1695
|
+
destinationAmount: {
|
|
1696
|
+
baseUnits: string;
|
|
1697
|
+
currency: string;
|
|
1698
|
+
decimals: number;
|
|
1699
|
+
formatted: string;
|
|
1700
|
+
valuation?: {
|
|
1701
|
+
amount: string;
|
|
1702
|
+
currency: string;
|
|
1703
|
+
} | null | undefined;
|
|
1704
|
+
};
|
|
1705
|
+
destinationToken: {
|
|
1706
|
+
address: `0x${string}`;
|
|
1707
|
+
currency: string;
|
|
1708
|
+
decimals: number;
|
|
1709
|
+
logoUri?: string | undefined;
|
|
1710
|
+
name: string;
|
|
1711
|
+
symbol: string;
|
|
1712
|
+
verified?: boolean | undefined;
|
|
1713
|
+
};
|
|
1714
|
+
logIndex: number;
|
|
1715
|
+
maker: `0x${string}`;
|
|
1716
|
+
orderId: string;
|
|
1717
|
+
partialFill: boolean;
|
|
1718
|
+
price: string;
|
|
1719
|
+
sourceAmount: {
|
|
1720
|
+
baseUnits: string;
|
|
1721
|
+
currency: string;
|
|
1722
|
+
decimals: number;
|
|
1723
|
+
formatted: string;
|
|
1724
|
+
valuation?: {
|
|
1725
|
+
amount: string;
|
|
1726
|
+
currency: string;
|
|
1727
|
+
} | null | undefined;
|
|
1728
|
+
};
|
|
1729
|
+
sourceToken: {
|
|
1730
|
+
address: `0x${string}`;
|
|
1731
|
+
currency: string;
|
|
1732
|
+
decimals: number;
|
|
1733
|
+
logoUri?: string | undefined;
|
|
1734
|
+
name: string;
|
|
1735
|
+
symbol: string;
|
|
1736
|
+
verified?: boolean | undefined;
|
|
1737
|
+
};
|
|
1580
1738
|
}[];
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
formatted: string;
|
|
1589
|
-
valuation?: {
|
|
1590
|
-
amount: string;
|
|
1739
|
+
id: string;
|
|
1740
|
+
logIndex: number;
|
|
1741
|
+
mode: "exactDestination" | "exactSource" | null;
|
|
1742
|
+
rate: string;
|
|
1743
|
+
route: `0x${string}`[];
|
|
1744
|
+
sourceAmount: {
|
|
1745
|
+
baseUnits: string;
|
|
1591
1746
|
currency: string;
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1747
|
+
decimals: number;
|
|
1748
|
+
formatted: string;
|
|
1749
|
+
valuation?: {
|
|
1750
|
+
amount: string;
|
|
1751
|
+
currency: string;
|
|
1752
|
+
} | null | undefined;
|
|
1753
|
+
};
|
|
1754
|
+
sourceToken: {
|
|
1755
|
+
address: `0x${string}`;
|
|
1756
|
+
currency: string;
|
|
1757
|
+
decimals: number;
|
|
1758
|
+
logoUri?: string | undefined;
|
|
1759
|
+
name: string;
|
|
1760
|
+
symbol: string;
|
|
1761
|
+
verified?: boolean | undefined;
|
|
1762
|
+
};
|
|
1763
|
+
taker: `0x${string}`;
|
|
1764
|
+
transactionHash: `0x${string}`;
|
|
1765
|
+
}[];
|
|
1603
1766
|
meta?: {
|
|
1604
1767
|
pricing?: {
|
|
1605
1768
|
asOf: string;
|
|
@@ -1607,70 +1770,10 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1607
1770
|
source: string;
|
|
1608
1771
|
} | undefined;
|
|
1609
1772
|
} | undefined;
|
|
1610
|
-
|
|
1611
|
-
sourceAmount: {
|
|
1612
|
-
baseUnits: string;
|
|
1613
|
-
currency: string;
|
|
1614
|
-
decimals: number;
|
|
1615
|
-
formatted: string;
|
|
1616
|
-
valuation?: {
|
|
1617
|
-
amount: string;
|
|
1618
|
-
currency: string;
|
|
1619
|
-
} | null | undefined;
|
|
1620
|
-
};
|
|
1621
|
-
sourceAmountMax: {
|
|
1622
|
-
baseUnits: string;
|
|
1623
|
-
currency: string;
|
|
1624
|
-
decimals: number;
|
|
1625
|
-
formatted: string;
|
|
1626
|
-
valuation?: {
|
|
1627
|
-
amount: string;
|
|
1628
|
-
currency: string;
|
|
1629
|
-
} | null | undefined;
|
|
1630
|
-
};
|
|
1631
|
-
sourceToken: {
|
|
1632
|
-
currency: string;
|
|
1633
|
-
decimals: number;
|
|
1634
|
-
logoUri?: string | undefined;
|
|
1635
|
-
name: string;
|
|
1636
|
-
symbol: string;
|
|
1637
|
-
verified?: boolean | undefined;
|
|
1638
|
-
address: `0x${string}`;
|
|
1639
|
-
};
|
|
1640
|
-
transaction: {
|
|
1641
|
-
calls: {
|
|
1642
|
-
data: `0x${string}`;
|
|
1643
|
-
to: `0x${string}`;
|
|
1644
|
-
value: `0x${string}`;
|
|
1645
|
-
}[];
|
|
1646
|
-
chainId: number;
|
|
1647
|
-
};
|
|
1773
|
+
nextCursor: string | null;
|
|
1648
1774
|
};
|
|
1649
1775
|
outputFormat: "json";
|
|
1650
1776
|
status: 200;
|
|
1651
|
-
input: {
|
|
1652
|
-
query?: {
|
|
1653
|
-
chainId?: string | string[];
|
|
1654
|
-
denomination?: string | string[];
|
|
1655
|
-
include?: string | string[];
|
|
1656
|
-
} | undefined;
|
|
1657
|
-
} & {
|
|
1658
|
-
json: {
|
|
1659
|
-
amount: string;
|
|
1660
|
-
destinationToken: `0x${string}`;
|
|
1661
|
-
mode: "exactDestination" | "exactSource";
|
|
1662
|
-
slippageBps: number;
|
|
1663
|
-
sourceToken: `0x${string}`;
|
|
1664
|
-
};
|
|
1665
|
-
};
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
|
-
} & {
|
|
1669
|
-
"/v1/exchange/swaps": {
|
|
1670
|
-
$get: {
|
|
1671
|
-
output: null;
|
|
1672
|
-
outputFormat: "body";
|
|
1673
|
-
status: 402;
|
|
1674
1777
|
input: {
|
|
1675
1778
|
query?: {
|
|
1676
1779
|
'blockNumber.from'?: string | string[];
|
|
@@ -1692,14 +1795,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1692
1795
|
} | {
|
|
1693
1796
|
output: {
|
|
1694
1797
|
error: {
|
|
1695
|
-
code: "
|
|
1798
|
+
code: "api_key_malformed";
|
|
1696
1799
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1697
1800
|
message: string;
|
|
1698
1801
|
};
|
|
1699
1802
|
requestId: string;
|
|
1700
1803
|
};
|
|
1701
1804
|
outputFormat: "json";
|
|
1702
|
-
status:
|
|
1805
|
+
status: 400;
|
|
1703
1806
|
input: {
|
|
1704
1807
|
query?: {
|
|
1705
1808
|
'blockNumber.from'?: string | string[];
|
|
@@ -1721,7 +1824,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1721
1824
|
} | {
|
|
1722
1825
|
output: {
|
|
1723
1826
|
error: {
|
|
1724
|
-
code: "
|
|
1827
|
+
code: "query_invalid";
|
|
1725
1828
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1726
1829
|
message: string;
|
|
1727
1830
|
};
|
|
@@ -1777,16 +1880,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1777
1880
|
} | undefined;
|
|
1778
1881
|
};
|
|
1779
1882
|
} | {
|
|
1780
|
-
output:
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1784
|
-
message: string;
|
|
1785
|
-
};
|
|
1786
|
-
requestId: string;
|
|
1787
|
-
};
|
|
1788
|
-
outputFormat: "json";
|
|
1789
|
-
status: 403;
|
|
1883
|
+
output: null;
|
|
1884
|
+
outputFormat: "body";
|
|
1885
|
+
status: 402;
|
|
1790
1886
|
input: {
|
|
1791
1887
|
query?: {
|
|
1792
1888
|
'blockNumber.from'?: string | string[];
|
|
@@ -1808,14 +1904,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1808
1904
|
} | {
|
|
1809
1905
|
output: {
|
|
1810
1906
|
error: {
|
|
1811
|
-
code: "
|
|
1907
|
+
code: "api_key_forbidden";
|
|
1812
1908
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1813
1909
|
message: string;
|
|
1814
1910
|
};
|
|
1815
1911
|
requestId: string;
|
|
1816
1912
|
};
|
|
1817
1913
|
outputFormat: "json";
|
|
1818
|
-
status:
|
|
1914
|
+
status: 403;
|
|
1819
1915
|
input: {
|
|
1820
1916
|
query?: {
|
|
1821
1917
|
'blockNumber.from'?: string | string[];
|
|
@@ -1837,14 +1933,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1837
1933
|
} | {
|
|
1838
1934
|
output: {
|
|
1839
1935
|
error: {
|
|
1840
|
-
code: "
|
|
1936
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1841
1937
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1842
1938
|
message: string;
|
|
1843
1939
|
};
|
|
1844
1940
|
requestId: string;
|
|
1845
1941
|
};
|
|
1846
1942
|
outputFormat: "json";
|
|
1847
|
-
status:
|
|
1943
|
+
status: 429;
|
|
1848
1944
|
input: {
|
|
1849
1945
|
query?: {
|
|
1850
1946
|
'blockNumber.from'?: string | string[];
|
|
@@ -1865,111 +1961,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1865
1961
|
};
|
|
1866
1962
|
} | {
|
|
1867
1963
|
output: {
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
formatted: string;
|
|
1875
|
-
valuation?: {
|
|
1876
|
-
amount: string;
|
|
1877
|
-
currency: string;
|
|
1878
|
-
} | null | undefined;
|
|
1879
|
-
};
|
|
1880
|
-
destinationToken: {
|
|
1881
|
-
address: `0x${string}`;
|
|
1882
|
-
currency: string;
|
|
1883
|
-
decimals: number;
|
|
1884
|
-
logoUri?: string | undefined;
|
|
1885
|
-
name: string;
|
|
1886
|
-
symbol: string;
|
|
1887
|
-
verified?: boolean | undefined;
|
|
1888
|
-
};
|
|
1889
|
-
filledAt: string;
|
|
1890
|
-
fills: {
|
|
1891
|
-
destinationAmount: {
|
|
1892
|
-
baseUnits: string;
|
|
1893
|
-
currency: string;
|
|
1894
|
-
decimals: number;
|
|
1895
|
-
formatted: string;
|
|
1896
|
-
valuation?: {
|
|
1897
|
-
amount: string;
|
|
1898
|
-
currency: string;
|
|
1899
|
-
} | null | undefined;
|
|
1900
|
-
};
|
|
1901
|
-
destinationToken: {
|
|
1902
|
-
address: `0x${string}`;
|
|
1903
|
-
currency: string;
|
|
1904
|
-
decimals: number;
|
|
1905
|
-
logoUri?: string | undefined;
|
|
1906
|
-
name: string;
|
|
1907
|
-
symbol: string;
|
|
1908
|
-
verified?: boolean | undefined;
|
|
1909
|
-
};
|
|
1910
|
-
logIndex: number;
|
|
1911
|
-
maker: `0x${string}`;
|
|
1912
|
-
orderId: string;
|
|
1913
|
-
partialFill: boolean;
|
|
1914
|
-
price: string;
|
|
1915
|
-
sourceAmount: {
|
|
1916
|
-
baseUnits: string;
|
|
1917
|
-
currency: string;
|
|
1918
|
-
decimals: number;
|
|
1919
|
-
formatted: string;
|
|
1920
|
-
valuation?: {
|
|
1921
|
-
amount: string;
|
|
1922
|
-
currency: string;
|
|
1923
|
-
} | null | undefined;
|
|
1924
|
-
};
|
|
1925
|
-
sourceToken: {
|
|
1926
|
-
address: `0x${string}`;
|
|
1927
|
-
currency: string;
|
|
1928
|
-
decimals: number;
|
|
1929
|
-
logoUri?: string | undefined;
|
|
1930
|
-
name: string;
|
|
1931
|
-
symbol: string;
|
|
1932
|
-
verified?: boolean | undefined;
|
|
1933
|
-
};
|
|
1934
|
-
}[];
|
|
1935
|
-
id: string;
|
|
1936
|
-
logIndex: number;
|
|
1937
|
-
mode: "exactDestination" | "exactSource" | null;
|
|
1938
|
-
rate: string;
|
|
1939
|
-
route: `0x${string}`[];
|
|
1940
|
-
sourceAmount: {
|
|
1941
|
-
baseUnits: string;
|
|
1942
|
-
currency: string;
|
|
1943
|
-
decimals: number;
|
|
1944
|
-
formatted: string;
|
|
1945
|
-
valuation?: {
|
|
1946
|
-
amount: string;
|
|
1947
|
-
currency: string;
|
|
1948
|
-
} | null | undefined;
|
|
1949
|
-
};
|
|
1950
|
-
sourceToken: {
|
|
1951
|
-
address: `0x${string}`;
|
|
1952
|
-
currency: string;
|
|
1953
|
-
decimals: number;
|
|
1954
|
-
logoUri?: string | undefined;
|
|
1955
|
-
name: string;
|
|
1956
|
-
symbol: string;
|
|
1957
|
-
verified?: boolean | undefined;
|
|
1958
|
-
};
|
|
1959
|
-
taker: `0x${string}`;
|
|
1960
|
-
transactionHash: `0x${string}`;
|
|
1961
|
-
}[];
|
|
1962
|
-
meta?: {
|
|
1963
|
-
pricing?: {
|
|
1964
|
-
asOf: string;
|
|
1965
|
-
basis: "nominal";
|
|
1966
|
-
source: string;
|
|
1967
|
-
} | undefined;
|
|
1968
|
-
} | undefined;
|
|
1969
|
-
nextCursor: string | null;
|
|
1964
|
+
error: {
|
|
1965
|
+
code: "upstream_error";
|
|
1966
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1967
|
+
message: string;
|
|
1968
|
+
};
|
|
1969
|
+
requestId: string;
|
|
1970
1970
|
};
|
|
1971
1971
|
outputFormat: "json";
|
|
1972
|
-
status:
|
|
1972
|
+
status: 502;
|
|
1973
1973
|
input: {
|
|
1974
1974
|
query?: {
|
|
1975
1975
|
'blockNumber.from'?: string | string[];
|
|
@@ -1993,9 +1993,41 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
1993
1993
|
} & {
|
|
1994
1994
|
"/v1/exchange/pairs": {
|
|
1995
1995
|
$get: {
|
|
1996
|
-
output:
|
|
1997
|
-
|
|
1998
|
-
|
|
1996
|
+
output: {
|
|
1997
|
+
data: {
|
|
1998
|
+
base: {
|
|
1999
|
+
address: `0x${string}`;
|
|
2000
|
+
currency?: string | undefined;
|
|
2001
|
+
decimals?: number | undefined;
|
|
2002
|
+
logoUri?: string | undefined;
|
|
2003
|
+
name?: string | undefined;
|
|
2004
|
+
symbol?: string | undefined;
|
|
2005
|
+
verified?: boolean | undefined;
|
|
2006
|
+
};
|
|
2007
|
+
blockNumber: number;
|
|
2008
|
+
id: `0x${string}`;
|
|
2009
|
+
key: `0x${string}`;
|
|
2010
|
+
liquidity?: string | undefined;
|
|
2011
|
+
quote: {
|
|
2012
|
+
address: `0x${string}`;
|
|
2013
|
+
currency?: string | undefined;
|
|
2014
|
+
decimals?: number | undefined;
|
|
2015
|
+
logoUri?: string | undefined;
|
|
2016
|
+
name?: string | undefined;
|
|
2017
|
+
symbol?: string | undefined;
|
|
2018
|
+
verified?: boolean | undefined;
|
|
2019
|
+
};
|
|
2020
|
+
timestamp: string;
|
|
2021
|
+
transactionHash: `0x${string}`;
|
|
2022
|
+
}[];
|
|
2023
|
+
meta?: {
|
|
2024
|
+
totalCountCapped: boolean;
|
|
2025
|
+
totalCount: number;
|
|
2026
|
+
} | undefined;
|
|
2027
|
+
nextCursor: string | null;
|
|
2028
|
+
};
|
|
2029
|
+
outputFormat: "json";
|
|
2030
|
+
status: 200;
|
|
1999
2031
|
input: {
|
|
2000
2032
|
query?: {
|
|
2001
2033
|
chainId?: string | string[];
|
|
@@ -2010,14 +2042,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2010
2042
|
} | {
|
|
2011
2043
|
output: {
|
|
2012
2044
|
error: {
|
|
2013
|
-
code: "
|
|
2045
|
+
code: "api_key_malformed";
|
|
2014
2046
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2015
2047
|
message: string;
|
|
2016
2048
|
};
|
|
2017
2049
|
requestId: string;
|
|
2018
2050
|
};
|
|
2019
2051
|
outputFormat: "json";
|
|
2020
|
-
status:
|
|
2052
|
+
status: 400;
|
|
2021
2053
|
input: {
|
|
2022
2054
|
query?: {
|
|
2023
2055
|
chainId?: string | string[];
|
|
@@ -2032,7 +2064,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2032
2064
|
} | {
|
|
2033
2065
|
output: {
|
|
2034
2066
|
error: {
|
|
2035
|
-
code: "
|
|
2067
|
+
code: "query_invalid";
|
|
2036
2068
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2037
2069
|
message: string;
|
|
2038
2070
|
};
|
|
@@ -2074,16 +2106,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2074
2106
|
} | undefined;
|
|
2075
2107
|
};
|
|
2076
2108
|
} | {
|
|
2077
|
-
output:
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2081
|
-
message: string;
|
|
2082
|
-
};
|
|
2083
|
-
requestId: string;
|
|
2084
|
-
};
|
|
2085
|
-
outputFormat: "json";
|
|
2086
|
-
status: 403;
|
|
2109
|
+
output: null;
|
|
2110
|
+
outputFormat: "body";
|
|
2111
|
+
status: 402;
|
|
2087
2112
|
input: {
|
|
2088
2113
|
query?: {
|
|
2089
2114
|
chainId?: string | string[];
|
|
@@ -2098,14 +2123,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2098
2123
|
} | {
|
|
2099
2124
|
output: {
|
|
2100
2125
|
error: {
|
|
2101
|
-
code: "
|
|
2126
|
+
code: "api_key_forbidden";
|
|
2102
2127
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2103
2128
|
message: string;
|
|
2104
2129
|
};
|
|
2105
2130
|
requestId: string;
|
|
2106
2131
|
};
|
|
2107
2132
|
outputFormat: "json";
|
|
2108
|
-
status:
|
|
2133
|
+
status: 403;
|
|
2109
2134
|
input: {
|
|
2110
2135
|
query?: {
|
|
2111
2136
|
chainId?: string | string[];
|
|
@@ -2120,14 +2145,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2120
2145
|
} | {
|
|
2121
2146
|
output: {
|
|
2122
2147
|
error: {
|
|
2123
|
-
code: "
|
|
2148
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2124
2149
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2125
2150
|
message: string;
|
|
2126
2151
|
};
|
|
2127
2152
|
requestId: string;
|
|
2128
2153
|
};
|
|
2129
2154
|
outputFormat: "json";
|
|
2130
|
-
status:
|
|
2155
|
+
status: 429;
|
|
2131
2156
|
input: {
|
|
2132
2157
|
query?: {
|
|
2133
2158
|
chainId?: string | string[];
|
|
@@ -2141,40 +2166,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2141
2166
|
};
|
|
2142
2167
|
} | {
|
|
2143
2168
|
output: {
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
name?: string | undefined;
|
|
2151
|
-
symbol?: string | undefined;
|
|
2152
|
-
verified?: boolean | undefined;
|
|
2153
|
-
};
|
|
2154
|
-
blockNumber: number;
|
|
2155
|
-
id: `0x${string}`;
|
|
2156
|
-
key: `0x${string}`;
|
|
2157
|
-
liquidity?: string | undefined;
|
|
2158
|
-
quote: {
|
|
2159
|
-
address: `0x${string}`;
|
|
2160
|
-
currency?: string | undefined;
|
|
2161
|
-
decimals?: number | undefined;
|
|
2162
|
-
logoUri?: string | undefined;
|
|
2163
|
-
name?: string | undefined;
|
|
2164
|
-
symbol?: string | undefined;
|
|
2165
|
-
verified?: boolean | undefined;
|
|
2166
|
-
};
|
|
2167
|
-
timestamp: string;
|
|
2168
|
-
transactionHash: `0x${string}`;
|
|
2169
|
-
}[];
|
|
2170
|
-
meta?: {
|
|
2171
|
-
totalCountCapped: boolean;
|
|
2172
|
-
totalCount: number;
|
|
2173
|
-
} | undefined;
|
|
2174
|
-
nextCursor: string | null;
|
|
2169
|
+
error: {
|
|
2170
|
+
code: "upstream_error";
|
|
2171
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2172
|
+
message: string;
|
|
2173
|
+
};
|
|
2174
|
+
requestId: string;
|
|
2175
2175
|
};
|
|
2176
2176
|
outputFormat: "json";
|
|
2177
|
-
status:
|
|
2177
|
+
status: 502;
|
|
2178
2178
|
input: {
|
|
2179
2179
|
query?: {
|
|
2180
2180
|
chainId?: string | string[];
|
|
@@ -2191,9 +2191,34 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2191
2191
|
} & {
|
|
2192
2192
|
"/v1/exchange/pairs/:base": {
|
|
2193
2193
|
$get: {
|
|
2194
|
-
output:
|
|
2195
|
-
|
|
2196
|
-
|
|
2194
|
+
output: {
|
|
2195
|
+
base: {
|
|
2196
|
+
address: `0x${string}`;
|
|
2197
|
+
currency?: string | undefined;
|
|
2198
|
+
decimals?: number | undefined;
|
|
2199
|
+
logoUri?: string | undefined;
|
|
2200
|
+
name?: string | undefined;
|
|
2201
|
+
symbol?: string | undefined;
|
|
2202
|
+
verified?: boolean | undefined;
|
|
2203
|
+
};
|
|
2204
|
+
blockNumber: number;
|
|
2205
|
+
id: `0x${string}`;
|
|
2206
|
+
key: `0x${string}`;
|
|
2207
|
+
liquidity?: string | undefined;
|
|
2208
|
+
quote: {
|
|
2209
|
+
address: `0x${string}`;
|
|
2210
|
+
currency?: string | undefined;
|
|
2211
|
+
decimals?: number | undefined;
|
|
2212
|
+
logoUri?: string | undefined;
|
|
2213
|
+
name?: string | undefined;
|
|
2214
|
+
symbol?: string | undefined;
|
|
2215
|
+
verified?: boolean | undefined;
|
|
2216
|
+
};
|
|
2217
|
+
timestamp: string;
|
|
2218
|
+
transactionHash: `0x${string}`;
|
|
2219
|
+
};
|
|
2220
|
+
outputFormat: "json";
|
|
2221
|
+
status: 200;
|
|
2197
2222
|
input: {
|
|
2198
2223
|
param: {
|
|
2199
2224
|
base: `0x${string}`;
|
|
@@ -2207,14 +2232,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2207
2232
|
} | {
|
|
2208
2233
|
output: {
|
|
2209
2234
|
error: {
|
|
2210
|
-
code: "
|
|
2235
|
+
code: "api_key_malformed";
|
|
2211
2236
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2212
2237
|
message: string;
|
|
2213
2238
|
};
|
|
2214
2239
|
requestId: string;
|
|
2215
2240
|
};
|
|
2216
2241
|
outputFormat: "json";
|
|
2217
|
-
status:
|
|
2242
|
+
status: 400;
|
|
2218
2243
|
input: {
|
|
2219
2244
|
param: {
|
|
2220
2245
|
base: `0x${string}`;
|
|
@@ -2228,7 +2253,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2228
2253
|
} | {
|
|
2229
2254
|
output: {
|
|
2230
2255
|
error: {
|
|
2231
|
-
code: "
|
|
2256
|
+
code: "query_invalid";
|
|
2232
2257
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2233
2258
|
message: string;
|
|
2234
2259
|
};
|
|
@@ -2249,14 +2274,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2249
2274
|
} | {
|
|
2250
2275
|
output: {
|
|
2251
2276
|
error: {
|
|
2252
|
-
code: "
|
|
2277
|
+
code: "pair_invalid";
|
|
2253
2278
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2254
2279
|
message: string;
|
|
2255
2280
|
};
|
|
2256
2281
|
requestId: string;
|
|
2257
2282
|
};
|
|
2258
2283
|
outputFormat: "json";
|
|
2259
|
-
status:
|
|
2284
|
+
status: 400;
|
|
2260
2285
|
input: {
|
|
2261
2286
|
param: {
|
|
2262
2287
|
base: `0x${string}`;
|
|
@@ -2270,14 +2295,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2270
2295
|
} | {
|
|
2271
2296
|
output: {
|
|
2272
2297
|
error: {
|
|
2273
|
-
code: "
|
|
2298
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2274
2299
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2275
2300
|
message: string;
|
|
2276
2301
|
};
|
|
2277
2302
|
requestId: string;
|
|
2278
2303
|
};
|
|
2279
2304
|
outputFormat: "json";
|
|
2280
|
-
status:
|
|
2305
|
+
status: 401;
|
|
2281
2306
|
input: {
|
|
2282
2307
|
param: {
|
|
2283
2308
|
base: `0x${string}`;
|
|
@@ -2289,16 +2314,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2289
2314
|
} | undefined;
|
|
2290
2315
|
};
|
|
2291
2316
|
} | {
|
|
2292
|
-
output:
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2296
|
-
message: string;
|
|
2297
|
-
};
|
|
2298
|
-
requestId: string;
|
|
2299
|
-
};
|
|
2300
|
-
outputFormat: "json";
|
|
2301
|
-
status: 429;
|
|
2317
|
+
output: null;
|
|
2318
|
+
outputFormat: "body";
|
|
2319
|
+
status: 402;
|
|
2302
2320
|
input: {
|
|
2303
2321
|
param: {
|
|
2304
2322
|
base: `0x${string}`;
|
|
@@ -2312,14 +2330,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2312
2330
|
} | {
|
|
2313
2331
|
output: {
|
|
2314
2332
|
error: {
|
|
2315
|
-
code: "
|
|
2333
|
+
code: "api_key_forbidden";
|
|
2316
2334
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2317
2335
|
message: string;
|
|
2318
2336
|
};
|
|
2319
2337
|
requestId: string;
|
|
2320
2338
|
};
|
|
2321
2339
|
outputFormat: "json";
|
|
2322
|
-
status:
|
|
2340
|
+
status: 403;
|
|
2323
2341
|
input: {
|
|
2324
2342
|
param: {
|
|
2325
2343
|
base: `0x${string}`;
|
|
@@ -2333,14 +2351,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2333
2351
|
} | {
|
|
2334
2352
|
output: {
|
|
2335
2353
|
error: {
|
|
2336
|
-
code: "
|
|
2354
|
+
code: "pair_not_found";
|
|
2337
2355
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2338
2356
|
message: string;
|
|
2339
2357
|
};
|
|
2340
2358
|
requestId: string;
|
|
2341
2359
|
};
|
|
2342
2360
|
outputFormat: "json";
|
|
2343
|
-
status:
|
|
2361
|
+
status: 404;
|
|
2344
2362
|
input: {
|
|
2345
2363
|
param: {
|
|
2346
2364
|
base: `0x${string}`;
|
|
@@ -2354,14 +2372,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2354
2372
|
} | {
|
|
2355
2373
|
output: {
|
|
2356
2374
|
error: {
|
|
2357
|
-
code: "
|
|
2375
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2358
2376
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2359
2377
|
message: string;
|
|
2360
2378
|
};
|
|
2361
2379
|
requestId: string;
|
|
2362
2380
|
};
|
|
2363
2381
|
outputFormat: "json";
|
|
2364
|
-
status:
|
|
2382
|
+
status: 429;
|
|
2365
2383
|
input: {
|
|
2366
2384
|
param: {
|
|
2367
2385
|
base: `0x${string}`;
|
|
@@ -2374,33 +2392,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2374
2392
|
};
|
|
2375
2393
|
} | {
|
|
2376
2394
|
output: {
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
logoUri?: string | undefined;
|
|
2382
|
-
name?: string | undefined;
|
|
2383
|
-
symbol?: string | undefined;
|
|
2384
|
-
verified?: boolean | undefined;
|
|
2385
|
-
};
|
|
2386
|
-
blockNumber: number;
|
|
2387
|
-
id: `0x${string}`;
|
|
2388
|
-
key: `0x${string}`;
|
|
2389
|
-
liquidity?: string | undefined;
|
|
2390
|
-
quote: {
|
|
2391
|
-
address: `0x${string}`;
|
|
2392
|
-
currency?: string | undefined;
|
|
2393
|
-
decimals?: number | undefined;
|
|
2394
|
-
logoUri?: string | undefined;
|
|
2395
|
-
name?: string | undefined;
|
|
2396
|
-
symbol?: string | undefined;
|
|
2397
|
-
verified?: boolean | undefined;
|
|
2395
|
+
error: {
|
|
2396
|
+
code: "upstream_error";
|
|
2397
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2398
|
+
message: string;
|
|
2398
2399
|
};
|
|
2399
|
-
|
|
2400
|
-
transactionHash: `0x${string}`;
|
|
2400
|
+
requestId: string;
|
|
2401
2401
|
};
|
|
2402
2402
|
outputFormat: "json";
|
|
2403
|
-
status:
|
|
2403
|
+
status: 502;
|
|
2404
2404
|
input: {
|
|
2405
2405
|
param: {
|
|
2406
2406
|
base: `0x${string}`;
|
|
@@ -2416,9 +2416,52 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2416
2416
|
} & {
|
|
2417
2417
|
"/v1/exchange/orders": {
|
|
2418
2418
|
$get: {
|
|
2419
|
-
output:
|
|
2420
|
-
|
|
2421
|
-
|
|
2419
|
+
output: {
|
|
2420
|
+
data: {
|
|
2421
|
+
amount: string;
|
|
2422
|
+
blockNumber: number;
|
|
2423
|
+
id: string;
|
|
2424
|
+
logIndex: number;
|
|
2425
|
+
maker: `0x${string}`;
|
|
2426
|
+
orderId: string;
|
|
2427
|
+
placedAt: string;
|
|
2428
|
+
price: string;
|
|
2429
|
+
rate: string;
|
|
2430
|
+
remaining: string;
|
|
2431
|
+
side: "ask" | "bid";
|
|
2432
|
+
tick: number;
|
|
2433
|
+
transactionHash: `0x${string}`;
|
|
2434
|
+
pair: {
|
|
2435
|
+
base: {
|
|
2436
|
+
address: `0x${string}`;
|
|
2437
|
+
currency?: string | undefined;
|
|
2438
|
+
decimals?: number | undefined;
|
|
2439
|
+
logoUri?: string | undefined;
|
|
2440
|
+
name?: string | undefined;
|
|
2441
|
+
symbol?: string | undefined;
|
|
2442
|
+
verified?: boolean | undefined;
|
|
2443
|
+
};
|
|
2444
|
+
key: `0x${string}`;
|
|
2445
|
+
quote: {
|
|
2446
|
+
address: `0x${string}`;
|
|
2447
|
+
currency?: string | undefined;
|
|
2448
|
+
decimals?: number | undefined;
|
|
2449
|
+
logoUri?: string | undefined;
|
|
2450
|
+
name?: string | undefined;
|
|
2451
|
+
symbol?: string | undefined;
|
|
2452
|
+
verified?: boolean | undefined;
|
|
2453
|
+
};
|
|
2454
|
+
};
|
|
2455
|
+
}[];
|
|
2456
|
+
meta?: {
|
|
2457
|
+
totalCountCapped: boolean;
|
|
2458
|
+
totalCount: number;
|
|
2459
|
+
} | undefined;
|
|
2460
|
+
nextCursor: string | null;
|
|
2461
|
+
truncated: boolean;
|
|
2462
|
+
};
|
|
2463
|
+
outputFormat: "json";
|
|
2464
|
+
status: 200;
|
|
2422
2465
|
input: {
|
|
2423
2466
|
query?: {
|
|
2424
2467
|
base?: string | string[];
|
|
@@ -2436,14 +2479,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2436
2479
|
} | {
|
|
2437
2480
|
output: {
|
|
2438
2481
|
error: {
|
|
2439
|
-
code: "
|
|
2482
|
+
code: "api_key_malformed";
|
|
2440
2483
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2441
2484
|
message: string;
|
|
2442
2485
|
};
|
|
2443
2486
|
requestId: string;
|
|
2444
2487
|
};
|
|
2445
2488
|
outputFormat: "json";
|
|
2446
|
-
status:
|
|
2489
|
+
status: 400;
|
|
2447
2490
|
input: {
|
|
2448
2491
|
query?: {
|
|
2449
2492
|
base?: string | string[];
|
|
@@ -2461,7 +2504,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2461
2504
|
} | {
|
|
2462
2505
|
output: {
|
|
2463
2506
|
error: {
|
|
2464
|
-
code: "
|
|
2507
|
+
code: "query_invalid";
|
|
2465
2508
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2466
2509
|
message: string;
|
|
2467
2510
|
};
|
|
@@ -2509,16 +2552,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2509
2552
|
} | undefined;
|
|
2510
2553
|
};
|
|
2511
2554
|
} | {
|
|
2512
|
-
output:
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2516
|
-
message: string;
|
|
2517
|
-
};
|
|
2518
|
-
requestId: string;
|
|
2519
|
-
};
|
|
2520
|
-
outputFormat: "json";
|
|
2521
|
-
status: 403;
|
|
2555
|
+
output: null;
|
|
2556
|
+
outputFormat: "body";
|
|
2557
|
+
status: 402;
|
|
2522
2558
|
input: {
|
|
2523
2559
|
query?: {
|
|
2524
2560
|
base?: string | string[];
|
|
@@ -2536,14 +2572,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2536
2572
|
} | {
|
|
2537
2573
|
output: {
|
|
2538
2574
|
error: {
|
|
2539
|
-
code: "
|
|
2575
|
+
code: "api_key_forbidden";
|
|
2540
2576
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2541
2577
|
message: string;
|
|
2542
2578
|
};
|
|
2543
2579
|
requestId: string;
|
|
2544
2580
|
};
|
|
2545
2581
|
outputFormat: "json";
|
|
2546
|
-
status:
|
|
2582
|
+
status: 403;
|
|
2547
2583
|
input: {
|
|
2548
2584
|
query?: {
|
|
2549
2585
|
base?: string | string[];
|
|
@@ -2561,14 +2597,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2561
2597
|
} | {
|
|
2562
2598
|
output: {
|
|
2563
2599
|
error: {
|
|
2564
|
-
code: "
|
|
2600
|
+
code: "pair_not_found";
|
|
2565
2601
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2566
2602
|
message: string;
|
|
2567
2603
|
};
|
|
2568
2604
|
requestId: string;
|
|
2569
2605
|
};
|
|
2570
2606
|
outputFormat: "json";
|
|
2571
|
-
status:
|
|
2607
|
+
status: 404;
|
|
2572
2608
|
input: {
|
|
2573
2609
|
query?: {
|
|
2574
2610
|
base?: string | string[];
|
|
@@ -2586,14 +2622,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2586
2622
|
} | {
|
|
2587
2623
|
output: {
|
|
2588
2624
|
error: {
|
|
2589
|
-
code: "
|
|
2625
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2590
2626
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2591
2627
|
message: string;
|
|
2592
2628
|
};
|
|
2593
2629
|
requestId: string;
|
|
2594
2630
|
};
|
|
2595
2631
|
outputFormat: "json";
|
|
2596
|
-
status:
|
|
2632
|
+
status: 429;
|
|
2597
2633
|
input: {
|
|
2598
2634
|
query?: {
|
|
2599
2635
|
base?: string | string[];
|
|
@@ -2610,51 +2646,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2610
2646
|
};
|
|
2611
2647
|
} | {
|
|
2612
2648
|
output: {
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
orderId: string;
|
|
2620
|
-
placedAt: string;
|
|
2621
|
-
price: string;
|
|
2622
|
-
rate: string;
|
|
2623
|
-
remaining: string;
|
|
2624
|
-
side: "ask" | "bid";
|
|
2625
|
-
tick: number;
|
|
2626
|
-
transactionHash: `0x${string}`;
|
|
2627
|
-
pair: {
|
|
2628
|
-
base: {
|
|
2629
|
-
address: `0x${string}`;
|
|
2630
|
-
currency?: string | undefined;
|
|
2631
|
-
decimals?: number | undefined;
|
|
2632
|
-
logoUri?: string | undefined;
|
|
2633
|
-
name?: string | undefined;
|
|
2634
|
-
symbol?: string | undefined;
|
|
2635
|
-
verified?: boolean | undefined;
|
|
2636
|
-
};
|
|
2637
|
-
key: `0x${string}`;
|
|
2638
|
-
quote: {
|
|
2639
|
-
address: `0x${string}`;
|
|
2640
|
-
currency?: string | undefined;
|
|
2641
|
-
decimals?: number | undefined;
|
|
2642
|
-
logoUri?: string | undefined;
|
|
2643
|
-
name?: string | undefined;
|
|
2644
|
-
symbol?: string | undefined;
|
|
2645
|
-
verified?: boolean | undefined;
|
|
2646
|
-
};
|
|
2647
|
-
};
|
|
2648
|
-
}[];
|
|
2649
|
-
meta?: {
|
|
2650
|
-
totalCountCapped: boolean;
|
|
2651
|
-
totalCount: number;
|
|
2652
|
-
} | undefined;
|
|
2653
|
-
nextCursor: string | null;
|
|
2654
|
-
truncated: boolean;
|
|
2649
|
+
error: {
|
|
2650
|
+
code: "upstream_error";
|
|
2651
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2652
|
+
message: string;
|
|
2653
|
+
};
|
|
2654
|
+
requestId: string;
|
|
2655
2655
|
};
|
|
2656
2656
|
outputFormat: "json";
|
|
2657
|
-
status:
|
|
2657
|
+
status: 502;
|
|
2658
2658
|
input: {
|
|
2659
2659
|
query?: {
|
|
2660
2660
|
base?: string | string[];
|
|
@@ -2674,9 +2674,43 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2674
2674
|
} & {
|
|
2675
2675
|
"/v1/exchange/orders/:orderId": {
|
|
2676
2676
|
$get: {
|
|
2677
|
-
output:
|
|
2678
|
-
|
|
2679
|
-
|
|
2677
|
+
output: {
|
|
2678
|
+
amount: string;
|
|
2679
|
+
flipTick: number;
|
|
2680
|
+
id: string;
|
|
2681
|
+
isBid: boolean;
|
|
2682
|
+
isFlipOrder: boolean;
|
|
2683
|
+
maker: `0x${string}`;
|
|
2684
|
+
mode: "exactDestination" | "exactSource";
|
|
2685
|
+
orderId: string;
|
|
2686
|
+
pair: {
|
|
2687
|
+
base: {
|
|
2688
|
+
address: `0x${string}`;
|
|
2689
|
+
currency?: string | undefined;
|
|
2690
|
+
decimals?: number | undefined;
|
|
2691
|
+
logoUri?: string | undefined;
|
|
2692
|
+
name?: string | undefined;
|
|
2693
|
+
symbol?: string | undefined;
|
|
2694
|
+
verified?: boolean | undefined;
|
|
2695
|
+
};
|
|
2696
|
+
key: `0x${string}`;
|
|
2697
|
+
quote: {
|
|
2698
|
+
address: `0x${string}`;
|
|
2699
|
+
currency?: string | undefined;
|
|
2700
|
+
decimals?: number | undefined;
|
|
2701
|
+
logoUri?: string | undefined;
|
|
2702
|
+
name?: string | undefined;
|
|
2703
|
+
symbol?: string | undefined;
|
|
2704
|
+
verified?: boolean | undefined;
|
|
2705
|
+
};
|
|
2706
|
+
};
|
|
2707
|
+
price: string;
|
|
2708
|
+
rate: string;
|
|
2709
|
+
remaining: string;
|
|
2710
|
+
tick: number;
|
|
2711
|
+
};
|
|
2712
|
+
outputFormat: "json";
|
|
2713
|
+
status: 200;
|
|
2680
2714
|
input: {
|
|
2681
2715
|
param: {
|
|
2682
2716
|
orderId: string;
|
|
@@ -2690,14 +2724,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2690
2724
|
} | {
|
|
2691
2725
|
output: {
|
|
2692
2726
|
error: {
|
|
2693
|
-
code: "
|
|
2727
|
+
code: "api_key_malformed";
|
|
2694
2728
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2695
2729
|
message: string;
|
|
2696
2730
|
};
|
|
2697
2731
|
requestId: string;
|
|
2698
2732
|
};
|
|
2699
2733
|
outputFormat: "json";
|
|
2700
|
-
status:
|
|
2734
|
+
status: 400;
|
|
2701
2735
|
input: {
|
|
2702
2736
|
param: {
|
|
2703
2737
|
orderId: string;
|
|
@@ -2711,7 +2745,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2711
2745
|
} | {
|
|
2712
2746
|
output: {
|
|
2713
2747
|
error: {
|
|
2714
|
-
code: "
|
|
2748
|
+
code: "query_invalid";
|
|
2715
2749
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2716
2750
|
message: string;
|
|
2717
2751
|
};
|
|
@@ -2732,14 +2766,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2732
2766
|
} | {
|
|
2733
2767
|
output: {
|
|
2734
2768
|
error: {
|
|
2735
|
-
code: "
|
|
2769
|
+
code: "order_invalid";
|
|
2736
2770
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2737
2771
|
message: string;
|
|
2738
2772
|
};
|
|
2739
2773
|
requestId: string;
|
|
2740
2774
|
};
|
|
2741
2775
|
outputFormat: "json";
|
|
2742
|
-
status:
|
|
2776
|
+
status: 400;
|
|
2743
2777
|
input: {
|
|
2744
2778
|
param: {
|
|
2745
2779
|
orderId: string;
|
|
@@ -2753,14 +2787,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2753
2787
|
} | {
|
|
2754
2788
|
output: {
|
|
2755
2789
|
error: {
|
|
2756
|
-
code: "
|
|
2790
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2757
2791
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2758
2792
|
message: string;
|
|
2759
2793
|
};
|
|
2760
2794
|
requestId: string;
|
|
2761
2795
|
};
|
|
2762
2796
|
outputFormat: "json";
|
|
2763
|
-
status:
|
|
2797
|
+
status: 401;
|
|
2764
2798
|
input: {
|
|
2765
2799
|
param: {
|
|
2766
2800
|
orderId: string;
|
|
@@ -2772,16 +2806,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2772
2806
|
} | undefined;
|
|
2773
2807
|
};
|
|
2774
2808
|
} | {
|
|
2775
|
-
output:
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2779
|
-
message: string;
|
|
2780
|
-
};
|
|
2781
|
-
requestId: string;
|
|
2782
|
-
};
|
|
2783
|
-
outputFormat: "json";
|
|
2784
|
-
status: 429;
|
|
2809
|
+
output: null;
|
|
2810
|
+
outputFormat: "body";
|
|
2811
|
+
status: 402;
|
|
2785
2812
|
input: {
|
|
2786
2813
|
param: {
|
|
2787
2814
|
orderId: string;
|
|
@@ -2795,14 +2822,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2795
2822
|
} | {
|
|
2796
2823
|
output: {
|
|
2797
2824
|
error: {
|
|
2798
|
-
code: "
|
|
2825
|
+
code: "api_key_forbidden";
|
|
2799
2826
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2800
2827
|
message: string;
|
|
2801
2828
|
};
|
|
2802
2829
|
requestId: string;
|
|
2803
2830
|
};
|
|
2804
2831
|
outputFormat: "json";
|
|
2805
|
-
status:
|
|
2832
|
+
status: 403;
|
|
2806
2833
|
input: {
|
|
2807
2834
|
param: {
|
|
2808
2835
|
orderId: string;
|
|
@@ -2816,14 +2843,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2816
2843
|
} | {
|
|
2817
2844
|
output: {
|
|
2818
2845
|
error: {
|
|
2819
|
-
code: "
|
|
2846
|
+
code: "order_not_found";
|
|
2820
2847
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2821
2848
|
message: string;
|
|
2822
2849
|
};
|
|
2823
2850
|
requestId: string;
|
|
2824
2851
|
};
|
|
2825
2852
|
outputFormat: "json";
|
|
2826
|
-
status:
|
|
2853
|
+
status: 404;
|
|
2827
2854
|
input: {
|
|
2828
2855
|
param: {
|
|
2829
2856
|
orderId: string;
|
|
@@ -2837,14 +2864,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2837
2864
|
} | {
|
|
2838
2865
|
output: {
|
|
2839
2866
|
error: {
|
|
2840
|
-
code: "
|
|
2867
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2841
2868
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2842
2869
|
message: string;
|
|
2843
2870
|
};
|
|
2844
2871
|
requestId: string;
|
|
2845
2872
|
};
|
|
2846
2873
|
outputFormat: "json";
|
|
2847
|
-
status:
|
|
2874
|
+
status: 429;
|
|
2848
2875
|
input: {
|
|
2849
2876
|
param: {
|
|
2850
2877
|
orderId: string;
|
|
@@ -2857,42 +2884,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2857
2884
|
};
|
|
2858
2885
|
} | {
|
|
2859
2886
|
output: {
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
isFlipOrder: boolean;
|
|
2865
|
-
maker: `0x${string}`;
|
|
2866
|
-
mode: "exactDestination" | "exactSource";
|
|
2867
|
-
orderId: string;
|
|
2868
|
-
pair: {
|
|
2869
|
-
base: {
|
|
2870
|
-
address: `0x${string}`;
|
|
2871
|
-
currency?: string | undefined;
|
|
2872
|
-
decimals?: number | undefined;
|
|
2873
|
-
logoUri?: string | undefined;
|
|
2874
|
-
name?: string | undefined;
|
|
2875
|
-
symbol?: string | undefined;
|
|
2876
|
-
verified?: boolean | undefined;
|
|
2877
|
-
};
|
|
2878
|
-
key: `0x${string}`;
|
|
2879
|
-
quote: {
|
|
2880
|
-
address: `0x${string}`;
|
|
2881
|
-
currency?: string | undefined;
|
|
2882
|
-
decimals?: number | undefined;
|
|
2883
|
-
logoUri?: string | undefined;
|
|
2884
|
-
name?: string | undefined;
|
|
2885
|
-
symbol?: string | undefined;
|
|
2886
|
-
verified?: boolean | undefined;
|
|
2887
|
-
};
|
|
2887
|
+
error: {
|
|
2888
|
+
code: "upstream_error";
|
|
2889
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2890
|
+
message: string;
|
|
2888
2891
|
};
|
|
2889
|
-
|
|
2890
|
-
rate: string;
|
|
2891
|
-
remaining: string;
|
|
2892
|
-
tick: number;
|
|
2892
|
+
requestId: string;
|
|
2893
2893
|
};
|
|
2894
2894
|
outputFormat: "json";
|
|
2895
|
-
status:
|
|
2895
|
+
status: 502;
|
|
2896
2896
|
input: {
|
|
2897
2897
|
param: {
|
|
2898
2898
|
orderId: string;
|
|
@@ -2908,9 +2908,26 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2908
2908
|
} & {
|
|
2909
2909
|
"/v1/exchange/orders/:orderId/fills": {
|
|
2910
2910
|
$get: {
|
|
2911
|
-
output:
|
|
2912
|
-
|
|
2913
|
-
|
|
2911
|
+
output: {
|
|
2912
|
+
data: {
|
|
2913
|
+
amountFilled: string;
|
|
2914
|
+
blockNumber: number;
|
|
2915
|
+
filledAt: string;
|
|
2916
|
+
id: string;
|
|
2917
|
+
logIndex: number;
|
|
2918
|
+
orderId: string;
|
|
2919
|
+
partialFill: boolean;
|
|
2920
|
+
taker: `0x${string}`;
|
|
2921
|
+
transactionHash: `0x${string}`;
|
|
2922
|
+
}[];
|
|
2923
|
+
meta?: {
|
|
2924
|
+
totalCountCapped: boolean;
|
|
2925
|
+
totalCount: number;
|
|
2926
|
+
} | undefined;
|
|
2927
|
+
nextCursor: string | null;
|
|
2928
|
+
};
|
|
2929
|
+
outputFormat: "json";
|
|
2930
|
+
status: 200;
|
|
2914
2931
|
input: {
|
|
2915
2932
|
param: {
|
|
2916
2933
|
orderId: string;
|
|
@@ -2928,14 +2945,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2928
2945
|
} | {
|
|
2929
2946
|
output: {
|
|
2930
2947
|
error: {
|
|
2931
|
-
code: "
|
|
2948
|
+
code: "api_key_malformed";
|
|
2932
2949
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2933
2950
|
message: string;
|
|
2934
2951
|
};
|
|
2935
2952
|
requestId: string;
|
|
2936
2953
|
};
|
|
2937
2954
|
outputFormat: "json";
|
|
2938
|
-
status:
|
|
2955
|
+
status: 400;
|
|
2939
2956
|
input: {
|
|
2940
2957
|
param: {
|
|
2941
2958
|
orderId: string;
|
|
@@ -2953,7 +2970,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2953
2970
|
} | {
|
|
2954
2971
|
output: {
|
|
2955
2972
|
error: {
|
|
2956
|
-
code: "
|
|
2973
|
+
code: "query_invalid";
|
|
2957
2974
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2958
2975
|
message: string;
|
|
2959
2976
|
};
|
|
@@ -2978,14 +2995,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
2978
2995
|
} | {
|
|
2979
2996
|
output: {
|
|
2980
2997
|
error: {
|
|
2981
|
-
code: "
|
|
2998
|
+
code: "order_invalid";
|
|
2982
2999
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2983
3000
|
message: string;
|
|
2984
3001
|
};
|
|
2985
3002
|
requestId: string;
|
|
2986
3003
|
};
|
|
2987
3004
|
outputFormat: "json";
|
|
2988
|
-
status:
|
|
3005
|
+
status: 400;
|
|
2989
3006
|
input: {
|
|
2990
3007
|
param: {
|
|
2991
3008
|
orderId: string;
|
|
@@ -3003,14 +3020,32 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3003
3020
|
} | {
|
|
3004
3021
|
output: {
|
|
3005
3022
|
error: {
|
|
3006
|
-
code: "
|
|
3023
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
3007
3024
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3008
3025
|
message: string;
|
|
3009
3026
|
};
|
|
3010
3027
|
requestId: string;
|
|
3011
3028
|
};
|
|
3012
3029
|
outputFormat: "json";
|
|
3013
|
-
status:
|
|
3030
|
+
status: 401;
|
|
3031
|
+
input: {
|
|
3032
|
+
param: {
|
|
3033
|
+
orderId: string;
|
|
3034
|
+
};
|
|
3035
|
+
} & {
|
|
3036
|
+
query?: {
|
|
3037
|
+
chainId?: string | string[];
|
|
3038
|
+
cursor?: string | string[];
|
|
3039
|
+
include?: string | string[];
|
|
3040
|
+
limit?: string | string[];
|
|
3041
|
+
order?: string | string[];
|
|
3042
|
+
page?: string | string[];
|
|
3043
|
+
} | undefined;
|
|
3044
|
+
};
|
|
3045
|
+
} | {
|
|
3046
|
+
output: null;
|
|
3047
|
+
outputFormat: "body";
|
|
3048
|
+
status: 402;
|
|
3014
3049
|
input: {
|
|
3015
3050
|
param: {
|
|
3016
3051
|
orderId: string;
|
|
@@ -3028,14 +3063,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3028
3063
|
} | {
|
|
3029
3064
|
output: {
|
|
3030
3065
|
error: {
|
|
3031
|
-
code: "
|
|
3066
|
+
code: "api_key_forbidden";
|
|
3032
3067
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3033
3068
|
message: string;
|
|
3034
3069
|
};
|
|
3035
3070
|
requestId: string;
|
|
3036
3071
|
};
|
|
3037
3072
|
outputFormat: "json";
|
|
3038
|
-
status:
|
|
3073
|
+
status: 403;
|
|
3039
3074
|
input: {
|
|
3040
3075
|
param: {
|
|
3041
3076
|
orderId: string;
|
|
@@ -3053,14 +3088,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3053
3088
|
} | {
|
|
3054
3089
|
output: {
|
|
3055
3090
|
error: {
|
|
3056
|
-
code: "
|
|
3091
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
3057
3092
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3058
3093
|
message: string;
|
|
3059
3094
|
};
|
|
3060
3095
|
requestId: string;
|
|
3061
3096
|
};
|
|
3062
3097
|
outputFormat: "json";
|
|
3063
|
-
status:
|
|
3098
|
+
status: 429;
|
|
3064
3099
|
input: {
|
|
3065
3100
|
param: {
|
|
3066
3101
|
orderId: string;
|
|
@@ -3078,14 +3113,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3078
3113
|
} | {
|
|
3079
3114
|
output: {
|
|
3080
3115
|
error: {
|
|
3081
|
-
code: "
|
|
3116
|
+
code: "upstream_error";
|
|
3082
3117
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3083
3118
|
message: string;
|
|
3084
3119
|
};
|
|
3085
3120
|
requestId: string;
|
|
3086
3121
|
};
|
|
3087
3122
|
outputFormat: "json";
|
|
3088
|
-
status:
|
|
3123
|
+
status: 502;
|
|
3089
3124
|
input: {
|
|
3090
3125
|
param: {
|
|
3091
3126
|
orderId: string;
|
|
@@ -3100,49 +3135,72 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3100
3135
|
page?: string | string[];
|
|
3101
3136
|
} | undefined;
|
|
3102
3137
|
};
|
|
3103
|
-
}
|
|
3138
|
+
};
|
|
3139
|
+
};
|
|
3140
|
+
} & {
|
|
3141
|
+
"/v1/exchange/pairs/:base/ohlc": {
|
|
3142
|
+
$get: {
|
|
3104
3143
|
output: {
|
|
3144
|
+
base: {
|
|
3145
|
+
address: `0x${string}`;
|
|
3146
|
+
currency?: string | undefined;
|
|
3147
|
+
decimals?: number | undefined;
|
|
3148
|
+
logoUri?: string | undefined;
|
|
3149
|
+
name?: string | undefined;
|
|
3150
|
+
symbol?: string | undefined;
|
|
3151
|
+
verified?: boolean | undefined;
|
|
3152
|
+
};
|
|
3105
3153
|
data: {
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3154
|
+
close: string;
|
|
3155
|
+
fillCount: number;
|
|
3156
|
+
high: string;
|
|
3109
3157
|
id: string;
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3158
|
+
low: string;
|
|
3159
|
+
open: string;
|
|
3160
|
+
timestamp: string;
|
|
3161
|
+
volume: {
|
|
3162
|
+
base: string;
|
|
3163
|
+
quote: string;
|
|
3164
|
+
};
|
|
3115
3165
|
}[];
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3166
|
+
interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
|
|
3167
|
+
quote: {
|
|
3168
|
+
address: `0x${string}`;
|
|
3169
|
+
currency?: string | undefined;
|
|
3170
|
+
decimals?: number | undefined;
|
|
3171
|
+
logoUri?: string | undefined;
|
|
3172
|
+
name?: string | undefined;
|
|
3173
|
+
symbol?: string | undefined;
|
|
3174
|
+
verified?: boolean | undefined;
|
|
3175
|
+
};
|
|
3176
|
+
truncated: boolean;
|
|
3177
|
+
window: "1h" | "24h" | "30d" | "7d";
|
|
3121
3178
|
};
|
|
3122
3179
|
outputFormat: "json";
|
|
3123
3180
|
status: 200;
|
|
3124
3181
|
input: {
|
|
3125
3182
|
param: {
|
|
3126
|
-
|
|
3183
|
+
base: `0x${string}`;
|
|
3127
3184
|
};
|
|
3128
3185
|
} & {
|
|
3129
3186
|
query?: {
|
|
3130
3187
|
chainId?: string | string[];
|
|
3131
|
-
cursor?: string | string[];
|
|
3132
3188
|
include?: string | string[];
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
page?: string | string[];
|
|
3189
|
+
interval?: string | string[];
|
|
3190
|
+
window?: string | string[];
|
|
3136
3191
|
} | undefined;
|
|
3137
3192
|
};
|
|
3138
|
-
}
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3193
|
+
} | {
|
|
3194
|
+
output: {
|
|
3195
|
+
error: {
|
|
3196
|
+
code: "api_key_malformed";
|
|
3197
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
3198
|
+
message: string;
|
|
3199
|
+
};
|
|
3200
|
+
requestId: string;
|
|
3201
|
+
};
|
|
3202
|
+
outputFormat: "json";
|
|
3203
|
+
status: 400;
|
|
3146
3204
|
input: {
|
|
3147
3205
|
param: {
|
|
3148
3206
|
base: `0x${string}`;
|
|
@@ -3158,14 +3216,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3158
3216
|
} | {
|
|
3159
3217
|
output: {
|
|
3160
3218
|
error: {
|
|
3161
|
-
code: "
|
|
3219
|
+
code: "query_invalid";
|
|
3162
3220
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3163
3221
|
message: string;
|
|
3164
3222
|
};
|
|
3165
3223
|
requestId: string;
|
|
3166
3224
|
};
|
|
3167
3225
|
outputFormat: "json";
|
|
3168
|
-
status:
|
|
3226
|
+
status: 400;
|
|
3169
3227
|
input: {
|
|
3170
3228
|
param: {
|
|
3171
3229
|
base: `0x${string}`;
|
|
@@ -3181,7 +3239,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3181
3239
|
} | {
|
|
3182
3240
|
output: {
|
|
3183
3241
|
error: {
|
|
3184
|
-
code: "
|
|
3242
|
+
code: "pair_invalid";
|
|
3185
3243
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3186
3244
|
message: string;
|
|
3187
3245
|
};
|
|
@@ -3225,16 +3283,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3225
3283
|
} | undefined;
|
|
3226
3284
|
};
|
|
3227
3285
|
} | {
|
|
3228
|
-
output:
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
3232
|
-
message: string;
|
|
3233
|
-
};
|
|
3234
|
-
requestId: string;
|
|
3235
|
-
};
|
|
3236
|
-
outputFormat: "json";
|
|
3237
|
-
status: 403;
|
|
3286
|
+
output: null;
|
|
3287
|
+
outputFormat: "body";
|
|
3288
|
+
status: 402;
|
|
3238
3289
|
input: {
|
|
3239
3290
|
param: {
|
|
3240
3291
|
base: `0x${string}`;
|
|
@@ -3250,14 +3301,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3250
3301
|
} | {
|
|
3251
3302
|
output: {
|
|
3252
3303
|
error: {
|
|
3253
|
-
code: "
|
|
3304
|
+
code: "api_key_forbidden";
|
|
3254
3305
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3255
3306
|
message: string;
|
|
3256
3307
|
};
|
|
3257
3308
|
requestId: string;
|
|
3258
3309
|
};
|
|
3259
3310
|
outputFormat: "json";
|
|
3260
|
-
status:
|
|
3311
|
+
status: 403;
|
|
3261
3312
|
input: {
|
|
3262
3313
|
param: {
|
|
3263
3314
|
base: `0x${string}`;
|
|
@@ -3273,14 +3324,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3273
3324
|
} | {
|
|
3274
3325
|
output: {
|
|
3275
3326
|
error: {
|
|
3276
|
-
code: "
|
|
3327
|
+
code: "pair_not_found";
|
|
3277
3328
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3278
3329
|
message: string;
|
|
3279
3330
|
};
|
|
3280
3331
|
requestId: string;
|
|
3281
3332
|
};
|
|
3282
3333
|
outputFormat: "json";
|
|
3283
|
-
status:
|
|
3334
|
+
status: 404;
|
|
3284
3335
|
input: {
|
|
3285
3336
|
param: {
|
|
3286
3337
|
base: `0x${string}`;
|
|
@@ -3296,14 +3347,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3296
3347
|
} | {
|
|
3297
3348
|
output: {
|
|
3298
3349
|
error: {
|
|
3299
|
-
code: "
|
|
3350
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
3300
3351
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3301
3352
|
message: string;
|
|
3302
3353
|
};
|
|
3303
3354
|
requestId: string;
|
|
3304
3355
|
};
|
|
3305
3356
|
outputFormat: "json";
|
|
3306
|
-
status:
|
|
3357
|
+
status: 429;
|
|
3307
3358
|
input: {
|
|
3308
3359
|
param: {
|
|
3309
3360
|
base: `0x${string}`;
|
|
@@ -3319,14 +3370,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3319
3370
|
} | {
|
|
3320
3371
|
output: {
|
|
3321
3372
|
error: {
|
|
3322
|
-
code: "
|
|
3373
|
+
code: "upstream_error";
|
|
3323
3374
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3324
3375
|
message: string;
|
|
3325
3376
|
};
|
|
3326
3377
|
requestId: string;
|
|
3327
3378
|
};
|
|
3328
3379
|
outputFormat: "json";
|
|
3329
|
-
status:
|
|
3380
|
+
status: 502;
|
|
3330
3381
|
input: {
|
|
3331
3382
|
param: {
|
|
3332
3383
|
base: `0x${string}`;
|
|
@@ -3339,8 +3390,19 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3339
3390
|
window?: string | string[];
|
|
3340
3391
|
} | undefined;
|
|
3341
3392
|
};
|
|
3342
|
-
}
|
|
3393
|
+
};
|
|
3394
|
+
};
|
|
3395
|
+
} & {
|
|
3396
|
+
"/v1/exchange/pairs/:base/depth": {
|
|
3397
|
+
$get: {
|
|
3343
3398
|
output: {
|
|
3399
|
+
asks: {
|
|
3400
|
+
cumulativeSize: string;
|
|
3401
|
+
id: string;
|
|
3402
|
+
price: string;
|
|
3403
|
+
size: string;
|
|
3404
|
+
tick: number;
|
|
3405
|
+
}[];
|
|
3344
3406
|
base: {
|
|
3345
3407
|
address: `0x${string}`;
|
|
3346
3408
|
currency?: string | undefined;
|
|
@@ -3350,20 +3412,13 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3350
3412
|
symbol?: string | undefined;
|
|
3351
3413
|
verified?: boolean | undefined;
|
|
3352
3414
|
};
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
fillCount: number;
|
|
3356
|
-
high: string;
|
|
3415
|
+
bids: {
|
|
3416
|
+
cumulativeSize: string;
|
|
3357
3417
|
id: string;
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
volume: {
|
|
3362
|
-
base: string;
|
|
3363
|
-
quote: string;
|
|
3364
|
-
};
|
|
3418
|
+
price: string;
|
|
3419
|
+
size: string;
|
|
3420
|
+
tick: number;
|
|
3365
3421
|
}[];
|
|
3366
|
-
interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
|
|
3367
3422
|
quote: {
|
|
3368
3423
|
address: `0x${string}`;
|
|
3369
3424
|
currency?: string | undefined;
|
|
@@ -3373,31 +3428,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3373
3428
|
symbol?: string | undefined;
|
|
3374
3429
|
verified?: boolean | undefined;
|
|
3375
3430
|
};
|
|
3376
|
-
truncated: boolean;
|
|
3377
|
-
window: "1h" | "24h" | "30d" | "7d";
|
|
3378
3431
|
};
|
|
3379
3432
|
outputFormat: "json";
|
|
3380
3433
|
status: 200;
|
|
3381
|
-
input: {
|
|
3382
|
-
param: {
|
|
3383
|
-
base: `0x${string}`;
|
|
3384
|
-
};
|
|
3385
|
-
} & {
|
|
3386
|
-
query?: {
|
|
3387
|
-
chainId?: string | string[];
|
|
3388
|
-
include?: string | string[];
|
|
3389
|
-
interval?: string | string[];
|
|
3390
|
-
window?: string | string[];
|
|
3391
|
-
} | undefined;
|
|
3392
|
-
};
|
|
3393
|
-
};
|
|
3394
|
-
};
|
|
3395
|
-
} & {
|
|
3396
|
-
"/v1/exchange/pairs/:base/depth": {
|
|
3397
|
-
$get: {
|
|
3398
|
-
output: null;
|
|
3399
|
-
outputFormat: "body";
|
|
3400
|
-
status: 402;
|
|
3401
3434
|
input: {
|
|
3402
3435
|
param: {
|
|
3403
3436
|
base: `0x${string}`;
|
|
@@ -3412,14 +3445,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3412
3445
|
} | {
|
|
3413
3446
|
output: {
|
|
3414
3447
|
error: {
|
|
3415
|
-
code: "
|
|
3448
|
+
code: "api_key_malformed";
|
|
3416
3449
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3417
3450
|
message: string;
|
|
3418
3451
|
};
|
|
3419
3452
|
requestId: string;
|
|
3420
3453
|
};
|
|
3421
3454
|
outputFormat: "json";
|
|
3422
|
-
status:
|
|
3455
|
+
status: 400;
|
|
3423
3456
|
input: {
|
|
3424
3457
|
param: {
|
|
3425
3458
|
base: `0x${string}`;
|
|
@@ -3434,7 +3467,7 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3434
3467
|
} | {
|
|
3435
3468
|
output: {
|
|
3436
3469
|
error: {
|
|
3437
|
-
code: "
|
|
3470
|
+
code: "query_invalid";
|
|
3438
3471
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3439
3472
|
message: string;
|
|
3440
3473
|
};
|
|
@@ -3456,14 +3489,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3456
3489
|
} | {
|
|
3457
3490
|
output: {
|
|
3458
3491
|
error: {
|
|
3459
|
-
code: "
|
|
3492
|
+
code: "pair_invalid";
|
|
3460
3493
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3461
3494
|
message: string;
|
|
3462
3495
|
};
|
|
3463
3496
|
requestId: string;
|
|
3464
3497
|
};
|
|
3465
3498
|
outputFormat: "json";
|
|
3466
|
-
status:
|
|
3499
|
+
status: 400;
|
|
3467
3500
|
input: {
|
|
3468
3501
|
param: {
|
|
3469
3502
|
base: `0x${string}`;
|
|
@@ -3478,14 +3511,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3478
3511
|
} | {
|
|
3479
3512
|
output: {
|
|
3480
3513
|
error: {
|
|
3481
|
-
code: "
|
|
3514
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
3482
3515
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3483
3516
|
message: string;
|
|
3484
3517
|
};
|
|
3485
3518
|
requestId: string;
|
|
3486
3519
|
};
|
|
3487
3520
|
outputFormat: "json";
|
|
3488
|
-
status:
|
|
3521
|
+
status: 401;
|
|
3489
3522
|
input: {
|
|
3490
3523
|
param: {
|
|
3491
3524
|
base: `0x${string}`;
|
|
@@ -3498,16 +3531,9 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3498
3531
|
} | undefined;
|
|
3499
3532
|
};
|
|
3500
3533
|
} | {
|
|
3501
|
-
output:
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
3505
|
-
message: string;
|
|
3506
|
-
};
|
|
3507
|
-
requestId: string;
|
|
3508
|
-
};
|
|
3509
|
-
outputFormat: "json";
|
|
3510
|
-
status: 429;
|
|
3534
|
+
output: null;
|
|
3535
|
+
outputFormat: "body";
|
|
3536
|
+
status: 402;
|
|
3511
3537
|
input: {
|
|
3512
3538
|
param: {
|
|
3513
3539
|
base: `0x${string}`;
|
|
@@ -3522,14 +3548,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3522
3548
|
} | {
|
|
3523
3549
|
output: {
|
|
3524
3550
|
error: {
|
|
3525
|
-
code: "
|
|
3551
|
+
code: "api_key_forbidden";
|
|
3526
3552
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3527
3553
|
message: string;
|
|
3528
3554
|
};
|
|
3529
3555
|
requestId: string;
|
|
3530
3556
|
};
|
|
3531
3557
|
outputFormat: "json";
|
|
3532
|
-
status:
|
|
3558
|
+
status: 403;
|
|
3533
3559
|
input: {
|
|
3534
3560
|
param: {
|
|
3535
3561
|
base: `0x${string}`;
|
|
@@ -3544,14 +3570,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3544
3570
|
} | {
|
|
3545
3571
|
output: {
|
|
3546
3572
|
error: {
|
|
3547
|
-
code: "
|
|
3573
|
+
code: "pair_not_found";
|
|
3548
3574
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3549
3575
|
message: string;
|
|
3550
3576
|
};
|
|
3551
3577
|
requestId: string;
|
|
3552
3578
|
};
|
|
3553
3579
|
outputFormat: "json";
|
|
3554
|
-
status:
|
|
3580
|
+
status: 404;
|
|
3555
3581
|
input: {
|
|
3556
3582
|
param: {
|
|
3557
3583
|
base: `0x${string}`;
|
|
@@ -3566,14 +3592,14 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3566
3592
|
} | {
|
|
3567
3593
|
output: {
|
|
3568
3594
|
error: {
|
|
3569
|
-
code: "
|
|
3595
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
3570
3596
|
details?: readonly Response.error.Detail[] | undefined;
|
|
3571
3597
|
message: string;
|
|
3572
3598
|
};
|
|
3573
3599
|
requestId: string;
|
|
3574
3600
|
};
|
|
3575
3601
|
outputFormat: "json";
|
|
3576
|
-
status:
|
|
3602
|
+
status: 429;
|
|
3577
3603
|
input: {
|
|
3578
3604
|
param: {
|
|
3579
3605
|
base: `0x${string}`;
|
|
@@ -3587,41 +3613,15 @@ export declare function exchanges(options?: exchanges.Options): import("hono/hon
|
|
|
3587
3613
|
};
|
|
3588
3614
|
} | {
|
|
3589
3615
|
output: {
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
size: string;
|
|
3595
|
-
tick: number;
|
|
3596
|
-
}[];
|
|
3597
|
-
base: {
|
|
3598
|
-
address: `0x${string}`;
|
|
3599
|
-
currency?: string | undefined;
|
|
3600
|
-
decimals?: number | undefined;
|
|
3601
|
-
logoUri?: string | undefined;
|
|
3602
|
-
name?: string | undefined;
|
|
3603
|
-
symbol?: string | undefined;
|
|
3604
|
-
verified?: boolean | undefined;
|
|
3605
|
-
};
|
|
3606
|
-
bids: {
|
|
3607
|
-
cumulativeSize: string;
|
|
3608
|
-
id: string;
|
|
3609
|
-
price: string;
|
|
3610
|
-
size: string;
|
|
3611
|
-
tick: number;
|
|
3612
|
-
}[];
|
|
3613
|
-
quote: {
|
|
3614
|
-
address: `0x${string}`;
|
|
3615
|
-
currency?: string | undefined;
|
|
3616
|
-
decimals?: number | undefined;
|
|
3617
|
-
logoUri?: string | undefined;
|
|
3618
|
-
name?: string | undefined;
|
|
3619
|
-
symbol?: string | undefined;
|
|
3620
|
-
verified?: boolean | undefined;
|
|
3616
|
+
error: {
|
|
3617
|
+
code: "upstream_error";
|
|
3618
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
3619
|
+
message: string;
|
|
3621
3620
|
};
|
|
3621
|
+
requestId: string;
|
|
3622
3622
|
};
|
|
3623
3623
|
outputFormat: "json";
|
|
3624
|
-
status:
|
|
3624
|
+
status: 502;
|
|
3625
3625
|
input: {
|
|
3626
3626
|
param: {
|
|
3627
3627
|
base: `0x${string}`;
|