@pulsight-xyz/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/dist/backtest.d.ts +18 -0
- package/dist/backtest.d.ts.map +1 -0
- package/dist/backtest.js +48 -0
- package/dist/backtest.js.map +1 -0
- package/dist/client.d.ts +34 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +77 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +41 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +96 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +217 -0
- package/dist/generated/client/client.gen.js.map +1 -0
- package/dist/generated/client/index.d.ts +9 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +7 -0
- package/dist/generated/client/index.js.map +1 -0
- package/dist/generated/client/types.gen.d.ts +121 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +3 -0
- package/dist/generated/client/types.gen.js.map +1 -0
- package/dist/generated/client/utils.gen.d.ts +38 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +229 -0
- package/dist/generated/client/utils.gen.js.map +1 -0
- package/dist/generated/client.gen.d.ts +13 -0
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +4 -0
- package/dist/generated/client.gen.js.map +1 -0
- package/dist/generated/core/auth.gen.d.ts +19 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +15 -0
- package/dist/generated/core/auth.gen.js.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +58 -0
- package/dist/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/generated/core/params.gen.d.ts +44 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +101 -0
- package/dist/generated/core/params.gen.js.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +107 -0
- package/dist/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +93 -0
- package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +133 -0
- package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/generated/core/types.gen.d.ts +79 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +3 -0
- package/dist/generated/core/types.gen.js.map +1 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +88 -0
- package/dist/generated/core/utils.gen.js.map +1 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +3 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/sdk.gen.d.ts +322 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +550 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/dist/generated/types.gen.d.ts +3337 -0
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +3 -0
- package/dist/generated/types.gen.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/package.json +40 -0
- package/src/backtest.ts +72 -0
- package/src/client.ts +98 -0
- package/src/errors.ts +99 -0
- package/src/generated/client/client.gen.ts +277 -0
- package/src/generated/client/index.ts +25 -0
- package/src/generated/client/types.gen.ts +218 -0
- package/src/generated/client/utils.gen.ts +316 -0
- package/src/generated/client.gen.ts +16 -0
- package/src/generated/core/auth.gen.ts +41 -0
- package/src/generated/core/bodySerializer.gen.ts +82 -0
- package/src/generated/core/params.gen.ts +169 -0
- package/src/generated/core/pathSerializer.gen.ts +171 -0
- package/src/generated/core/queryKeySerializer.gen.ts +117 -0
- package/src/generated/core/serverSentEvents.gen.ts +242 -0
- package/src/generated/core/types.gen.ts +104 -0
- package/src/generated/core/utils.gen.ts +140 -0
- package/src/generated/index.ts +4 -0
- package/src/generated/sdk.gen.ts +625 -0
- package/src/generated/types.gen.ts +3730 -0
- package/src/index.ts +29 -0
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
4
|
+
import { client } from './client.gen';
|
|
5
|
+
import type { DeleteBacktestsByIdData, DeleteBacktestsByIdResponses, DeleteMeApiKeysByIdData, DeleteMeApiKeysByIdErrors, DeleteMeApiKeysByIdResponses, DeleteStrategiesByIdData, DeleteStrategiesByIdErrors, DeleteStrategiesByIdResponses, DeleteTraderFiltersByIdData, DeleteTraderFiltersByIdErrors, DeleteTraderFiltersByIdResponses, GetBacktestsByIdData, GetBacktestsByIdErrors, GetBacktestsByIdResponses, GetBacktestsByIdTradesData, GetBacktestsByIdTradesErrors, GetBacktestsByIdTradesResponses, GetBacktestsData, GetBacktestsErrors, GetBacktestsLimitsData, GetBacktestsLimitsErrors, GetBacktestsLimitsResponses, GetBacktestsResponses, GetHealthData, GetHealthErrors, GetHealthResponses, GetMeApiKeysData, GetMeApiKeysErrors, GetMeApiKeysResponses, GetMeCreditsData, GetMeCreditsErrors, GetMeCreditsLedgerData, GetMeCreditsLedgerErrors, GetMeCreditsLedgerResponses, GetMeCreditsResponses, GetMintsByPubkeyData, GetMintsByPubkeyErrors, GetMintsByPubkeyLpEventsData, GetMintsByPubkeyLpEventsErrors, GetMintsByPubkeyLpEventsResponses, GetMintsByPubkeyMarketsData, GetMintsByPubkeyMarketsErrors, GetMintsByPubkeyMarketsResponses, GetMintsByPubkeyMigrationsData, GetMintsByPubkeyMigrationsErrors, GetMintsByPubkeyMigrationsResponses, GetMintsByPubkeyResponses, GetMintsByPubkeySafetyEventsData, GetMintsByPubkeySafetyEventsErrors, GetMintsByPubkeySafetyEventsResponses, GetMintsByPubkeyStatsData, GetMintsByPubkeyStatsErrors, GetMintsByPubkeyStatsResponses, GetMintsByPubkeyTopHoldersData, GetMintsByPubkeyTopHoldersErrors, GetMintsByPubkeyTopHoldersResponses, GetMintsByPubkeyTopTradersData, GetMintsByPubkeyTopTradersErrors, GetMintsByPubkeyTopTradersResponses, GetMintsByPubkeyTradersByTraderData, GetMintsByPubkeyTradersByTraderErrors, GetMintsByPubkeyTradersByTraderResponses, GetMintsData, GetMintsErrors, GetMintsResponses, GetOhlcvData, GetOhlcvErrors, GetOhlcvResponses, GetStrategiesByIdData, GetStrategiesByIdErrors, GetStrategiesByIdResponses, GetStrategiesDashboardData, GetStrategiesDashboardErrors, GetStrategiesDashboardResponses, GetStrategiesData, GetStrategiesErrors, GetStrategiesResponses, GetStrategiesWithStatsData, GetStrategiesWithStatsErrors, GetStrategiesWithStatsResponses, GetSubscriptionsMeData, GetSubscriptionsMeErrors, GetSubscriptionsMeResponses, GetSwapsData, GetSwapsErrors, GetSwapsResponses, GetTipsGlobalData, GetTipsGlobalErrors, GetTipsGlobalResponses, GetTipsHeatmapData, GetTipsHeatmapErrors, GetTipsHeatmapResponses, GetTipsLeaderboardJitoEfficiencyData, GetTipsLeaderboardJitoEfficiencyErrors, GetTipsLeaderboardJitoEfficiencyResponses, GetTipsMatData, GetTipsMatErrors, GetTipsMatResponses, GetTipsMevShareData, GetTipsMevShareErrors, GetTipsMevShareResponses, GetTipsPriorityRatioData, GetTipsPriorityRatioErrors, GetTipsPriorityRatioResponses, GetTipsServicesData, GetTipsServicesErrors, GetTipsServicesResponses, GetTraderFiltersByIdData, GetTraderFiltersByIdErrors, GetTraderFiltersByIdResponses, GetTraderFiltersData, GetTraderFiltersErrors, GetTraderFiltersResponses, GetTradersByIdByTraderIdData, GetTradersByIdByTraderIdErrors, GetTradersByIdByTraderIdResponses, GetTradersByTraderIdDailyProfitsData, GetTradersByTraderIdDailyProfitsErrors, GetTradersByTraderIdDailyProfitsResponses, GetTradersByTraderIdPnlsData, GetTradersByTraderIdPnlsErrors, GetTradersByTraderIdPnlsResponses, GetTradersByWalletAddressCreatedTokensData, GetTradersByWalletAddressCreatedTokensErrors, GetTradersByWalletAddressCreatedTokensResponses, GetTradersByWalletAddressPnlSeriesData, GetTradersByWalletAddressPnlSeriesErrors, GetTradersByWalletAddressPnlSeriesResponses, GetTradersByWalletAddressTipsData, GetTradersByWalletAddressTipsErrors, GetTradersByWalletAddressTipsResponses, GetTradersByWalletAddressTipsServicesData, GetTradersByWalletAddressTipsServicesErrors, GetTradersByWalletAddressTipsServicesResponses, GetTradersByWalletAddressTokensData, GetTradersByWalletAddressTokensErrors, GetTradersByWalletAddressTokensResponses, GetTradersByWalletByWalletAddressData, GetTradersByWalletByWalletAddressErrors, GetTradersByWalletByWalletAddressResponses, GetTradersData, GetTradersErrors, GetTradersResponses, GetTradersSearchData, GetTradersSearchErrors, GetTradersSearchResponses, GetTradersSnapshotData, GetTradersSnapshotErrors, GetTradersSnapshotResponses, PatchMeApiKeysByIdData, PatchMeApiKeysByIdErrors, PatchMeApiKeysByIdResponses, PostBacktestsData, PostBacktestsErrors, PostBacktestsResponses, PostMeApiKeysData, PostMeApiKeysErrors, PostMeApiKeysResponses, PostStrategiesData, PostStrategiesErrors, PostStrategiesPreviewData, PostStrategiesPreviewErrors, PostStrategiesPreviewResponses, PostStrategiesResponses, PostTraderFiltersData, PostTraderFiltersErrors, PostTraderFiltersResponses, PostTradersExportData, PostTradersExportErrors, PostTradersExportResponses, PutStrategiesByIdData, PutStrategiesByIdErrors, PutStrategiesByIdResponses, PutTraderFiltersByIdData, PutTraderFiltersByIdErrors, PutTraderFiltersByIdResponses } from './types.gen';
|
|
6
|
+
|
|
7
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
8
|
+
/**
|
|
9
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
10
|
+
* individual options. This might be also useful if you want to implement a
|
|
11
|
+
* custom client.
|
|
12
|
+
*/
|
|
13
|
+
client?: Client;
|
|
14
|
+
/**
|
|
15
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
17
|
+
*/
|
|
18
|
+
meta?: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* List Backtests by Strategy
|
|
23
|
+
*/
|
|
24
|
+
export const getBacktests = <ThrowOnError extends boolean = false>(options?: Options<GetBacktestsData, ThrowOnError>) => (options?.client ?? client).get<GetBacktestsResponses, GetBacktestsErrors, ThrowOnError>({
|
|
25
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
26
|
+
url: '/api/backtests',
|
|
27
|
+
...options
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Submit Backtest
|
|
32
|
+
*/
|
|
33
|
+
export const postBacktests = <ThrowOnError extends boolean = false>(options: Options<PostBacktestsData, ThrowOnError>) => (options.client ?? client).post<PostBacktestsResponses, PostBacktestsErrors, ThrowOnError>({
|
|
34
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
35
|
+
url: '/api/backtests',
|
|
36
|
+
...options,
|
|
37
|
+
headers: {
|
|
38
|
+
'Content-Type': 'application/json',
|
|
39
|
+
...options.headers
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Get Backtest Limits
|
|
45
|
+
*
|
|
46
|
+
* Returns the per-run backtest cost ceiling (max credits per run) so clients can show and pre-check it.
|
|
47
|
+
*/
|
|
48
|
+
export const getBacktestsLimits = <ThrowOnError extends boolean = false>(options?: Options<GetBacktestsLimitsData, ThrowOnError>) => (options?.client ?? client).get<GetBacktestsLimitsResponses, GetBacktestsLimitsErrors, ThrowOnError>({
|
|
49
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
50
|
+
url: '/api/backtests/limits',
|
|
51
|
+
...options
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Cancel Backtest
|
|
56
|
+
*/
|
|
57
|
+
export const deleteBacktestsById = <ThrowOnError extends boolean = false>(options: Options<DeleteBacktestsByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteBacktestsByIdResponses, unknown, ThrowOnError>({
|
|
58
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
59
|
+
url: '/api/backtests/{id}',
|
|
60
|
+
...options
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Get Backtest
|
|
65
|
+
*/
|
|
66
|
+
export const getBacktestsById = <ThrowOnError extends boolean = false>(options: Options<GetBacktestsByIdData, ThrowOnError>) => (options.client ?? client).get<GetBacktestsByIdResponses, GetBacktestsByIdErrors, ThrowOnError>({
|
|
67
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
68
|
+
url: '/api/backtests/{id}',
|
|
69
|
+
...options
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* List Backtest Trades
|
|
74
|
+
*/
|
|
75
|
+
export const getBacktestsByIdTrades = <ThrowOnError extends boolean = false>(options: Options<GetBacktestsByIdTradesData, ThrowOnError>) => (options.client ?? client).get<GetBacktestsByIdTradesResponses, GetBacktestsByIdTradesErrors, ThrowOnError>({
|
|
76
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
77
|
+
url: '/api/backtests/{id}/trades',
|
|
78
|
+
...options
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Get Health
|
|
83
|
+
*
|
|
84
|
+
* Evaluates the connectivity of backing services and returns a system status overview.
|
|
85
|
+
*/
|
|
86
|
+
export const getHealth = <ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>) => (options?.client ?? client).get<GetHealthResponses, GetHealthErrors, ThrowOnError>({ url: '/api/health', ...options });
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* List API Keys
|
|
90
|
+
*
|
|
91
|
+
* Returns the caller's api tokens: prefix, name, scopes, last_used_at, status timestamps.
|
|
92
|
+
*/
|
|
93
|
+
export const getMeApiKeys = <ThrowOnError extends boolean = false>(options?: Options<GetMeApiKeysData, ThrowOnError>) => (options?.client ?? client).get<GetMeApiKeysResponses, GetMeApiKeysErrors, ThrowOnError>({
|
|
94
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
95
|
+
url: '/api/me/api-keys',
|
|
96
|
+
...options
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Create API Key
|
|
101
|
+
*
|
|
102
|
+
* Creates an api token. The plaintext is returned once and never stored — copy it now.
|
|
103
|
+
*/
|
|
104
|
+
export const postMeApiKeys = <ThrowOnError extends boolean = false>(options: Options<PostMeApiKeysData, ThrowOnError>) => (options.client ?? client).post<PostMeApiKeysResponses, PostMeApiKeysErrors, ThrowOnError>({
|
|
105
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
106
|
+
url: '/api/me/api-keys',
|
|
107
|
+
...options,
|
|
108
|
+
headers: {
|
|
109
|
+
'Content-Type': 'application/json',
|
|
110
|
+
...options.headers
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Revoke API Key
|
|
116
|
+
*
|
|
117
|
+
* Revokes one of the caller's api tokens. Irreversible.
|
|
118
|
+
*/
|
|
119
|
+
export const deleteMeApiKeysById = <ThrowOnError extends boolean = false>(options: Options<DeleteMeApiKeysByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteMeApiKeysByIdResponses, DeleteMeApiKeysByIdErrors, ThrowOnError>({
|
|
120
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
121
|
+
url: '/api/me/api-keys/{id}',
|
|
122
|
+
...options
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Rename API Key
|
|
127
|
+
*
|
|
128
|
+
* Updates the display name of one of the caller's api tokens.
|
|
129
|
+
*/
|
|
130
|
+
export const patchMeApiKeysById = <ThrowOnError extends boolean = false>(options: Options<PatchMeApiKeysByIdData, ThrowOnError>) => (options.client ?? client).patch<PatchMeApiKeysByIdResponses, PatchMeApiKeysByIdErrors, ThrowOnError>({
|
|
131
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
132
|
+
url: '/api/me/api-keys/{id}',
|
|
133
|
+
...options,
|
|
134
|
+
headers: {
|
|
135
|
+
'Content-Type': 'application/json',
|
|
136
|
+
...options.headers
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Get My Credits
|
|
142
|
+
*
|
|
143
|
+
* Returns the caller's credit balance, per-cycle allowance and current period for the api credit pool.
|
|
144
|
+
*/
|
|
145
|
+
export const getMeCredits = <ThrowOnError extends boolean = false>(options?: Options<GetMeCreditsData, ThrowOnError>) => (options?.client ?? client).get<GetMeCreditsResponses, GetMeCreditsErrors, ThrowOnError>({
|
|
146
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
147
|
+
url: '/api/me/credits',
|
|
148
|
+
...options
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Get My Credit Ledger
|
|
153
|
+
*
|
|
154
|
+
* Returns the caller's recent credit ledger entries (grants, consumes, refunds), newest first.
|
|
155
|
+
*/
|
|
156
|
+
export const getMeCreditsLedger = <ThrowOnError extends boolean = false>(options?: Options<GetMeCreditsLedgerData, ThrowOnError>) => (options?.client ?? client).get<GetMeCreditsLedgerResponses, GetMeCreditsLedgerErrors, ThrowOnError>({
|
|
157
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
158
|
+
url: '/api/me/credits/ledger',
|
|
159
|
+
...options
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* List Active Mints
|
|
164
|
+
*
|
|
165
|
+
* Returns the active-mint catalog with windowed stats. The activity gate is `hourly_mint_trader_activity`; rows ordered by window-bound activity desc. By default the list hides low-liquidity (dust / drained-pool) mints — see `min_pool_sol`.
|
|
166
|
+
*/
|
|
167
|
+
export const getMints = <ThrowOnError extends boolean = false>(options: Options<GetMintsData, ThrowOnError>) => (options.client ?? client).get<GetMintsResponses, GetMintsErrors, ThrowOnError>({
|
|
168
|
+
querySerializer: { parameters: { dex: { array: { explode: false } } } },
|
|
169
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
170
|
+
url: '/api/mints',
|
|
171
|
+
...options
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Get Mint
|
|
176
|
+
*
|
|
177
|
+
* Returns the mint's identity row (symbol, name, logo_uri, decimals, creator) from the CA catalog. 404 when the pubkey is not present — the enricher may not have seen this mint yet.
|
|
178
|
+
*/
|
|
179
|
+
export const getMintsByPubkey = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyResponses, GetMintsByPubkeyErrors, ThrowOnError>({
|
|
180
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
181
|
+
url: '/api/mints/{pubkey}',
|
|
182
|
+
...options
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* List Mint LP Events
|
|
187
|
+
*
|
|
188
|
+
* Recent liquidity-pool add/remove/burn events for a mint (newest first), from `lp_events`. Sparse where upstream doesn't yet extract LP for a DEX; returns an empty array then.
|
|
189
|
+
*/
|
|
190
|
+
export const getMintsByPubkeyLpEvents = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyLpEventsData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyLpEventsResponses, GetMintsByPubkeyLpEventsErrors, ThrowOnError>({
|
|
191
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
192
|
+
url: '/api/mints/{pubkey}/lp-events',
|
|
193
|
+
...options
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* List Mint Markets
|
|
198
|
+
*
|
|
199
|
+
* Returns per-(pool, dex) rollup with SOL-volume share (0..1) for a single mint over the requested window. `window=all` lists every market the mint ever traded on — use it to resolve markets for tokens with no recent activity.
|
|
200
|
+
*/
|
|
201
|
+
export const getMintsByPubkeyMarkets = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyMarketsData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyMarketsResponses, GetMintsByPubkeyMarketsErrors, ThrowOnError>({
|
|
202
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
203
|
+
url: '/api/mints/{pubkey}/markets',
|
|
204
|
+
...options
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* List Mint Migrations
|
|
209
|
+
*
|
|
210
|
+
* Returns bonding-curve → AMM graduation events (PumpFun → PumpSwap, Raydium Launchpad → CPMM, Meteora DBC → DAMM v2, etc.) for a single mint.
|
|
211
|
+
*/
|
|
212
|
+
export const getMintsByPubkeyMigrations = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyMigrationsData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyMigrationsResponses, GetMintsByPubkeyMigrationsErrors, ThrowOnError>({
|
|
213
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
214
|
+
url: '/api/mints/{pubkey}/migrations',
|
|
215
|
+
...options
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* List Mint Safety Events
|
|
220
|
+
*
|
|
221
|
+
* Recent token-safety events (burn|mint_to|freeze|thaw|authority_change) for a mint (newest first), from `mint_safety_events`.
|
|
222
|
+
*/
|
|
223
|
+
export const getMintsByPubkeySafetyEvents = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeySafetyEventsData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeySafetyEventsResponses, GetMintsByPubkeySafetyEventsErrors, ThrowOnError>({
|
|
224
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
225
|
+
url: '/api/mints/{pubkey}/safety-events',
|
|
226
|
+
...options
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Find Mint Stats Bundle
|
|
231
|
+
*
|
|
232
|
+
* Returns per-mint windowed stats (volume, price_change, swap_count, buy/sell split) for all four windows (1m/5m/1h/24h) in one response.
|
|
233
|
+
*/
|
|
234
|
+
export const getMintsByPubkeyStats = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyStatsData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyStatsResponses, GetMintsByPubkeyStatsErrors, ThrowOnError>({
|
|
235
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
236
|
+
url: '/api/mints/{pubkey}/stats',
|
|
237
|
+
...options
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* List Mint Top Holders
|
|
242
|
+
*
|
|
243
|
+
* Current holders (token_balance > 0) of one mint from `trader_token_stats`. sort ∈ {balance,holding_pnl,recent} (default balance). Paged via offset.
|
|
244
|
+
*/
|
|
245
|
+
export const getMintsByPubkeyTopHolders = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyTopHoldersData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyTopHoldersResponses, GetMintsByPubkeyTopHoldersErrors, ThrowOnError>({
|
|
246
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
247
|
+
url: '/api/mints/{pubkey}/top-holders',
|
|
248
|
+
...options
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* List Mint Top Traders
|
|
253
|
+
*
|
|
254
|
+
* Per-(trader) leaderboard for one mint from `trader_token_stats` (all positions). sort ∈ {pnl,volume,swaps,recent} (default pnl). Paged via offset.
|
|
255
|
+
*/
|
|
256
|
+
export const getMintsByPubkeyTopTraders = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyTopTradersData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyTopTradersResponses, GetMintsByPubkeyTopTradersErrors, ThrowOnError>({
|
|
257
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
258
|
+
url: '/api/mints/{pubkey}/top-traders',
|
|
259
|
+
...options
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Get Mint Trader Stats
|
|
264
|
+
*
|
|
265
|
+
* Single per-(trader, mint) stats row (same shape as a top-traders row) from `trader_token_stats`. 404 when the trader never traded the mint.
|
|
266
|
+
*/
|
|
267
|
+
export const getMintsByPubkeyTradersByTrader = <ThrowOnError extends boolean = false>(options: Options<GetMintsByPubkeyTradersByTraderData, ThrowOnError>) => (options.client ?? client).get<GetMintsByPubkeyTradersByTraderResponses, GetMintsByPubkeyTradersByTraderErrors, ThrowOnError>({
|
|
268
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
269
|
+
url: '/api/mints/{pubkey}/traders/{trader}',
|
|
270
|
+
...options
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* List OHLCV Candles
|
|
275
|
+
*
|
|
276
|
+
* Returns OHLCV buckets for a mint at the given timeframe within `[from, to)`. Both time params are optional; omitting them returns the last ~500 candles.
|
|
277
|
+
*/
|
|
278
|
+
export const getOhlcv = <ThrowOnError extends boolean = false>(options: Options<GetOhlcvData, ThrowOnError>) => (options.client ?? client).get<GetOhlcvResponses, GetOhlcvErrors, ThrowOnError>({
|
|
279
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
280
|
+
url: '/api/ohlcv',
|
|
281
|
+
...options
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* List Strategies
|
|
286
|
+
*/
|
|
287
|
+
export const getStrategies = <ThrowOnError extends boolean = false>(options?: Options<GetStrategiesData, ThrowOnError>) => (options?.client ?? client).get<GetStrategiesResponses, GetStrategiesErrors, ThrowOnError>({
|
|
288
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
289
|
+
url: '/api/strategies',
|
|
290
|
+
...options
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Create Strategy
|
|
295
|
+
*/
|
|
296
|
+
export const postStrategies = <ThrowOnError extends boolean = false>(options: Options<PostStrategiesData, ThrowOnError>) => (options.client ?? client).post<PostStrategiesResponses, PostStrategiesErrors, ThrowOnError>({
|
|
297
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
298
|
+
url: '/api/strategies',
|
|
299
|
+
...options,
|
|
300
|
+
headers: {
|
|
301
|
+
'Content-Type': 'application/json',
|
|
302
|
+
...options.headers
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Strategy Dashboard Stats
|
|
308
|
+
*/
|
|
309
|
+
export const getStrategiesDashboard = <ThrowOnError extends boolean = false>(options?: Options<GetStrategiesDashboardData, ThrowOnError>) => (options?.client ?? client).get<GetStrategiesDashboardResponses, GetStrategiesDashboardErrors, ThrowOnError>({
|
|
310
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
311
|
+
url: '/api/strategies/dashboard',
|
|
312
|
+
...options
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Preview Strategy
|
|
317
|
+
*/
|
|
318
|
+
export const postStrategiesPreview = <ThrowOnError extends boolean = false>(options: Options<PostStrategiesPreviewData, ThrowOnError>) => (options.client ?? client).post<PostStrategiesPreviewResponses, PostStrategiesPreviewErrors, ThrowOnError>({
|
|
319
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
320
|
+
url: '/api/strategies/preview',
|
|
321
|
+
...options,
|
|
322
|
+
headers: {
|
|
323
|
+
'Content-Type': 'application/json',
|
|
324
|
+
...options.headers
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* List Strategies with Stats
|
|
330
|
+
*/
|
|
331
|
+
export const getStrategiesWithStats = <ThrowOnError extends boolean = false>(options?: Options<GetStrategiesWithStatsData, ThrowOnError>) => (options?.client ?? client).get<GetStrategiesWithStatsResponses, GetStrategiesWithStatsErrors, ThrowOnError>({
|
|
332
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
333
|
+
url: '/api/strategies/with-stats',
|
|
334
|
+
...options
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Delete Strategy
|
|
339
|
+
*/
|
|
340
|
+
export const deleteStrategiesById = <ThrowOnError extends boolean = false>(options: Options<DeleteStrategiesByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteStrategiesByIdResponses, DeleteStrategiesByIdErrors, ThrowOnError>({
|
|
341
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
342
|
+
url: '/api/strategies/{id}',
|
|
343
|
+
...options
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Get Strategy
|
|
348
|
+
*/
|
|
349
|
+
export const getStrategiesById = <ThrowOnError extends boolean = false>(options: Options<GetStrategiesByIdData, ThrowOnError>) => (options.client ?? client).get<GetStrategiesByIdResponses, GetStrategiesByIdErrors, ThrowOnError>({
|
|
350
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
351
|
+
url: '/api/strategies/{id}',
|
|
352
|
+
...options
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Update Strategy
|
|
357
|
+
*/
|
|
358
|
+
export const putStrategiesById = <ThrowOnError extends boolean = false>(options: Options<PutStrategiesByIdData, ThrowOnError>) => (options.client ?? client).put<PutStrategiesByIdResponses, PutStrategiesByIdErrors, ThrowOnError>({
|
|
359
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
360
|
+
url: '/api/strategies/{id}',
|
|
361
|
+
...options,
|
|
362
|
+
headers: {
|
|
363
|
+
'Content-Type': 'application/json',
|
|
364
|
+
...options.headers
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Get My Subscription
|
|
370
|
+
*
|
|
371
|
+
* Returns the current user's subscription info including limits and usage.
|
|
372
|
+
*/
|
|
373
|
+
export const getSubscriptionsMe = <ThrowOnError extends boolean = false>(options?: Options<GetSubscriptionsMeData, ThrowOnError>) => (options?.client ?? client).get<GetSubscriptionsMeResponses, GetSubscriptionsMeErrors, ThrowOnError>({
|
|
374
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
375
|
+
url: '/api/subscriptions/me',
|
|
376
|
+
...options
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* List Swaps
|
|
381
|
+
*
|
|
382
|
+
* Returns swaps filtered by `mint` and/or one-or-more `trader` params (AND-combined; at least one required). `trader` may be repeated (trader=a&trader=b) or comma-separated. All time params are optional; with none supplied the latest swaps are returned regardless of age. Supports RFC3339 from/to, Unix epoch from_ts/to_ts, and cursor-based before_ts (returns the latest swaps strictly older than the cursor — no lower bound, so pagination crosses activity gaps).
|
|
383
|
+
*/
|
|
384
|
+
export const getSwaps = <ThrowOnError extends boolean = false>(options?: Options<GetSwapsData, ThrowOnError>) => (options?.client ?? client).get<GetSwapsResponses, GetSwapsErrors, ThrowOnError>({
|
|
385
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
386
|
+
url: '/api/swaps',
|
|
387
|
+
...options
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Global tip stats
|
|
392
|
+
*/
|
|
393
|
+
export const getTipsGlobal = <ThrowOnError extends boolean = false>(options?: Options<GetTipsGlobalData, ThrowOnError>) => (options?.client ?? client).get<GetTipsGlobalResponses, GetTipsGlobalErrors, ThrowOnError>({ url: '/api/tips/global', ...options });
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Tip heatmap
|
|
397
|
+
*/
|
|
398
|
+
export const getTipsHeatmap = <ThrowOnError extends boolean = false>(options?: Options<GetTipsHeatmapData, ThrowOnError>) => (options?.client ?? client).get<GetTipsHeatmapResponses, GetTipsHeatmapErrors, ThrowOnError>({ url: '/api/tips/heatmap', ...options });
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Jito-efficiency leaderboard
|
|
402
|
+
*/
|
|
403
|
+
export const getTipsLeaderboardJitoEfficiency = <ThrowOnError extends boolean = false>(options?: Options<GetTipsLeaderboardJitoEfficiencyData, ThrowOnError>) => (options?.client ?? client).get<GetTipsLeaderboardJitoEfficiencyResponses, GetTipsLeaderboardJitoEfficiencyErrors, ThrowOnError>({ url: '/api/tips/leaderboard/jito-efficiency', ...options });
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Tip moving-average series
|
|
407
|
+
*/
|
|
408
|
+
export const getTipsMat = <ThrowOnError extends boolean = false>(options?: Options<GetTipsMatData, ThrowOnError>) => (options?.client ?? client).get<GetTipsMatResponses, GetTipsMatErrors, ThrowOnError>({ url: '/api/tips/mat', ...options });
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Tipped-volume share series
|
|
412
|
+
*/
|
|
413
|
+
export const getTipsMevShare = <ThrowOnError extends boolean = false>(options?: Options<GetTipsMevShareData, ThrowOnError>) => (options?.client ?? client).get<GetTipsMevShareResponses, GetTipsMevShareErrors, ThrowOnError>({ url: '/api/tips/mev-share', ...options });
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Tip vs priority-fee ratio series
|
|
417
|
+
*/
|
|
418
|
+
export const getTipsPriorityRatio = <ThrowOnError extends boolean = false>(options?: Options<GetTipsPriorityRatioData, ThrowOnError>) => (options?.client ?? client).get<GetTipsPriorityRatioResponses, GetTipsPriorityRatioErrors, ThrowOnError>({ url: '/api/tips/priority-ratio', ...options });
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Tip service dominance
|
|
422
|
+
*/
|
|
423
|
+
export const getTipsServices = <ThrowOnError extends boolean = false>(options?: Options<GetTipsServicesData, ThrowOnError>) => (options?.client ?? client).get<GetTipsServicesResponses, GetTipsServicesErrors, ThrowOnError>({ url: '/api/tips/services', ...options });
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* List Trader Filters
|
|
427
|
+
*
|
|
428
|
+
* Returns all saved filter presets belonging to the authenticated user.
|
|
429
|
+
*/
|
|
430
|
+
export const getTraderFilters = <ThrowOnError extends boolean = false>(options?: Options<GetTraderFiltersData, ThrowOnError>) => (options?.client ?? client).get<GetTraderFiltersResponses, GetTraderFiltersErrors, ThrowOnError>({
|
|
431
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
432
|
+
url: '/api/trader-filters/',
|
|
433
|
+
...options
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Create Trader Filter
|
|
438
|
+
*
|
|
439
|
+
* Creates a new filter preset for the authenticated user.
|
|
440
|
+
*/
|
|
441
|
+
export const postTraderFilters = <ThrowOnError extends boolean = false>(options: Options<PostTraderFiltersData, ThrowOnError>) => (options.client ?? client).post<PostTraderFiltersResponses, PostTraderFiltersErrors, ThrowOnError>({
|
|
442
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
443
|
+
url: '/api/trader-filters/',
|
|
444
|
+
...options,
|
|
445
|
+
headers: {
|
|
446
|
+
'Content-Type': 'application/json',
|
|
447
|
+
...options.headers
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Delete Trader Filter
|
|
453
|
+
*
|
|
454
|
+
* Permanently removes a filter preset belonging to the authenticated user.
|
|
455
|
+
*/
|
|
456
|
+
export const deleteTraderFiltersById = <ThrowOnError extends boolean = false>(options: Options<DeleteTraderFiltersByIdData, ThrowOnError>) => (options.client ?? client).delete<DeleteTraderFiltersByIdResponses, DeleteTraderFiltersByIdErrors, ThrowOnError>({
|
|
457
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
458
|
+
url: '/api/trader-filters/{id}',
|
|
459
|
+
...options
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Get Trader Filter
|
|
464
|
+
*
|
|
465
|
+
* Returns a specific filter preset by ID.
|
|
466
|
+
*/
|
|
467
|
+
export const getTraderFiltersById = <ThrowOnError extends boolean = false>(options: Options<GetTraderFiltersByIdData, ThrowOnError>) => (options.client ?? client).get<GetTraderFiltersByIdResponses, GetTraderFiltersByIdErrors, ThrowOnError>({
|
|
468
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
469
|
+
url: '/api/trader-filters/{id}',
|
|
470
|
+
...options
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Update Trader Filter
|
|
475
|
+
*
|
|
476
|
+
* Replaces an existing filter preset for the authenticated user.
|
|
477
|
+
*/
|
|
478
|
+
export const putTraderFiltersById = <ThrowOnError extends boolean = false>(options: Options<PutTraderFiltersByIdData, ThrowOnError>) => (options.client ?? client).put<PutTraderFiltersByIdResponses, PutTraderFiltersByIdErrors, ThrowOnError>({
|
|
479
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
480
|
+
url: '/api/trader-filters/{id}',
|
|
481
|
+
...options,
|
|
482
|
+
headers: {
|
|
483
|
+
'Content-Type': 'application/json',
|
|
484
|
+
...options.headers
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* List Traders
|
|
490
|
+
*
|
|
491
|
+
* Retrieves a list of traders supporting advanced filtering and sorting.
|
|
492
|
+
*/
|
|
493
|
+
export const getTraders = <ThrowOnError extends boolean = false>(options?: Options<GetTradersData, ThrowOnError>) => (options?.client ?? client).get<GetTradersResponses, GetTradersErrors, ThrowOnError>({
|
|
494
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
495
|
+
url: '/api/traders',
|
|
496
|
+
...options
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Get Trader by ID
|
|
501
|
+
*
|
|
502
|
+
* Retrieves a trader's aggregated statistics by internal UUID.
|
|
503
|
+
*/
|
|
504
|
+
export const getTradersByIdByTraderId = <ThrowOnError extends boolean = false>(options: Options<GetTradersByIdByTraderIdData, ThrowOnError>) => (options.client ?? client).get<GetTradersByIdByTraderIdResponses, GetTradersByIdByTraderIdErrors, ThrowOnError>({
|
|
505
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
506
|
+
url: '/api/traders/by-id/{traderID}',
|
|
507
|
+
...options
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Get Trader by Wallet
|
|
512
|
+
*
|
|
513
|
+
* Retrieves a trader's aggregated statistics by their wallet address.
|
|
514
|
+
*/
|
|
515
|
+
export const getTradersByWalletByWalletAddress = <ThrowOnError extends boolean = false>(options: Options<GetTradersByWalletByWalletAddressData, ThrowOnError>) => (options.client ?? client).get<GetTradersByWalletByWalletAddressResponses, GetTradersByWalletByWalletAddressErrors, ThrowOnError>({
|
|
516
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
517
|
+
url: '/api/traders/by-wallet/{walletAddress}',
|
|
518
|
+
...options
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Export Traders
|
|
523
|
+
*
|
|
524
|
+
* Exports trader records based on advanced filters.
|
|
525
|
+
*/
|
|
526
|
+
export const postTradersExport = <ThrowOnError extends boolean = false>(options: Options<PostTradersExportData, ThrowOnError>) => (options.client ?? client).post<PostTradersExportResponses, PostTradersExportErrors, ThrowOnError>({
|
|
527
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
528
|
+
url: '/api/traders/export',
|
|
529
|
+
...options,
|
|
530
|
+
headers: {
|
|
531
|
+
'Content-Type': 'application/json',
|
|
532
|
+
...options.headers
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Search Traders
|
|
538
|
+
*
|
|
539
|
+
* Fuzzy searches traders by wallet address or known name.
|
|
540
|
+
*/
|
|
541
|
+
export const getTradersSearch = <ThrowOnError extends boolean = false>(options?: Options<GetTradersSearchData, ThrowOnError>) => (options?.client ?? client).get<GetTradersSearchResponses, GetTradersSearchErrors, ThrowOnError>({
|
|
542
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
543
|
+
url: '/api/traders/search',
|
|
544
|
+
...options
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Trader Snapshot
|
|
549
|
+
*/
|
|
550
|
+
export const getTradersSnapshot = <ThrowOnError extends boolean = false>(options: Options<GetTradersSnapshotData, ThrowOnError>) => (options.client ?? client).get<GetTradersSnapshotResponses, GetTradersSnapshotErrors, ThrowOnError>({
|
|
551
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
552
|
+
url: '/api/traders/snapshot',
|
|
553
|
+
...options
|
|
554
|
+
});
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* List Trader Daily Profits
|
|
558
|
+
*
|
|
559
|
+
* Retrieves aggregated daily profits for a specific trader.
|
|
560
|
+
*/
|
|
561
|
+
export const getTradersByTraderIdDailyProfits = <ThrowOnError extends boolean = false>(options: Options<GetTradersByTraderIdDailyProfitsData, ThrowOnError>) => (options.client ?? client).get<GetTradersByTraderIdDailyProfitsResponses, GetTradersByTraderIdDailyProfitsErrors, ThrowOnError>({
|
|
562
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
563
|
+
url: '/api/traders/{traderID}/daily-profits',
|
|
564
|
+
...options
|
|
565
|
+
});
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* List Trader PnLs
|
|
569
|
+
*
|
|
570
|
+
* Retrieves per-token PnL statistics for a specific trader.
|
|
571
|
+
*/
|
|
572
|
+
export const getTradersByTraderIdPnls = <ThrowOnError extends boolean = false>(options: Options<GetTradersByTraderIdPnlsData, ThrowOnError>) => (options.client ?? client).get<GetTradersByTraderIdPnlsResponses, GetTradersByTraderIdPnlsErrors, ThrowOnError>({
|
|
573
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
574
|
+
url: '/api/traders/{traderID}/pnls',
|
|
575
|
+
...options
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* List Trader Created Tokens
|
|
580
|
+
*
|
|
581
|
+
* Mints created by this wallet (from `mint_creators`), newest first, each with a graduation flag. Empty array for non-creators.
|
|
582
|
+
*/
|
|
583
|
+
export const getTradersByWalletAddressCreatedTokens = <ThrowOnError extends boolean = false>(options: Options<GetTradersByWalletAddressCreatedTokensData, ThrowOnError>) => (options.client ?? client).get<GetTradersByWalletAddressCreatedTokensResponses, GetTradersByWalletAddressCreatedTokensErrors, ThrowOnError>({
|
|
584
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
585
|
+
url: '/api/traders/{walletAddress}/created-tokens',
|
|
586
|
+
...options
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Get Trader Daily PnL Series
|
|
591
|
+
*
|
|
592
|
+
* Returns daily realised PnL points (oldest first) for a trader, sourced from the aggregator's `trader_daily_pnl_series` SQL function.
|
|
593
|
+
*/
|
|
594
|
+
export const getTradersByWalletAddressPnlSeries = <ThrowOnError extends boolean = false>(options: Options<GetTradersByWalletAddressPnlSeriesData, ThrowOnError>) => (options.client ?? client).get<GetTradersByWalletAddressPnlSeriesResponses, GetTradersByWalletAddressPnlSeriesErrors, ThrowOnError>({
|
|
595
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
596
|
+
url: '/api/traders/{walletAddress}/pnl-series',
|
|
597
|
+
...options
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Get Trader Tip Stats
|
|
602
|
+
*/
|
|
603
|
+
export const getTradersByWalletAddressTips = <ThrowOnError extends boolean = false>(options: Options<GetTradersByWalletAddressTipsData, ThrowOnError>) => (options.client ?? client).get<GetTradersByWalletAddressTipsResponses, GetTradersByWalletAddressTipsErrors, ThrowOnError>({
|
|
604
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
605
|
+
url: '/api/traders/{walletAddress}/tips',
|
|
606
|
+
...options
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* List Trader Tip Services
|
|
611
|
+
*/
|
|
612
|
+
export const getTradersByWalletAddressTipsServices = <ThrowOnError extends boolean = false>(options: Options<GetTradersByWalletAddressTipsServicesData, ThrowOnError>) => (options.client ?? client).get<GetTradersByWalletAddressTipsServicesResponses, GetTradersByWalletAddressTipsServicesErrors, ThrowOnError>({
|
|
613
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
614
|
+
url: '/api/traders/{walletAddress}/tips/services',
|
|
615
|
+
...options
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* List Trader Token Positions
|
|
620
|
+
*/
|
|
621
|
+
export const getTradersByWalletAddressTokens = <ThrowOnError extends boolean = false>(options: Options<GetTradersByWalletAddressTokensData, ThrowOnError>) => (options.client ?? client).get<GetTradersByWalletAddressTokensResponses, GetTradersByWalletAddressTokensErrors, ThrowOnError>({
|
|
622
|
+
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
623
|
+
url: '/api/traders/{walletAddress}/tokens',
|
|
624
|
+
...options
|
|
625
|
+
});
|