tapimo 0.4.0 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ApiKey.d.ts +1 -9
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +2 -3
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +53 -27
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +32 -17
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +2451 -1533
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +23 -9
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts +10 -0
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +4 -0
- package/dist/Assets.js.map +1 -1
- package/dist/Auth.d.ts +2 -1
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +2 -1
- package/dist/Auth.js.map +1 -1
- package/dist/Scope.d.ts +40 -15
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +44 -13
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +560 -9
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +38 -6
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +10 -24
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +10 -3
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +833 -0
- package/dist/admin/apps/organizations.d.ts.map +1 -0
- package/dist/admin/apps/organizations.js +733 -0
- package/dist/admin/apps/organizations.js.map +1 -0
- package/dist/admin/apps/scopes.d.ts +8 -0
- package/dist/admin/apps/scopes.d.ts.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 +53 -13
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +10 -0
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +8 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +9 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +14 -0
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +1354 -984
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +20 -3
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingRouteProviders.d.ts +94 -5
- package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingRouteProviders.js +196 -5
- package/dist/apps/data/FundingRouteProviders.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +38 -38
- package/dist/apps/data/routes/addresses.d.ts +24 -24
- package/dist/apps/data/routes/balances.d.ts +45 -45
- 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 +453 -453
- package/dist/apps/data/routes/fee-amm.d.ts +101 -101
- package/dist/apps/data/routes/funding.d.ts +730 -138
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +234 -0
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +5 -5
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/verified-tokens.d.ts +81 -81
- package/dist/apps/management/App.d.ts +1156 -615
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +2 -2
- package/dist/apps/management/Billing.d.ts +3 -0
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +7 -2
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +106 -90
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +41 -30
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +278 -146
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +14 -14
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +93 -20
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +12 -15
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +13 -13
- package/dist/apps/management/routes/members.d.ts +89 -18
- package/dist/apps/management/routes/members.d.ts.map +1 -1
- package/dist/apps/management/routes/members.js +10 -10
- package/dist/apps/management/routes/members.js.map +1 -1
- package/dist/apps/management/routes/orgs.d.ts +130 -70
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +19 -19
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +137 -48
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +12 -13
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/scopes.d.ts +14 -28
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +6 -7
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +63 -19
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +9 -10
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +35 -3
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/relay/App.d.ts +26 -4
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +17 -14
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +5 -3
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +52 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +13 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +16 -1
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/adminAuditLogs.d.ts +27 -0
- package/dist/db/tables/adminAuditLogs.d.ts.map +1 -0
- package/dist/db/tables/adminAuditLogs.js +19 -0
- package/dist/db/tables/adminAuditLogs.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +1 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/memberships.d.ts +32 -4
- package/dist/db/tables/memberships.d.ts.map +1 -1
- package/dist/db/tables/memberships.js +31 -0
- package/dist/db/tables/memberships.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +43 -1
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +103 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +25 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +22 -0
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/webhookDeliveries.d.ts +26 -0
- package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
- package/dist/db/tables/webhookDeliveries.js +37 -0
- package/dist/db/tables/webhookDeliveries.js.map +1 -1
- package/dist/handlers/relay.d.ts +13 -10
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +46 -16
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +13 -18
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +78 -58
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cursor.d.ts +1 -1
- package/dist/internal/Cursor.d.ts.map +1 -1
- package/dist/internal/Cursor.js +4 -0
- package/dist/internal/Cursor.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +2 -0
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/FundingRoutes.d.ts +170 -0
- package/dist/internal/FundingRoutes.d.ts.map +1 -1
- package/dist/internal/FundingRoutes.js +68 -6
- package/dist/internal/FundingRoutes.js.map +1 -1
- package/dist/internal/Log.d.ts +16 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +5 -3
- package/dist/internal/Log.js.map +1 -1
- package/package.json +2 -2
- package/src/ApiKey.ts +2 -3
- package/src/ApiKeys.ts +95 -17
- package/src/App.test.ts +44 -2
- package/src/App.ts +29 -9
- package/src/Assets.ts +8 -0
- package/src/Auth.test-d.ts +36 -0
- package/src/Auth.ts +20 -1
- package/src/Client.test-d.ts +64 -17
- package/src/Scope.test.ts +34 -0
- package/src/Scope.ts +53 -17
- package/src/admin/App.test.ts +33 -3
- package/src/admin/App.ts +49 -14
- package/src/admin/apps/api-keys.ts +10 -3
- package/src/admin/apps/organizations.test.ts +455 -0
- package/src/admin/apps/organizations.ts +953 -0
- package/src/admin/apps/scopes.test.ts +10 -0
- package/src/admin/ui/plugin.ts +1 -1
- package/src/admin/ui/src/components/MobileProfile.tsx +2 -0
- package/src/admin/ui/src/components/ThemeToggle.tsx +20 -0
- package/src/admin/ui/src/lib/api-keys.ts +36 -19
- package/src/admin/ui/src/lib/config.ts +2 -3
- package/src/admin/ui/src/lib/organizations.test.ts +89 -0
- package/src/admin/ui/src/lib/organizations.ts +262 -0
- package/src/admin/ui/src/lib/query-client.ts +3 -1
- package/src/admin/ui/src/lib/theme.ts +57 -0
- package/src/admin/ui/src/routeTree.gen.ts +47 -4
- package/src/admin/ui/src/routes/__root.tsx +18 -3
- package/src/admin/ui/src/routes/api-keys.tsx +52 -7
- package/src/admin/ui/src/routes/index.tsx +1 -1
- package/src/admin/ui/src/routes/organizations.tsx +158 -0
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +710 -0
- package/src/admin/ui/src/start.ts +6 -0
- package/src/admin/ui.generated.ts +63 -13
- package/src/analytics/Analytics.ts +25 -0
- package/src/analytics/tables/requestEvents.ts +33 -0
- package/src/apps/composition.test.ts +82 -2
- package/src/apps/data/App.ts +24 -3
- package/src/apps/data/FundingRouteProviders.test.ts +204 -0
- package/src/apps/data/FundingRouteProviders.ts +294 -9
- package/src/apps/data/routes/funding.test.ts +90 -23
- package/src/apps/data/routes/funding.ts +315 -0
- package/src/apps/data/routes/rpc.test.ts +33 -0
- package/src/apps/management/App.ts +2 -2
- package/src/apps/management/Billing.ts +10 -2
- package/src/apps/management/routes/api-keys.test.ts +137 -1
- package/src/apps/management/routes/api-keys.ts +63 -38
- package/src/apps/management/routes/billing.ts +14 -14
- package/src/apps/management/routes/invitations.test.ts +102 -1
- package/src/apps/management/routes/invitations.ts +13 -15
- package/src/apps/management/routes/members.ts +10 -10
- package/src/apps/management/routes/orgs.test.ts +78 -16
- package/src/apps/management/routes/orgs.ts +21 -20
- package/src/apps/management/routes/projects.ts +12 -13
- package/src/apps/management/routes/scopes.test.ts +16 -0
- package/src/apps/management/routes/scopes.ts +6 -7
- package/src/apps/management/routes/usage.ts +9 -14
- package/src/apps/mcp.test.ts +25 -1
- package/src/apps/mcp.ts +43 -3
- package/src/apps/relay/App.test.ts +23 -18
- package/src/apps/relay/App.ts +35 -14
- package/src/db/Db.ts +59 -3
- package/src/db/Schema.ts +20 -1
- package/src/db/tables/adminAuditLogs.ts +47 -0
- package/src/db/tables/invitations.ts +1 -1
- package/src/db/tables/memberships.ts +59 -3
- package/src/db/tables/organizations.ts +148 -1
- package/src/db/tables/projects.ts +47 -0
- package/src/db/tables/webhookDeliveries.ts +83 -0
- package/src/handlers/relay.test-d.ts +8 -0
- package/src/handlers/relay.test.ts +2 -2
- package/src/handlers/relay.ts +62 -22
- package/src/internal/Auth.test.ts +174 -7
- package/src/internal/Auth.ts +90 -62
- package/src/internal/Cursor.test.ts +10 -0
- package/src/internal/Cursor.ts +5 -1
- package/src/internal/EdgeCache.test.ts +11 -0
- package/src/internal/EdgeCache.ts +2 -0
- package/src/internal/FundingRoutes.test.ts +26 -0
- package/src/internal/FundingRoutes.ts +187 -18
- package/src/internal/Log.test.ts +41 -3
- package/src/internal/Log.ts +23 -4
|
@@ -975,9 +975,69 @@ export declare namespace schema {
|
|
|
975
975
|
export declare function exchanges(): import("hono/hono-base").HonoBase<App.Environment, {
|
|
976
976
|
"/v1/exchange/swaps": {
|
|
977
977
|
$get: {
|
|
978
|
-
output:
|
|
979
|
-
|
|
980
|
-
|
|
978
|
+
output: {
|
|
979
|
+
data: {
|
|
980
|
+
blockNumber: number;
|
|
981
|
+
destinationToken: {
|
|
982
|
+
address: `0x${string}`;
|
|
983
|
+
currency?: string | undefined;
|
|
984
|
+
decimals?: number | undefined;
|
|
985
|
+
logoUri?: string | undefined;
|
|
986
|
+
name?: string | undefined;
|
|
987
|
+
symbol?: string | undefined;
|
|
988
|
+
verified?: boolean | undefined;
|
|
989
|
+
amount: string;
|
|
990
|
+
};
|
|
991
|
+
filledAt: string;
|
|
992
|
+
fills: {
|
|
993
|
+
destinationToken: {
|
|
994
|
+
address: `0x${string}`;
|
|
995
|
+
currency?: string | undefined;
|
|
996
|
+
decimals?: number | undefined;
|
|
997
|
+
logoUri?: string | undefined;
|
|
998
|
+
name?: string | undefined;
|
|
999
|
+
symbol?: string | undefined;
|
|
1000
|
+
verified?: boolean | undefined;
|
|
1001
|
+
amount: string;
|
|
1002
|
+
};
|
|
1003
|
+
logIndex: number;
|
|
1004
|
+
maker: `0x${string}`;
|
|
1005
|
+
orderId: string;
|
|
1006
|
+
partialFill: boolean;
|
|
1007
|
+
price: string;
|
|
1008
|
+
sourceToken: {
|
|
1009
|
+
address: `0x${string}`;
|
|
1010
|
+
currency?: string | undefined;
|
|
1011
|
+
decimals?: number | undefined;
|
|
1012
|
+
logoUri?: string | undefined;
|
|
1013
|
+
name?: string | undefined;
|
|
1014
|
+
symbol?: string | undefined;
|
|
1015
|
+
verified?: boolean | undefined;
|
|
1016
|
+
amount: string;
|
|
1017
|
+
};
|
|
1018
|
+
}[];
|
|
1019
|
+
id: string;
|
|
1020
|
+
logIndex: number;
|
|
1021
|
+
mode: "exactDestination" | "exactSource" | null;
|
|
1022
|
+
rate: string;
|
|
1023
|
+
route: `0x${string}`[];
|
|
1024
|
+
sourceToken: {
|
|
1025
|
+
address: `0x${string}`;
|
|
1026
|
+
currency?: string | undefined;
|
|
1027
|
+
decimals?: number | undefined;
|
|
1028
|
+
logoUri?: string | undefined;
|
|
1029
|
+
name?: string | undefined;
|
|
1030
|
+
symbol?: string | undefined;
|
|
1031
|
+
verified?: boolean | undefined;
|
|
1032
|
+
amount: string;
|
|
1033
|
+
};
|
|
1034
|
+
taker: `0x${string}`;
|
|
1035
|
+
transactionHash: `0x${string}`;
|
|
1036
|
+
}[];
|
|
1037
|
+
nextCursor: string | null;
|
|
1038
|
+
};
|
|
1039
|
+
outputFormat: "json";
|
|
1040
|
+
status: 200;
|
|
981
1041
|
input: {
|
|
982
1042
|
query?: {
|
|
983
1043
|
'blockNumber.from'?: string | string[];
|
|
@@ -1026,14 +1086,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1026
1086
|
} | {
|
|
1027
1087
|
output: {
|
|
1028
1088
|
error: {
|
|
1029
|
-
code: "
|
|
1089
|
+
code: "query_invalid";
|
|
1030
1090
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1031
1091
|
message: string;
|
|
1032
1092
|
};
|
|
1033
1093
|
requestId: string;
|
|
1034
1094
|
};
|
|
1035
1095
|
outputFormat: "json";
|
|
1036
|
-
status:
|
|
1096
|
+
status: 400;
|
|
1037
1097
|
input: {
|
|
1038
1098
|
query?: {
|
|
1039
1099
|
'blockNumber.from'?: string | string[];
|
|
@@ -1054,14 +1114,35 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1054
1114
|
} | {
|
|
1055
1115
|
output: {
|
|
1056
1116
|
error: {
|
|
1057
|
-
code: "
|
|
1117
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1058
1118
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1059
1119
|
message: string;
|
|
1060
1120
|
};
|
|
1061
1121
|
requestId: string;
|
|
1062
1122
|
};
|
|
1063
1123
|
outputFormat: "json";
|
|
1064
|
-
status:
|
|
1124
|
+
status: 401;
|
|
1125
|
+
input: {
|
|
1126
|
+
query?: {
|
|
1127
|
+
'blockNumber.from'?: string | string[];
|
|
1128
|
+
'blockNumber.to'?: string | string[];
|
|
1129
|
+
chainId?: string | string[];
|
|
1130
|
+
cursor?: string | string[];
|
|
1131
|
+
include?: string | string[];
|
|
1132
|
+
limit?: string | string[];
|
|
1133
|
+
maker?: string | string[];
|
|
1134
|
+
order?: string | string[];
|
|
1135
|
+
participant?: string | string[];
|
|
1136
|
+
taker?: string | string[];
|
|
1137
|
+
'timestamp.from'?: string | string[];
|
|
1138
|
+
'timestamp.to'?: string | string[];
|
|
1139
|
+
transactionHash?: string | string[];
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
};
|
|
1142
|
+
} | {
|
|
1143
|
+
output: null;
|
|
1144
|
+
outputFormat: "body";
|
|
1145
|
+
status: 402;
|
|
1065
1146
|
input: {
|
|
1066
1147
|
query?: {
|
|
1067
1148
|
'blockNumber.from'?: string | string[];
|
|
@@ -1082,14 +1163,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1082
1163
|
} | {
|
|
1083
1164
|
output: {
|
|
1084
1165
|
error: {
|
|
1085
|
-
code: "
|
|
1166
|
+
code: "api_key_forbidden";
|
|
1086
1167
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1087
1168
|
message: string;
|
|
1088
1169
|
};
|
|
1089
1170
|
requestId: string;
|
|
1090
1171
|
};
|
|
1091
1172
|
outputFormat: "json";
|
|
1092
|
-
status:
|
|
1173
|
+
status: 403;
|
|
1093
1174
|
input: {
|
|
1094
1175
|
query?: {
|
|
1095
1176
|
'blockNumber.from'?: string | string[];
|
|
@@ -1110,14 +1191,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1110
1191
|
} | {
|
|
1111
1192
|
output: {
|
|
1112
1193
|
error: {
|
|
1113
|
-
code: "
|
|
1194
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1114
1195
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1115
1196
|
message: string;
|
|
1116
1197
|
};
|
|
1117
1198
|
requestId: string;
|
|
1118
1199
|
};
|
|
1119
1200
|
outputFormat: "json";
|
|
1120
|
-
status:
|
|
1201
|
+
status: 429;
|
|
1121
1202
|
input: {
|
|
1122
1203
|
query?: {
|
|
1123
1204
|
'blockNumber.from'?: string | string[];
|
|
@@ -1163,11 +1244,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1163
1244
|
transactionHash?: string | string[];
|
|
1164
1245
|
} | undefined;
|
|
1165
1246
|
};
|
|
1166
|
-
}
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
} & {
|
|
1250
|
+
"/v1/exchange/pairs": {
|
|
1251
|
+
$get: {
|
|
1167
1252
|
output: {
|
|
1168
1253
|
data: {
|
|
1169
|
-
|
|
1170
|
-
destinationToken: {
|
|
1254
|
+
base: {
|
|
1171
1255
|
address: `0x${string}`;
|
|
1172
1256
|
currency?: string | undefined;
|
|
1173
1257
|
decimals?: number | undefined;
|
|
@@ -1175,42 +1259,12 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1175
1259
|
name?: string | undefined;
|
|
1176
1260
|
symbol?: string | undefined;
|
|
1177
1261
|
verified?: boolean | undefined;
|
|
1178
|
-
amount: string;
|
|
1179
1262
|
};
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
decimals?: number | undefined;
|
|
1186
|
-
logoUri?: string | undefined;
|
|
1187
|
-
name?: string | undefined;
|
|
1188
|
-
symbol?: string | undefined;
|
|
1189
|
-
verified?: boolean | undefined;
|
|
1190
|
-
amount: string;
|
|
1191
|
-
};
|
|
1192
|
-
logIndex: number;
|
|
1193
|
-
maker: `0x${string}`;
|
|
1194
|
-
orderId: string;
|
|
1195
|
-
partialFill: boolean;
|
|
1196
|
-
price: string;
|
|
1197
|
-
sourceToken: {
|
|
1198
|
-
address: `0x${string}`;
|
|
1199
|
-
currency?: string | undefined;
|
|
1200
|
-
decimals?: number | undefined;
|
|
1201
|
-
logoUri?: string | undefined;
|
|
1202
|
-
name?: string | undefined;
|
|
1203
|
-
symbol?: string | undefined;
|
|
1204
|
-
verified?: boolean | undefined;
|
|
1205
|
-
amount: string;
|
|
1206
|
-
};
|
|
1207
|
-
}[];
|
|
1208
|
-
id: string;
|
|
1209
|
-
logIndex: number;
|
|
1210
|
-
mode: "exactDestination" | "exactSource" | null;
|
|
1211
|
-
rate: string;
|
|
1212
|
-
route: `0x${string}`[];
|
|
1213
|
-
sourceToken: {
|
|
1263
|
+
blockNumber: number;
|
|
1264
|
+
id: `0x${string}`;
|
|
1265
|
+
key: `0x${string}`;
|
|
1266
|
+
liquidity?: string | undefined;
|
|
1267
|
+
quote: {
|
|
1214
1268
|
address: `0x${string}`;
|
|
1215
1269
|
currency?: string | undefined;
|
|
1216
1270
|
decimals?: number | undefined;
|
|
@@ -1218,40 +1272,18 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1218
1272
|
name?: string | undefined;
|
|
1219
1273
|
symbol?: string | undefined;
|
|
1220
1274
|
verified?: boolean | undefined;
|
|
1221
|
-
amount: string;
|
|
1222
1275
|
};
|
|
1223
|
-
|
|
1276
|
+
timestamp: string;
|
|
1224
1277
|
transactionHash: `0x${string}`;
|
|
1225
1278
|
}[];
|
|
1279
|
+
meta?: {
|
|
1280
|
+
totalCountCapped: boolean;
|
|
1281
|
+
totalCount: number;
|
|
1282
|
+
} | undefined;
|
|
1226
1283
|
nextCursor: string | null;
|
|
1227
1284
|
};
|
|
1228
1285
|
outputFormat: "json";
|
|
1229
1286
|
status: 200;
|
|
1230
|
-
input: {
|
|
1231
|
-
query?: {
|
|
1232
|
-
'blockNumber.from'?: string | string[];
|
|
1233
|
-
'blockNumber.to'?: string | string[];
|
|
1234
|
-
chainId?: string | string[];
|
|
1235
|
-
cursor?: string | string[];
|
|
1236
|
-
include?: string | string[];
|
|
1237
|
-
limit?: string | string[];
|
|
1238
|
-
maker?: string | string[];
|
|
1239
|
-
order?: string | string[];
|
|
1240
|
-
participant?: string | string[];
|
|
1241
|
-
taker?: string | string[];
|
|
1242
|
-
'timestamp.from'?: string | string[];
|
|
1243
|
-
'timestamp.to'?: string | string[];
|
|
1244
|
-
transactionHash?: string | string[];
|
|
1245
|
-
} | undefined;
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
};
|
|
1249
|
-
} & {
|
|
1250
|
-
"/v1/exchange/pairs": {
|
|
1251
|
-
$get: {
|
|
1252
|
-
output: null;
|
|
1253
|
-
outputFormat: "body";
|
|
1254
|
-
status: 402;
|
|
1255
1287
|
input: {
|
|
1256
1288
|
query?: {
|
|
1257
1289
|
chainId?: string | string[];
|
|
@@ -1288,14 +1320,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1288
1320
|
} | {
|
|
1289
1321
|
output: {
|
|
1290
1322
|
error: {
|
|
1291
|
-
code: "
|
|
1323
|
+
code: "query_invalid";
|
|
1292
1324
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1293
1325
|
message: string;
|
|
1294
1326
|
};
|
|
1295
1327
|
requestId: string;
|
|
1296
1328
|
};
|
|
1297
1329
|
outputFormat: "json";
|
|
1298
|
-
status:
|
|
1330
|
+
status: 400;
|
|
1299
1331
|
input: {
|
|
1300
1332
|
query?: {
|
|
1301
1333
|
chainId?: string | string[];
|
|
@@ -1310,14 +1342,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1310
1342
|
} | {
|
|
1311
1343
|
output: {
|
|
1312
1344
|
error: {
|
|
1313
|
-
code: "
|
|
1345
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1314
1346
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1315
1347
|
message: string;
|
|
1316
1348
|
};
|
|
1317
1349
|
requestId: string;
|
|
1318
1350
|
};
|
|
1319
1351
|
outputFormat: "json";
|
|
1320
|
-
status:
|
|
1352
|
+
status: 401;
|
|
1321
1353
|
input: {
|
|
1322
1354
|
query?: {
|
|
1323
1355
|
chainId?: string | string[];
|
|
@@ -1330,16 +1362,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1330
1362
|
} | undefined;
|
|
1331
1363
|
};
|
|
1332
1364
|
} | {
|
|
1333
|
-
output:
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1337
|
-
message: string;
|
|
1338
|
-
};
|
|
1339
|
-
requestId: string;
|
|
1340
|
-
};
|
|
1341
|
-
outputFormat: "json";
|
|
1342
|
-
status: 429;
|
|
1365
|
+
output: null;
|
|
1366
|
+
outputFormat: "body";
|
|
1367
|
+
status: 402;
|
|
1343
1368
|
input: {
|
|
1344
1369
|
query?: {
|
|
1345
1370
|
chainId?: string | string[];
|
|
@@ -1354,14 +1379,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1354
1379
|
} | {
|
|
1355
1380
|
output: {
|
|
1356
1381
|
error: {
|
|
1357
|
-
code: "
|
|
1382
|
+
code: "api_key_forbidden";
|
|
1358
1383
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1359
1384
|
message: string;
|
|
1360
1385
|
};
|
|
1361
1386
|
requestId: string;
|
|
1362
1387
|
};
|
|
1363
1388
|
outputFormat: "json";
|
|
1364
|
-
status:
|
|
1389
|
+
status: 403;
|
|
1365
1390
|
input: {
|
|
1366
1391
|
query?: {
|
|
1367
1392
|
chainId?: string | string[];
|
|
@@ -1376,14 +1401,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1376
1401
|
} | {
|
|
1377
1402
|
output: {
|
|
1378
1403
|
error: {
|
|
1379
|
-
code: "
|
|
1404
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1380
1405
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1381
1406
|
message: string;
|
|
1382
1407
|
};
|
|
1383
1408
|
requestId: string;
|
|
1384
1409
|
};
|
|
1385
1410
|
outputFormat: "json";
|
|
1386
|
-
status:
|
|
1411
|
+
status: 429;
|
|
1387
1412
|
input: {
|
|
1388
1413
|
query?: {
|
|
1389
1414
|
chainId?: string | string[];
|
|
@@ -1397,40 +1422,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1397
1422
|
};
|
|
1398
1423
|
} | {
|
|
1399
1424
|
output: {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
name?: string | undefined;
|
|
1407
|
-
symbol?: string | undefined;
|
|
1408
|
-
verified?: boolean | undefined;
|
|
1409
|
-
};
|
|
1410
|
-
blockNumber: number;
|
|
1411
|
-
id: `0x${string}`;
|
|
1412
|
-
key: `0x${string}`;
|
|
1413
|
-
liquidity?: string | undefined;
|
|
1414
|
-
quote: {
|
|
1415
|
-
address: `0x${string}`;
|
|
1416
|
-
currency?: string | undefined;
|
|
1417
|
-
decimals?: number | undefined;
|
|
1418
|
-
logoUri?: string | undefined;
|
|
1419
|
-
name?: string | undefined;
|
|
1420
|
-
symbol?: string | undefined;
|
|
1421
|
-
verified?: boolean | undefined;
|
|
1422
|
-
};
|
|
1423
|
-
timestamp: string;
|
|
1424
|
-
transactionHash: `0x${string}`;
|
|
1425
|
-
}[];
|
|
1426
|
-
meta?: {
|
|
1427
|
-
totalCountCapped: boolean;
|
|
1428
|
-
totalCount: number;
|
|
1429
|
-
} | undefined;
|
|
1430
|
-
nextCursor: string | null;
|
|
1425
|
+
error: {
|
|
1426
|
+
code: "upstream_error";
|
|
1427
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1428
|
+
message: string;
|
|
1429
|
+
};
|
|
1430
|
+
requestId: string;
|
|
1431
1431
|
};
|
|
1432
1432
|
outputFormat: "json";
|
|
1433
|
-
status:
|
|
1433
|
+
status: 502;
|
|
1434
1434
|
input: {
|
|
1435
1435
|
query?: {
|
|
1436
1436
|
chainId?: string | string[];
|
|
@@ -1447,9 +1447,34 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1447
1447
|
} & {
|
|
1448
1448
|
"/v1/exchange/pairs/:base": {
|
|
1449
1449
|
$get: {
|
|
1450
|
-
output:
|
|
1451
|
-
|
|
1452
|
-
|
|
1450
|
+
output: {
|
|
1451
|
+
base: {
|
|
1452
|
+
address: `0x${string}`;
|
|
1453
|
+
currency?: string | undefined;
|
|
1454
|
+
decimals?: number | undefined;
|
|
1455
|
+
logoUri?: string | undefined;
|
|
1456
|
+
name?: string | undefined;
|
|
1457
|
+
symbol?: string | undefined;
|
|
1458
|
+
verified?: boolean | undefined;
|
|
1459
|
+
};
|
|
1460
|
+
blockNumber: number;
|
|
1461
|
+
id: `0x${string}`;
|
|
1462
|
+
key: `0x${string}`;
|
|
1463
|
+
liquidity?: string | undefined;
|
|
1464
|
+
quote: {
|
|
1465
|
+
address: `0x${string}`;
|
|
1466
|
+
currency?: string | undefined;
|
|
1467
|
+
decimals?: number | undefined;
|
|
1468
|
+
logoUri?: string | undefined;
|
|
1469
|
+
name?: string | undefined;
|
|
1470
|
+
symbol?: string | undefined;
|
|
1471
|
+
verified?: boolean | undefined;
|
|
1472
|
+
};
|
|
1473
|
+
timestamp: string;
|
|
1474
|
+
transactionHash: `0x${string}`;
|
|
1475
|
+
};
|
|
1476
|
+
outputFormat: "json";
|
|
1477
|
+
status: 200;
|
|
1453
1478
|
input: {
|
|
1454
1479
|
param: {
|
|
1455
1480
|
base: `0x${string}`;
|
|
@@ -1484,14 +1509,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1484
1509
|
} | {
|
|
1485
1510
|
output: {
|
|
1486
1511
|
error: {
|
|
1487
|
-
code: "
|
|
1512
|
+
code: "query_invalid";
|
|
1488
1513
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1489
1514
|
message: string;
|
|
1490
1515
|
};
|
|
1491
1516
|
requestId: string;
|
|
1492
1517
|
};
|
|
1493
1518
|
outputFormat: "json";
|
|
1494
|
-
status:
|
|
1519
|
+
status: 400;
|
|
1495
1520
|
input: {
|
|
1496
1521
|
param: {
|
|
1497
1522
|
base: `0x${string}`;
|
|
@@ -1505,14 +1530,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1505
1530
|
} | {
|
|
1506
1531
|
output: {
|
|
1507
1532
|
error: {
|
|
1508
|
-
code: "
|
|
1533
|
+
code: "pair_invalid";
|
|
1509
1534
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1510
1535
|
message: string;
|
|
1511
1536
|
};
|
|
1512
1537
|
requestId: string;
|
|
1513
1538
|
};
|
|
1514
1539
|
outputFormat: "json";
|
|
1515
|
-
status:
|
|
1540
|
+
status: 400;
|
|
1516
1541
|
input: {
|
|
1517
1542
|
param: {
|
|
1518
1543
|
base: `0x${string}`;
|
|
@@ -1526,14 +1551,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1526
1551
|
} | {
|
|
1527
1552
|
output: {
|
|
1528
1553
|
error: {
|
|
1529
|
-
code: "
|
|
1554
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1530
1555
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1531
1556
|
message: string;
|
|
1532
1557
|
};
|
|
1533
1558
|
requestId: string;
|
|
1534
1559
|
};
|
|
1535
1560
|
outputFormat: "json";
|
|
1536
|
-
status:
|
|
1561
|
+
status: 401;
|
|
1537
1562
|
input: {
|
|
1538
1563
|
param: {
|
|
1539
1564
|
base: `0x${string}`;
|
|
@@ -1545,16 +1570,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1545
1570
|
} | undefined;
|
|
1546
1571
|
};
|
|
1547
1572
|
} | {
|
|
1548
|
-
output:
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1552
|
-
message: string;
|
|
1553
|
-
};
|
|
1554
|
-
requestId: string;
|
|
1555
|
-
};
|
|
1556
|
-
outputFormat: "json";
|
|
1557
|
-
status: 400;
|
|
1573
|
+
output: null;
|
|
1574
|
+
outputFormat: "body";
|
|
1575
|
+
status: 402;
|
|
1558
1576
|
input: {
|
|
1559
1577
|
param: {
|
|
1560
1578
|
base: `0x${string}`;
|
|
@@ -1568,14 +1586,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1568
1586
|
} | {
|
|
1569
1587
|
output: {
|
|
1570
1588
|
error: {
|
|
1571
|
-
code: "
|
|
1589
|
+
code: "api_key_forbidden";
|
|
1572
1590
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1573
1591
|
message: string;
|
|
1574
1592
|
};
|
|
1575
1593
|
requestId: string;
|
|
1576
1594
|
};
|
|
1577
1595
|
outputFormat: "json";
|
|
1578
|
-
status:
|
|
1596
|
+
status: 403;
|
|
1579
1597
|
input: {
|
|
1580
1598
|
param: {
|
|
1581
1599
|
base: `0x${string}`;
|
|
@@ -1589,14 +1607,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1589
1607
|
} | {
|
|
1590
1608
|
output: {
|
|
1591
1609
|
error: {
|
|
1592
|
-
code: "
|
|
1610
|
+
code: "pair_not_found";
|
|
1593
1611
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1594
1612
|
message: string;
|
|
1595
1613
|
};
|
|
1596
1614
|
requestId: string;
|
|
1597
1615
|
};
|
|
1598
1616
|
outputFormat: "json";
|
|
1599
|
-
status:
|
|
1617
|
+
status: 404;
|
|
1600
1618
|
input: {
|
|
1601
1619
|
param: {
|
|
1602
1620
|
base: `0x${string}`;
|
|
@@ -1610,14 +1628,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1610
1628
|
} | {
|
|
1611
1629
|
output: {
|
|
1612
1630
|
error: {
|
|
1613
|
-
code: "
|
|
1631
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1614
1632
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1615
1633
|
message: string;
|
|
1616
1634
|
};
|
|
1617
1635
|
requestId: string;
|
|
1618
1636
|
};
|
|
1619
1637
|
outputFormat: "json";
|
|
1620
|
-
status:
|
|
1638
|
+
status: 429;
|
|
1621
1639
|
input: {
|
|
1622
1640
|
param: {
|
|
1623
1641
|
base: `0x${string}`;
|
|
@@ -1630,33 +1648,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1630
1648
|
};
|
|
1631
1649
|
} | {
|
|
1632
1650
|
output: {
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
logoUri?: string | undefined;
|
|
1638
|
-
name?: string | undefined;
|
|
1639
|
-
symbol?: string | undefined;
|
|
1640
|
-
verified?: boolean | undefined;
|
|
1641
|
-
};
|
|
1642
|
-
blockNumber: number;
|
|
1643
|
-
id: `0x${string}`;
|
|
1644
|
-
key: `0x${string}`;
|
|
1645
|
-
liquidity?: string | undefined;
|
|
1646
|
-
quote: {
|
|
1647
|
-
address: `0x${string}`;
|
|
1648
|
-
currency?: string | undefined;
|
|
1649
|
-
decimals?: number | undefined;
|
|
1650
|
-
logoUri?: string | undefined;
|
|
1651
|
-
name?: string | undefined;
|
|
1652
|
-
symbol?: string | undefined;
|
|
1653
|
-
verified?: boolean | undefined;
|
|
1651
|
+
error: {
|
|
1652
|
+
code: "upstream_error";
|
|
1653
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1654
|
+
message: string;
|
|
1654
1655
|
};
|
|
1655
|
-
|
|
1656
|
-
transactionHash: `0x${string}`;
|
|
1656
|
+
requestId: string;
|
|
1657
1657
|
};
|
|
1658
1658
|
outputFormat: "json";
|
|
1659
|
-
status:
|
|
1659
|
+
status: 502;
|
|
1660
1660
|
input: {
|
|
1661
1661
|
param: {
|
|
1662
1662
|
base: `0x${string}`;
|
|
@@ -1672,9 +1672,52 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1672
1672
|
} & {
|
|
1673
1673
|
"/v1/exchange/orders": {
|
|
1674
1674
|
$get: {
|
|
1675
|
-
output:
|
|
1676
|
-
|
|
1677
|
-
|
|
1675
|
+
output: {
|
|
1676
|
+
data: {
|
|
1677
|
+
amount: string;
|
|
1678
|
+
blockNumber: number;
|
|
1679
|
+
id: string;
|
|
1680
|
+
logIndex: number;
|
|
1681
|
+
maker: `0x${string}`;
|
|
1682
|
+
orderId: string;
|
|
1683
|
+
placedAt: string;
|
|
1684
|
+
price: string;
|
|
1685
|
+
rate: string;
|
|
1686
|
+
remaining: string;
|
|
1687
|
+
side: "ask" | "bid";
|
|
1688
|
+
tick: number;
|
|
1689
|
+
transactionHash: `0x${string}`;
|
|
1690
|
+
pair: {
|
|
1691
|
+
base: {
|
|
1692
|
+
address: `0x${string}`;
|
|
1693
|
+
currency?: string | undefined;
|
|
1694
|
+
decimals?: number | undefined;
|
|
1695
|
+
logoUri?: string | undefined;
|
|
1696
|
+
name?: string | undefined;
|
|
1697
|
+
symbol?: string | undefined;
|
|
1698
|
+
verified?: boolean | undefined;
|
|
1699
|
+
};
|
|
1700
|
+
key: `0x${string}`;
|
|
1701
|
+
quote: {
|
|
1702
|
+
address: `0x${string}`;
|
|
1703
|
+
currency?: string | undefined;
|
|
1704
|
+
decimals?: number | undefined;
|
|
1705
|
+
logoUri?: string | undefined;
|
|
1706
|
+
name?: string | undefined;
|
|
1707
|
+
symbol?: string | undefined;
|
|
1708
|
+
verified?: boolean | undefined;
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
}[];
|
|
1712
|
+
meta?: {
|
|
1713
|
+
totalCountCapped: boolean;
|
|
1714
|
+
totalCount: number;
|
|
1715
|
+
} | undefined;
|
|
1716
|
+
nextCursor: string | null;
|
|
1717
|
+
truncated: boolean;
|
|
1718
|
+
};
|
|
1719
|
+
outputFormat: "json";
|
|
1720
|
+
status: 200;
|
|
1678
1721
|
input: {
|
|
1679
1722
|
query?: {
|
|
1680
1723
|
base?: string | string[];
|
|
@@ -1717,14 +1760,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1717
1760
|
} | {
|
|
1718
1761
|
output: {
|
|
1719
1762
|
error: {
|
|
1720
|
-
code: "
|
|
1763
|
+
code: "query_invalid";
|
|
1721
1764
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1722
1765
|
message: string;
|
|
1723
1766
|
};
|
|
1724
1767
|
requestId: string;
|
|
1725
1768
|
};
|
|
1726
1769
|
outputFormat: "json";
|
|
1727
|
-
status:
|
|
1770
|
+
status: 400;
|
|
1728
1771
|
input: {
|
|
1729
1772
|
query?: {
|
|
1730
1773
|
base?: string | string[];
|
|
@@ -1742,14 +1785,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1742
1785
|
} | {
|
|
1743
1786
|
output: {
|
|
1744
1787
|
error: {
|
|
1745
|
-
code: "
|
|
1788
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1746
1789
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1747
1790
|
message: string;
|
|
1748
1791
|
};
|
|
1749
1792
|
requestId: string;
|
|
1750
1793
|
};
|
|
1751
1794
|
outputFormat: "json";
|
|
1752
|
-
status:
|
|
1795
|
+
status: 401;
|
|
1753
1796
|
input: {
|
|
1754
1797
|
query?: {
|
|
1755
1798
|
base?: string | string[];
|
|
@@ -1765,16 +1808,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1765
1808
|
} | undefined;
|
|
1766
1809
|
};
|
|
1767
1810
|
} | {
|
|
1768
|
-
output:
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1772
|
-
message: string;
|
|
1773
|
-
};
|
|
1774
|
-
requestId: string;
|
|
1775
|
-
};
|
|
1776
|
-
outputFormat: "json";
|
|
1777
|
-
status: 429;
|
|
1811
|
+
output: null;
|
|
1812
|
+
outputFormat: "body";
|
|
1813
|
+
status: 402;
|
|
1778
1814
|
input: {
|
|
1779
1815
|
query?: {
|
|
1780
1816
|
base?: string | string[];
|
|
@@ -1792,14 +1828,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1792
1828
|
} | {
|
|
1793
1829
|
output: {
|
|
1794
1830
|
error: {
|
|
1795
|
-
code: "
|
|
1831
|
+
code: "api_key_forbidden";
|
|
1796
1832
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1797
1833
|
message: string;
|
|
1798
1834
|
};
|
|
1799
1835
|
requestId: string;
|
|
1800
1836
|
};
|
|
1801
1837
|
outputFormat: "json";
|
|
1802
|
-
status:
|
|
1838
|
+
status: 403;
|
|
1803
1839
|
input: {
|
|
1804
1840
|
query?: {
|
|
1805
1841
|
base?: string | string[];
|
|
@@ -1817,14 +1853,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1817
1853
|
} | {
|
|
1818
1854
|
output: {
|
|
1819
1855
|
error: {
|
|
1820
|
-
code: "
|
|
1856
|
+
code: "pair_not_found";
|
|
1821
1857
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1822
1858
|
message: string;
|
|
1823
1859
|
};
|
|
1824
1860
|
requestId: string;
|
|
1825
1861
|
};
|
|
1826
1862
|
outputFormat: "json";
|
|
1827
|
-
status:
|
|
1863
|
+
status: 404;
|
|
1828
1864
|
input: {
|
|
1829
1865
|
query?: {
|
|
1830
1866
|
base?: string | string[];
|
|
@@ -1842,14 +1878,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1842
1878
|
} | {
|
|
1843
1879
|
output: {
|
|
1844
1880
|
error: {
|
|
1845
|
-
code: "
|
|
1881
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1846
1882
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1847
1883
|
message: string;
|
|
1848
1884
|
};
|
|
1849
1885
|
requestId: string;
|
|
1850
1886
|
};
|
|
1851
1887
|
outputFormat: "json";
|
|
1852
|
-
status:
|
|
1888
|
+
status: 429;
|
|
1853
1889
|
input: {
|
|
1854
1890
|
query?: {
|
|
1855
1891
|
base?: string | string[];
|
|
@@ -1866,51 +1902,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1866
1902
|
};
|
|
1867
1903
|
} | {
|
|
1868
1904
|
output: {
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
orderId: string;
|
|
1876
|
-
placedAt: string;
|
|
1877
|
-
price: string;
|
|
1878
|
-
rate: string;
|
|
1879
|
-
remaining: string;
|
|
1880
|
-
side: "ask" | "bid";
|
|
1881
|
-
tick: number;
|
|
1882
|
-
transactionHash: `0x${string}`;
|
|
1883
|
-
pair: {
|
|
1884
|
-
base: {
|
|
1885
|
-
address: `0x${string}`;
|
|
1886
|
-
currency?: string | undefined;
|
|
1887
|
-
decimals?: number | undefined;
|
|
1888
|
-
logoUri?: string | undefined;
|
|
1889
|
-
name?: string | undefined;
|
|
1890
|
-
symbol?: string | undefined;
|
|
1891
|
-
verified?: boolean | undefined;
|
|
1892
|
-
};
|
|
1893
|
-
key: `0x${string}`;
|
|
1894
|
-
quote: {
|
|
1895
|
-
address: `0x${string}`;
|
|
1896
|
-
currency?: string | undefined;
|
|
1897
|
-
decimals?: number | undefined;
|
|
1898
|
-
logoUri?: string | undefined;
|
|
1899
|
-
name?: string | undefined;
|
|
1900
|
-
symbol?: string | undefined;
|
|
1901
|
-
verified?: boolean | undefined;
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
}[];
|
|
1905
|
-
meta?: {
|
|
1906
|
-
totalCountCapped: boolean;
|
|
1907
|
-
totalCount: number;
|
|
1908
|
-
} | undefined;
|
|
1909
|
-
nextCursor: string | null;
|
|
1910
|
-
truncated: boolean;
|
|
1905
|
+
error: {
|
|
1906
|
+
code: "upstream_error";
|
|
1907
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1908
|
+
message: string;
|
|
1909
|
+
};
|
|
1910
|
+
requestId: string;
|
|
1911
1911
|
};
|
|
1912
1912
|
outputFormat: "json";
|
|
1913
|
-
status:
|
|
1913
|
+
status: 502;
|
|
1914
1914
|
input: {
|
|
1915
1915
|
query?: {
|
|
1916
1916
|
base?: string | string[];
|
|
@@ -1930,9 +1930,43 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1930
1930
|
} & {
|
|
1931
1931
|
"/v1/exchange/orders/:orderId": {
|
|
1932
1932
|
$get: {
|
|
1933
|
-
output:
|
|
1934
|
-
|
|
1935
|
-
|
|
1933
|
+
output: {
|
|
1934
|
+
amount: string;
|
|
1935
|
+
flipTick: number;
|
|
1936
|
+
id: string;
|
|
1937
|
+
isBid: boolean;
|
|
1938
|
+
isFlipOrder: boolean;
|
|
1939
|
+
maker: `0x${string}`;
|
|
1940
|
+
mode: "exactDestination" | "exactSource";
|
|
1941
|
+
orderId: string;
|
|
1942
|
+
pair: {
|
|
1943
|
+
base: {
|
|
1944
|
+
address: `0x${string}`;
|
|
1945
|
+
currency?: string | undefined;
|
|
1946
|
+
decimals?: number | undefined;
|
|
1947
|
+
logoUri?: string | undefined;
|
|
1948
|
+
name?: string | undefined;
|
|
1949
|
+
symbol?: string | undefined;
|
|
1950
|
+
verified?: boolean | undefined;
|
|
1951
|
+
};
|
|
1952
|
+
key: `0x${string}`;
|
|
1953
|
+
quote: {
|
|
1954
|
+
address: `0x${string}`;
|
|
1955
|
+
currency?: string | undefined;
|
|
1956
|
+
decimals?: number | undefined;
|
|
1957
|
+
logoUri?: string | undefined;
|
|
1958
|
+
name?: string | undefined;
|
|
1959
|
+
symbol?: string | undefined;
|
|
1960
|
+
verified?: boolean | undefined;
|
|
1961
|
+
};
|
|
1962
|
+
};
|
|
1963
|
+
price: string;
|
|
1964
|
+
rate: string;
|
|
1965
|
+
remaining: string;
|
|
1966
|
+
tick: number;
|
|
1967
|
+
};
|
|
1968
|
+
outputFormat: "json";
|
|
1969
|
+
status: 200;
|
|
1936
1970
|
input: {
|
|
1937
1971
|
param: {
|
|
1938
1972
|
orderId: string;
|
|
@@ -1967,14 +2001,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1967
2001
|
} | {
|
|
1968
2002
|
output: {
|
|
1969
2003
|
error: {
|
|
1970
|
-
code: "
|
|
2004
|
+
code: "query_invalid";
|
|
1971
2005
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1972
2006
|
message: string;
|
|
1973
2007
|
};
|
|
1974
2008
|
requestId: string;
|
|
1975
2009
|
};
|
|
1976
2010
|
outputFormat: "json";
|
|
1977
|
-
status:
|
|
2011
|
+
status: 400;
|
|
1978
2012
|
input: {
|
|
1979
2013
|
param: {
|
|
1980
2014
|
orderId: string;
|
|
@@ -1988,14 +2022,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1988
2022
|
} | {
|
|
1989
2023
|
output: {
|
|
1990
2024
|
error: {
|
|
1991
|
-
code: "
|
|
2025
|
+
code: "order_invalid";
|
|
1992
2026
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1993
2027
|
message: string;
|
|
1994
2028
|
};
|
|
1995
2029
|
requestId: string;
|
|
1996
2030
|
};
|
|
1997
2031
|
outputFormat: "json";
|
|
1998
|
-
status:
|
|
2032
|
+
status: 400;
|
|
1999
2033
|
input: {
|
|
2000
2034
|
param: {
|
|
2001
2035
|
orderId: string;
|
|
@@ -2009,14 +2043,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2009
2043
|
} | {
|
|
2010
2044
|
output: {
|
|
2011
2045
|
error: {
|
|
2012
|
-
code: "
|
|
2046
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2013
2047
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2014
2048
|
message: string;
|
|
2015
2049
|
};
|
|
2016
2050
|
requestId: string;
|
|
2017
2051
|
};
|
|
2018
2052
|
outputFormat: "json";
|
|
2019
|
-
status:
|
|
2053
|
+
status: 401;
|
|
2020
2054
|
input: {
|
|
2021
2055
|
param: {
|
|
2022
2056
|
orderId: string;
|
|
@@ -2028,16 +2062,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2028
2062
|
} | undefined;
|
|
2029
2063
|
};
|
|
2030
2064
|
} | {
|
|
2031
|
-
output:
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2035
|
-
message: string;
|
|
2036
|
-
};
|
|
2037
|
-
requestId: string;
|
|
2038
|
-
};
|
|
2039
|
-
outputFormat: "json";
|
|
2040
|
-
status: 400;
|
|
2065
|
+
output: null;
|
|
2066
|
+
outputFormat: "body";
|
|
2067
|
+
status: 402;
|
|
2041
2068
|
input: {
|
|
2042
2069
|
param: {
|
|
2043
2070
|
orderId: string;
|
|
@@ -2051,14 +2078,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2051
2078
|
} | {
|
|
2052
2079
|
output: {
|
|
2053
2080
|
error: {
|
|
2054
|
-
code: "
|
|
2081
|
+
code: "api_key_forbidden";
|
|
2055
2082
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2056
2083
|
message: string;
|
|
2057
2084
|
};
|
|
2058
2085
|
requestId: string;
|
|
2059
2086
|
};
|
|
2060
2087
|
outputFormat: "json";
|
|
2061
|
-
status:
|
|
2088
|
+
status: 403;
|
|
2062
2089
|
input: {
|
|
2063
2090
|
param: {
|
|
2064
2091
|
orderId: string;
|
|
@@ -2072,14 +2099,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2072
2099
|
} | {
|
|
2073
2100
|
output: {
|
|
2074
2101
|
error: {
|
|
2075
|
-
code: "
|
|
2102
|
+
code: "order_not_found";
|
|
2076
2103
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2077
2104
|
message: string;
|
|
2078
2105
|
};
|
|
2079
2106
|
requestId: string;
|
|
2080
2107
|
};
|
|
2081
2108
|
outputFormat: "json";
|
|
2082
|
-
status:
|
|
2109
|
+
status: 404;
|
|
2083
2110
|
input: {
|
|
2084
2111
|
param: {
|
|
2085
2112
|
orderId: string;
|
|
@@ -2093,14 +2120,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2093
2120
|
} | {
|
|
2094
2121
|
output: {
|
|
2095
2122
|
error: {
|
|
2096
|
-
code: "
|
|
2123
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2097
2124
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2098
2125
|
message: string;
|
|
2099
2126
|
};
|
|
2100
2127
|
requestId: string;
|
|
2101
2128
|
};
|
|
2102
2129
|
outputFormat: "json";
|
|
2103
|
-
status:
|
|
2130
|
+
status: 429;
|
|
2104
2131
|
input: {
|
|
2105
2132
|
param: {
|
|
2106
2133
|
orderId: string;
|
|
@@ -2113,42 +2140,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2113
2140
|
};
|
|
2114
2141
|
} | {
|
|
2115
2142
|
output: {
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
isFlipOrder: boolean;
|
|
2121
|
-
maker: `0x${string}`;
|
|
2122
|
-
mode: "exactDestination" | "exactSource";
|
|
2123
|
-
orderId: string;
|
|
2124
|
-
pair: {
|
|
2125
|
-
base: {
|
|
2126
|
-
address: `0x${string}`;
|
|
2127
|
-
currency?: string | undefined;
|
|
2128
|
-
decimals?: number | undefined;
|
|
2129
|
-
logoUri?: string | undefined;
|
|
2130
|
-
name?: string | undefined;
|
|
2131
|
-
symbol?: string | undefined;
|
|
2132
|
-
verified?: boolean | undefined;
|
|
2133
|
-
};
|
|
2134
|
-
key: `0x${string}`;
|
|
2135
|
-
quote: {
|
|
2136
|
-
address: `0x${string}`;
|
|
2137
|
-
currency?: string | undefined;
|
|
2138
|
-
decimals?: number | undefined;
|
|
2139
|
-
logoUri?: string | undefined;
|
|
2140
|
-
name?: string | undefined;
|
|
2141
|
-
symbol?: string | undefined;
|
|
2142
|
-
verified?: boolean | undefined;
|
|
2143
|
-
};
|
|
2143
|
+
error: {
|
|
2144
|
+
code: "upstream_error";
|
|
2145
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2146
|
+
message: string;
|
|
2144
2147
|
};
|
|
2145
|
-
|
|
2146
|
-
rate: string;
|
|
2147
|
-
remaining: string;
|
|
2148
|
-
tick: number;
|
|
2148
|
+
requestId: string;
|
|
2149
2149
|
};
|
|
2150
2150
|
outputFormat: "json";
|
|
2151
|
-
status:
|
|
2151
|
+
status: 502;
|
|
2152
2152
|
input: {
|
|
2153
2153
|
param: {
|
|
2154
2154
|
orderId: string;
|
|
@@ -2164,9 +2164,26 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2164
2164
|
} & {
|
|
2165
2165
|
"/v1/exchange/orders/:orderId/fills": {
|
|
2166
2166
|
$get: {
|
|
2167
|
-
output:
|
|
2168
|
-
|
|
2169
|
-
|
|
2167
|
+
output: {
|
|
2168
|
+
data: {
|
|
2169
|
+
amountFilled: string;
|
|
2170
|
+
blockNumber: number;
|
|
2171
|
+
filledAt: string;
|
|
2172
|
+
id: string;
|
|
2173
|
+
logIndex: number;
|
|
2174
|
+
orderId: string;
|
|
2175
|
+
partialFill: boolean;
|
|
2176
|
+
taker: `0x${string}`;
|
|
2177
|
+
transactionHash: `0x${string}`;
|
|
2178
|
+
}[];
|
|
2179
|
+
meta?: {
|
|
2180
|
+
totalCountCapped: boolean;
|
|
2181
|
+
totalCount: number;
|
|
2182
|
+
} | undefined;
|
|
2183
|
+
nextCursor: string | null;
|
|
2184
|
+
};
|
|
2185
|
+
outputFormat: "json";
|
|
2186
|
+
status: 200;
|
|
2170
2187
|
input: {
|
|
2171
2188
|
param: {
|
|
2172
2189
|
orderId: string;
|
|
@@ -2209,14 +2226,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2209
2226
|
} | {
|
|
2210
2227
|
output: {
|
|
2211
2228
|
error: {
|
|
2212
|
-
code: "
|
|
2229
|
+
code: "query_invalid";
|
|
2213
2230
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2214
2231
|
message: string;
|
|
2215
2232
|
};
|
|
2216
2233
|
requestId: string;
|
|
2217
2234
|
};
|
|
2218
2235
|
outputFormat: "json";
|
|
2219
|
-
status:
|
|
2236
|
+
status: 400;
|
|
2220
2237
|
input: {
|
|
2221
2238
|
param: {
|
|
2222
2239
|
orderId: string;
|
|
@@ -2234,14 +2251,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2234
2251
|
} | {
|
|
2235
2252
|
output: {
|
|
2236
2253
|
error: {
|
|
2237
|
-
code: "
|
|
2254
|
+
code: "order_invalid";
|
|
2238
2255
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2239
2256
|
message: string;
|
|
2240
2257
|
};
|
|
2241
2258
|
requestId: string;
|
|
2242
2259
|
};
|
|
2243
2260
|
outputFormat: "json";
|
|
2244
|
-
status:
|
|
2261
|
+
status: 400;
|
|
2245
2262
|
input: {
|
|
2246
2263
|
param: {
|
|
2247
2264
|
orderId: string;
|
|
@@ -2259,14 +2276,32 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2259
2276
|
} | {
|
|
2260
2277
|
output: {
|
|
2261
2278
|
error: {
|
|
2262
|
-
code: "
|
|
2279
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2263
2280
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2264
2281
|
message: string;
|
|
2265
2282
|
};
|
|
2266
2283
|
requestId: string;
|
|
2267
2284
|
};
|
|
2268
2285
|
outputFormat: "json";
|
|
2269
|
-
status:
|
|
2286
|
+
status: 401;
|
|
2287
|
+
input: {
|
|
2288
|
+
param: {
|
|
2289
|
+
orderId: string;
|
|
2290
|
+
};
|
|
2291
|
+
} & {
|
|
2292
|
+
query?: {
|
|
2293
|
+
chainId?: string | string[];
|
|
2294
|
+
cursor?: string | string[];
|
|
2295
|
+
include?: string | string[];
|
|
2296
|
+
limit?: string | string[];
|
|
2297
|
+
order?: string | string[];
|
|
2298
|
+
page?: string | string[];
|
|
2299
|
+
} | undefined;
|
|
2300
|
+
};
|
|
2301
|
+
} | {
|
|
2302
|
+
output: null;
|
|
2303
|
+
outputFormat: "body";
|
|
2304
|
+
status: 402;
|
|
2270
2305
|
input: {
|
|
2271
2306
|
param: {
|
|
2272
2307
|
orderId: string;
|
|
@@ -2284,14 +2319,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2284
2319
|
} | {
|
|
2285
2320
|
output: {
|
|
2286
2321
|
error: {
|
|
2287
|
-
code: "
|
|
2322
|
+
code: "api_key_forbidden";
|
|
2288
2323
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2289
2324
|
message: string;
|
|
2290
2325
|
};
|
|
2291
2326
|
requestId: string;
|
|
2292
2327
|
};
|
|
2293
2328
|
outputFormat: "json";
|
|
2294
|
-
status:
|
|
2329
|
+
status: 403;
|
|
2295
2330
|
input: {
|
|
2296
2331
|
param: {
|
|
2297
2332
|
orderId: string;
|
|
@@ -2309,14 +2344,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2309
2344
|
} | {
|
|
2310
2345
|
output: {
|
|
2311
2346
|
error: {
|
|
2312
|
-
code: "
|
|
2347
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2313
2348
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2314
2349
|
message: string;
|
|
2315
2350
|
};
|
|
2316
2351
|
requestId: string;
|
|
2317
2352
|
};
|
|
2318
2353
|
outputFormat: "json";
|
|
2319
|
-
status:
|
|
2354
|
+
status: 429;
|
|
2320
2355
|
input: {
|
|
2321
2356
|
param: {
|
|
2322
2357
|
orderId: string;
|
|
@@ -2334,14 +2369,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2334
2369
|
} | {
|
|
2335
2370
|
output: {
|
|
2336
2371
|
error: {
|
|
2337
|
-
code: "
|
|
2372
|
+
code: "upstream_error";
|
|
2338
2373
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2339
2374
|
message: string;
|
|
2340
2375
|
};
|
|
2341
2376
|
requestId: string;
|
|
2342
2377
|
};
|
|
2343
2378
|
outputFormat: "json";
|
|
2344
|
-
status:
|
|
2379
|
+
status: 502;
|
|
2345
2380
|
input: {
|
|
2346
2381
|
param: {
|
|
2347
2382
|
orderId: string;
|
|
@@ -2356,49 +2391,49 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2356
2391
|
page?: string | string[];
|
|
2357
2392
|
} | undefined;
|
|
2358
2393
|
};
|
|
2359
|
-
}
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
} & {
|
|
2397
|
+
"/v1/exchange/pairs/:base/ohlc": {
|
|
2398
|
+
$get: {
|
|
2360
2399
|
output: {
|
|
2400
|
+
base: {
|
|
2401
|
+
address: `0x${string}`;
|
|
2402
|
+
currency?: string | undefined;
|
|
2403
|
+
decimals?: number | undefined;
|
|
2404
|
+
logoUri?: string | undefined;
|
|
2405
|
+
name?: string | undefined;
|
|
2406
|
+
symbol?: string | undefined;
|
|
2407
|
+
verified?: boolean | undefined;
|
|
2408
|
+
};
|
|
2361
2409
|
data: {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2410
|
+
close: string;
|
|
2411
|
+
fillCount: number;
|
|
2412
|
+
high: string;
|
|
2365
2413
|
id: string;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2414
|
+
low: string;
|
|
2415
|
+
open: string;
|
|
2416
|
+
timestamp: string;
|
|
2417
|
+
volume: {
|
|
2418
|
+
base: string;
|
|
2419
|
+
quote: string;
|
|
2420
|
+
};
|
|
2371
2421
|
}[];
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2422
|
+
interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
|
|
2423
|
+
quote: {
|
|
2424
|
+
address: `0x${string}`;
|
|
2425
|
+
currency?: string | undefined;
|
|
2426
|
+
decimals?: number | undefined;
|
|
2427
|
+
logoUri?: string | undefined;
|
|
2428
|
+
name?: string | undefined;
|
|
2429
|
+
symbol?: string | undefined;
|
|
2430
|
+
verified?: boolean | undefined;
|
|
2431
|
+
};
|
|
2432
|
+
truncated: boolean;
|
|
2433
|
+
window: "1h" | "24h" | "30d" | "7d";
|
|
2377
2434
|
};
|
|
2378
2435
|
outputFormat: "json";
|
|
2379
2436
|
status: 200;
|
|
2380
|
-
input: {
|
|
2381
|
-
param: {
|
|
2382
|
-
orderId: string;
|
|
2383
|
-
};
|
|
2384
|
-
} & {
|
|
2385
|
-
query?: {
|
|
2386
|
-
chainId?: string | string[];
|
|
2387
|
-
cursor?: string | string[];
|
|
2388
|
-
include?: string | string[];
|
|
2389
|
-
limit?: string | string[];
|
|
2390
|
-
order?: string | string[];
|
|
2391
|
-
page?: string | string[];
|
|
2392
|
-
} | undefined;
|
|
2393
|
-
};
|
|
2394
|
-
};
|
|
2395
|
-
};
|
|
2396
|
-
} & {
|
|
2397
|
-
"/v1/exchange/pairs/:base/ohlc": {
|
|
2398
|
-
$get: {
|
|
2399
|
-
output: null;
|
|
2400
|
-
outputFormat: "body";
|
|
2401
|
-
status: 402;
|
|
2402
2437
|
input: {
|
|
2403
2438
|
param: {
|
|
2404
2439
|
base: `0x${string}`;
|
|
@@ -2437,14 +2472,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2437
2472
|
} | {
|
|
2438
2473
|
output: {
|
|
2439
2474
|
error: {
|
|
2440
|
-
code: "
|
|
2475
|
+
code: "query_invalid";
|
|
2441
2476
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2442
2477
|
message: string;
|
|
2443
2478
|
};
|
|
2444
2479
|
requestId: string;
|
|
2445
2480
|
};
|
|
2446
2481
|
outputFormat: "json";
|
|
2447
|
-
status:
|
|
2482
|
+
status: 400;
|
|
2448
2483
|
input: {
|
|
2449
2484
|
param: {
|
|
2450
2485
|
base: `0x${string}`;
|
|
@@ -2460,14 +2495,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2460
2495
|
} | {
|
|
2461
2496
|
output: {
|
|
2462
2497
|
error: {
|
|
2463
|
-
code: "
|
|
2498
|
+
code: "pair_invalid";
|
|
2464
2499
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2465
2500
|
message: string;
|
|
2466
2501
|
};
|
|
2467
2502
|
requestId: string;
|
|
2468
2503
|
};
|
|
2469
2504
|
outputFormat: "json";
|
|
2470
|
-
status:
|
|
2505
|
+
status: 400;
|
|
2471
2506
|
input: {
|
|
2472
2507
|
param: {
|
|
2473
2508
|
base: `0x${string}`;
|
|
@@ -2483,14 +2518,30 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2483
2518
|
} | {
|
|
2484
2519
|
output: {
|
|
2485
2520
|
error: {
|
|
2486
|
-
code: "
|
|
2521
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2487
2522
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2488
2523
|
message: string;
|
|
2489
2524
|
};
|
|
2490
2525
|
requestId: string;
|
|
2491
2526
|
};
|
|
2492
2527
|
outputFormat: "json";
|
|
2493
|
-
status:
|
|
2528
|
+
status: 401;
|
|
2529
|
+
input: {
|
|
2530
|
+
param: {
|
|
2531
|
+
base: `0x${string}`;
|
|
2532
|
+
};
|
|
2533
|
+
} & {
|
|
2534
|
+
query?: {
|
|
2535
|
+
chainId?: string | string[];
|
|
2536
|
+
include?: string | string[];
|
|
2537
|
+
interval?: string | string[];
|
|
2538
|
+
window?: string | string[];
|
|
2539
|
+
} | undefined;
|
|
2540
|
+
};
|
|
2541
|
+
} | {
|
|
2542
|
+
output: null;
|
|
2543
|
+
outputFormat: "body";
|
|
2544
|
+
status: 402;
|
|
2494
2545
|
input: {
|
|
2495
2546
|
param: {
|
|
2496
2547
|
base: `0x${string}`;
|
|
@@ -2506,14 +2557,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2506
2557
|
} | {
|
|
2507
2558
|
output: {
|
|
2508
2559
|
error: {
|
|
2509
|
-
code: "
|
|
2560
|
+
code: "api_key_forbidden";
|
|
2510
2561
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2511
2562
|
message: string;
|
|
2512
2563
|
};
|
|
2513
2564
|
requestId: string;
|
|
2514
2565
|
};
|
|
2515
2566
|
outputFormat: "json";
|
|
2516
|
-
status:
|
|
2567
|
+
status: 403;
|
|
2517
2568
|
input: {
|
|
2518
2569
|
param: {
|
|
2519
2570
|
base: `0x${string}`;
|
|
@@ -2529,14 +2580,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2529
2580
|
} | {
|
|
2530
2581
|
output: {
|
|
2531
2582
|
error: {
|
|
2532
|
-
code: "
|
|
2583
|
+
code: "pair_not_found";
|
|
2533
2584
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2534
2585
|
message: string;
|
|
2535
2586
|
};
|
|
2536
2587
|
requestId: string;
|
|
2537
2588
|
};
|
|
2538
2589
|
outputFormat: "json";
|
|
2539
|
-
status:
|
|
2590
|
+
status: 404;
|
|
2540
2591
|
input: {
|
|
2541
2592
|
param: {
|
|
2542
2593
|
base: `0x${string}`;
|
|
@@ -2552,14 +2603,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2552
2603
|
} | {
|
|
2553
2604
|
output: {
|
|
2554
2605
|
error: {
|
|
2555
|
-
code: "
|
|
2606
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2556
2607
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2557
2608
|
message: string;
|
|
2558
2609
|
};
|
|
2559
2610
|
requestId: string;
|
|
2560
2611
|
};
|
|
2561
2612
|
outputFormat: "json";
|
|
2562
|
-
status:
|
|
2613
|
+
status: 429;
|
|
2563
2614
|
input: {
|
|
2564
2615
|
param: {
|
|
2565
2616
|
base: `0x${string}`;
|
|
@@ -2575,14 +2626,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2575
2626
|
} | {
|
|
2576
2627
|
output: {
|
|
2577
2628
|
error: {
|
|
2578
|
-
code: "
|
|
2629
|
+
code: "upstream_error";
|
|
2579
2630
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2580
2631
|
message: string;
|
|
2581
2632
|
};
|
|
2582
2633
|
requestId: string;
|
|
2583
2634
|
};
|
|
2584
2635
|
outputFormat: "json";
|
|
2585
|
-
status:
|
|
2636
|
+
status: 502;
|
|
2586
2637
|
input: {
|
|
2587
2638
|
param: {
|
|
2588
2639
|
base: `0x${string}`;
|
|
@@ -2595,8 +2646,19 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2595
2646
|
window?: string | string[];
|
|
2596
2647
|
} | undefined;
|
|
2597
2648
|
};
|
|
2598
|
-
}
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
} & {
|
|
2652
|
+
"/v1/exchange/pairs/:base/depth": {
|
|
2653
|
+
$get: {
|
|
2599
2654
|
output: {
|
|
2655
|
+
asks: {
|
|
2656
|
+
cumulativeSize: string;
|
|
2657
|
+
id: string;
|
|
2658
|
+
price: string;
|
|
2659
|
+
size: string;
|
|
2660
|
+
tick: number;
|
|
2661
|
+
}[];
|
|
2600
2662
|
base: {
|
|
2601
2663
|
address: `0x${string}`;
|
|
2602
2664
|
currency?: string | undefined;
|
|
@@ -2606,20 +2668,13 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2606
2668
|
symbol?: string | undefined;
|
|
2607
2669
|
verified?: boolean | undefined;
|
|
2608
2670
|
};
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
fillCount: number;
|
|
2612
|
-
high: string;
|
|
2671
|
+
bids: {
|
|
2672
|
+
cumulativeSize: string;
|
|
2613
2673
|
id: string;
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
volume: {
|
|
2618
|
-
base: string;
|
|
2619
|
-
quote: string;
|
|
2620
|
-
};
|
|
2674
|
+
price: string;
|
|
2675
|
+
size: string;
|
|
2676
|
+
tick: number;
|
|
2621
2677
|
}[];
|
|
2622
|
-
interval: "15m" | "1d" | "1h" | "1m" | "4h" | "5m";
|
|
2623
2678
|
quote: {
|
|
2624
2679
|
address: `0x${string}`;
|
|
2625
2680
|
currency?: string | undefined;
|
|
@@ -2629,31 +2684,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2629
2684
|
symbol?: string | undefined;
|
|
2630
2685
|
verified?: boolean | undefined;
|
|
2631
2686
|
};
|
|
2632
|
-
truncated: boolean;
|
|
2633
|
-
window: "1h" | "24h" | "30d" | "7d";
|
|
2634
2687
|
};
|
|
2635
2688
|
outputFormat: "json";
|
|
2636
2689
|
status: 200;
|
|
2637
|
-
input: {
|
|
2638
|
-
param: {
|
|
2639
|
-
base: `0x${string}`;
|
|
2640
|
-
};
|
|
2641
|
-
} & {
|
|
2642
|
-
query?: {
|
|
2643
|
-
chainId?: string | string[];
|
|
2644
|
-
include?: string | string[];
|
|
2645
|
-
interval?: string | string[];
|
|
2646
|
-
window?: string | string[];
|
|
2647
|
-
} | undefined;
|
|
2648
|
-
};
|
|
2649
|
-
};
|
|
2650
|
-
};
|
|
2651
|
-
} & {
|
|
2652
|
-
"/v1/exchange/pairs/:base/depth": {
|
|
2653
|
-
$get: {
|
|
2654
|
-
output: null;
|
|
2655
|
-
outputFormat: "body";
|
|
2656
|
-
status: 402;
|
|
2657
2690
|
input: {
|
|
2658
2691
|
param: {
|
|
2659
2692
|
base: `0x${string}`;
|
|
@@ -2690,14 +2723,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2690
2723
|
} | {
|
|
2691
2724
|
output: {
|
|
2692
2725
|
error: {
|
|
2693
|
-
code: "
|
|
2726
|
+
code: "query_invalid";
|
|
2694
2727
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2695
2728
|
message: string;
|
|
2696
2729
|
};
|
|
2697
2730
|
requestId: string;
|
|
2698
2731
|
};
|
|
2699
2732
|
outputFormat: "json";
|
|
2700
|
-
status:
|
|
2733
|
+
status: 400;
|
|
2701
2734
|
input: {
|
|
2702
2735
|
param: {
|
|
2703
2736
|
base: `0x${string}`;
|
|
@@ -2712,14 +2745,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2712
2745
|
} | {
|
|
2713
2746
|
output: {
|
|
2714
2747
|
error: {
|
|
2715
|
-
code: "
|
|
2748
|
+
code: "pair_invalid";
|
|
2716
2749
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2717
2750
|
message: string;
|
|
2718
2751
|
};
|
|
2719
2752
|
requestId: string;
|
|
2720
2753
|
};
|
|
2721
2754
|
outputFormat: "json";
|
|
2722
|
-
status:
|
|
2755
|
+
status: 400;
|
|
2723
2756
|
input: {
|
|
2724
2757
|
param: {
|
|
2725
2758
|
base: `0x${string}`;
|
|
@@ -2734,14 +2767,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2734
2767
|
} | {
|
|
2735
2768
|
output: {
|
|
2736
2769
|
error: {
|
|
2737
|
-
code: "
|
|
2770
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2738
2771
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2739
2772
|
message: string;
|
|
2740
2773
|
};
|
|
2741
2774
|
requestId: string;
|
|
2742
2775
|
};
|
|
2743
2776
|
outputFormat: "json";
|
|
2744
|
-
status:
|
|
2777
|
+
status: 401;
|
|
2745
2778
|
input: {
|
|
2746
2779
|
param: {
|
|
2747
2780
|
base: `0x${string}`;
|
|
@@ -2754,16 +2787,9 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2754
2787
|
} | undefined;
|
|
2755
2788
|
};
|
|
2756
2789
|
} | {
|
|
2757
|
-
output:
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2761
|
-
message: string;
|
|
2762
|
-
};
|
|
2763
|
-
requestId: string;
|
|
2764
|
-
};
|
|
2765
|
-
outputFormat: "json";
|
|
2766
|
-
status: 400;
|
|
2790
|
+
output: null;
|
|
2791
|
+
outputFormat: "body";
|
|
2792
|
+
status: 402;
|
|
2767
2793
|
input: {
|
|
2768
2794
|
param: {
|
|
2769
2795
|
base: `0x${string}`;
|
|
@@ -2778,14 +2804,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2778
2804
|
} | {
|
|
2779
2805
|
output: {
|
|
2780
2806
|
error: {
|
|
2781
|
-
code: "
|
|
2807
|
+
code: "api_key_forbidden";
|
|
2782
2808
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2783
2809
|
message: string;
|
|
2784
2810
|
};
|
|
2785
2811
|
requestId: string;
|
|
2786
2812
|
};
|
|
2787
2813
|
outputFormat: "json";
|
|
2788
|
-
status:
|
|
2814
|
+
status: 403;
|
|
2789
2815
|
input: {
|
|
2790
2816
|
param: {
|
|
2791
2817
|
base: `0x${string}`;
|
|
@@ -2800,14 +2826,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2800
2826
|
} | {
|
|
2801
2827
|
output: {
|
|
2802
2828
|
error: {
|
|
2803
|
-
code: "
|
|
2829
|
+
code: "pair_not_found";
|
|
2804
2830
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2805
2831
|
message: string;
|
|
2806
2832
|
};
|
|
2807
2833
|
requestId: string;
|
|
2808
2834
|
};
|
|
2809
2835
|
outputFormat: "json";
|
|
2810
|
-
status:
|
|
2836
|
+
status: 404;
|
|
2811
2837
|
input: {
|
|
2812
2838
|
param: {
|
|
2813
2839
|
base: `0x${string}`;
|
|
@@ -2822,14 +2848,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2822
2848
|
} | {
|
|
2823
2849
|
output: {
|
|
2824
2850
|
error: {
|
|
2825
|
-
code: "
|
|
2851
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2826
2852
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2827
2853
|
message: string;
|
|
2828
2854
|
};
|
|
2829
2855
|
requestId: string;
|
|
2830
2856
|
};
|
|
2831
2857
|
outputFormat: "json";
|
|
2832
|
-
status:
|
|
2858
|
+
status: 429;
|
|
2833
2859
|
input: {
|
|
2834
2860
|
param: {
|
|
2835
2861
|
base: `0x${string}`;
|
|
@@ -2843,41 +2869,15 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2843
2869
|
};
|
|
2844
2870
|
} | {
|
|
2845
2871
|
output: {
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
size: string;
|
|
2851
|
-
tick: number;
|
|
2852
|
-
}[];
|
|
2853
|
-
base: {
|
|
2854
|
-
address: `0x${string}`;
|
|
2855
|
-
currency?: string | undefined;
|
|
2856
|
-
decimals?: number | undefined;
|
|
2857
|
-
logoUri?: string | undefined;
|
|
2858
|
-
name?: string | undefined;
|
|
2859
|
-
symbol?: string | undefined;
|
|
2860
|
-
verified?: boolean | undefined;
|
|
2861
|
-
};
|
|
2862
|
-
bids: {
|
|
2863
|
-
cumulativeSize: string;
|
|
2864
|
-
id: string;
|
|
2865
|
-
price: string;
|
|
2866
|
-
size: string;
|
|
2867
|
-
tick: number;
|
|
2868
|
-
}[];
|
|
2869
|
-
quote: {
|
|
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;
|
|
2872
|
+
error: {
|
|
2873
|
+
code: "upstream_error";
|
|
2874
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
2875
|
+
message: string;
|
|
2877
2876
|
};
|
|
2877
|
+
requestId: string;
|
|
2878
2878
|
};
|
|
2879
2879
|
outputFormat: "json";
|
|
2880
|
-
status:
|
|
2880
|
+
status: 502;
|
|
2881
2881
|
input: {
|
|
2882
2882
|
param: {
|
|
2883
2883
|
base: `0x${string}`;
|