@paysponge/sdk 0.1.115 → 0.1.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/generated/openapi/apis/default-api.d.ts +630 -1
- package/dist/api/generated/openapi/apis/default-api.d.ts.map +1 -1
- package/dist/api/generated/openapi/apis/default-api.js +617 -1
- package/dist/api/generated/openapi/apis/default-api.js.map +1 -1
- package/dist/api/generated/openapi/models/index.d.ts +4 -0
- package/dist/api/generated/openapi/models/index.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/index.js +4 -0
- package/dist/api/generated/openapi/models/index.js.map +1 -1
- package/dist/api/generated/openapi/models/post-api-agents-by-id-hyperliquid-link-request.d.ts +33 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-hyperliquid-link-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-hyperliquid-link-request.js +44 -0
- package/dist/api/generated/openapi/models/post-api-agents-by-id-hyperliquid-link-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-kill-switch-request.d.ts +39 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-kill-switch-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-kill-switch-request.js +46 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-kill-switch-request.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request-sample-event.d.ts +51 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request-sample-event.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request-sample-event.js +50 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request-sample-event.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request.d.ts +34 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request.js +45 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-test-run-request.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { PostApiAgentKeysRequestToJSON, PostApiAgentRequestsPlansRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsCredentialRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsLinkRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdPolymarketWithdrawRequestToJSON, PostApiAgentsByIdRegenerateKeyRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdStripePaymentMethodsRequestToJSON, PostApiAgentsByIdStripePaymentMethodsSetupIntentRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAllowlistRequestToJSON, PostApiAmazonCheckoutAmazonSearchRequestToJSON, PostApiAmazonCheckoutRequestToJSON, PostApiAmazonCheckoutStreamRequestToJSON, PostApiBankExternalAccountsRequestToJSON, PostApiBankOnboardRequestToJSON, PostApiBankSendRequestToJSON, PostApiBankVirtualAccountRequestToJSON, PostApiBridgeFiatCustomerKycLinkRequestToJSON, PostApiBridgeFiatCustomerPersonaRequestToJSON, PostApiBridgeFiatCustomerSandboxRequestToJSON, PostApiBridgeFiatExternalAccountsRequestToJSON, PostApiBridgeFiatLiquidationAddressesRequestToJSON, PostApiBridgeFiatTransferTemplatesRequestToJSON, PostApiBridgeFiatTransfersRequestToJSON, PostApiCardAccessRequestsRequestToJSON, PostApiCardUsageRequestToJSON, PostApiCardsRequestToJSON, PostApiChatMessagesRequestToJSON, PostApiChatRateLimitReportRequestToJSON, PostApiCheckoutRequestToJSON, PostApiCoinbaseOnrampCallbackRequestToJSON, PostApiCoinbaseOnrampUrlRequestToJSON, PostApiCreditCardsRequestToJSON, PostApiEmailCheckAvailabilityRequestToJSON, PostApiFaucetRequestRequestToJSON, PostApiFlowsRequestToJSON, PostApiHyperliquidRequestToJSON, PostApiInvitesRedeemRequestToJSON, PostApiInvitesRegisterDirectRequestToJSON, PostApiInvitesValidateRequestToJSON, PostApiLinkCliAuthLoginRequestToJSON, PostApiMasterKeysRequestToJSON, PostApiMppFetchRequestToJSON, PostApiMppSessionCloseRequestToJSON, PostApiMppSessionRequestRequestToJSON, PostApiMppSessionStartRequestToJSON, PostApiOauthDeviceApproveRequestToJSON, PostApiOauthDeviceAuthorizationRequestToJSON, PostApiOauthDeviceDenyRequestToJSON, PostApiOauthDeviceTokenRequestToJSON, PostApiOnrampCryptoRequestToJSON, PostApiPaidFetchRequestToJSON, PostApiPaymentLinksRequestToJSON, PostApiPersonaKycInquiryRequestToJSON, PostApiPlansApproveRequestToJSON, PostApiPlansSubmitRequestToJSON, PostApiPolymarketRequestToJSON, PostApiRpcByChainIdRequestToJSON, PostApiSignupBonusClaimRequestToJSON, PostApiSiweGenerateRequestToJSON, PostApiSolanaSignRequestToJSON, PostApiSpendingLimitsRequestToJSON, PostApiSpongeCardCardRequestToJSON, PostApiSpongeCardCardsByCardIdSecretsRequestToJSON, PostApiSpongeCardContractsByContractIdFundRequestToJSON, PostApiSpongeCardContractsByContractIdWithdrawRequestToJSON, PostApiSpongeCardCreateCardRequestToJSON, PostApiSpongeCardCustomerRefreshRequestToJSON, PostApiSpongeCardCustomerRequestToJSON, PostApiSpongeCardFundRequestToJSON, PostApiSpongeCardOnboardRequestToJSON, PostApiSpongeCardTermsRequestToJSON, PostApiSpongeCardWithdrawRequestToJSON, PostApiStripeOnrampSessionRequestToJSON, PostApiTasksRequestToJSON, PostApiTradesProposeRequestToJSON, PostApiTransactionsBridgeRequestToJSON, PostApiTransactionsPrepareRequestToJSON, PostApiTransactionsSwapExecuteRequestToJSON, PostApiTransactionsSwapRequestToJSON, PostApiTransactionsTransferRequestToJSON, PostApiTransfersEvmRequestToJSON, PostApiTransfersSolanaRequestToJSON, PostApiTransfersTempoRequestToJSON, PostApiUsersSyncRequestToJSON, PostApiVirtualCardsRequestToJSON, PostApiWalletsByIdExportKeyRequestToJSON, PostApiWalletsByIdWithdrawRequestToJSON, PostApiWalletsMigrateQuorumRequestToJSON, PostApiWalletsPricesRequestToJSON, PostApiWalletsRequestToJSON, PostApiX402FetchRequestToJSON, PostApiX402PaymentsRequestToJSON, PostOauthAuthorizeCallbackRequestToJSON, PostOauthRegisterRequestToJSON, PostOauthRevokeRequestToJSON, PostOauthTokenRequestToJSON, PutApiAgentRequestsByIdApproveRequestToJSON, PutApiAgentRequestsByIdRespondRequestToJSON, PutApiAgentRequestsPlansByPlanIdRejectRequestToJSON, PutApiAgentsByIdRequestToJSON, PutApiFlowsByIdRequestToJSON, PutApiSpendingLimitsByIdRequestToJSON, } from '../models/index.js';
|
|
15
|
+
import { PostApiAgentKeysRequestToJSON, PostApiAgentRequestsPlansRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidLinkRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsCredentialRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsLinkRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdPolymarketWithdrawRequestToJSON, PostApiAgentsByIdRegenerateKeyRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdStripePaymentMethodsRequestToJSON, PostApiAgentsByIdStripePaymentMethodsSetupIntentRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAllowlistRequestToJSON, PostApiAmazonCheckoutAmazonSearchRequestToJSON, PostApiAmazonCheckoutRequestToJSON, PostApiAmazonCheckoutStreamRequestToJSON, PostApiBankExternalAccountsRequestToJSON, PostApiBankOnboardRequestToJSON, PostApiBankSendRequestToJSON, PostApiBankVirtualAccountRequestToJSON, PostApiBridgeFiatCustomerKycLinkRequestToJSON, PostApiBridgeFiatCustomerPersonaRequestToJSON, PostApiBridgeFiatCustomerSandboxRequestToJSON, PostApiBridgeFiatExternalAccountsRequestToJSON, PostApiBridgeFiatLiquidationAddressesRequestToJSON, PostApiBridgeFiatTransferTemplatesRequestToJSON, PostApiBridgeFiatTransfersRequestToJSON, PostApiCardAccessRequestsRequestToJSON, PostApiCardUsageRequestToJSON, PostApiCardsRequestToJSON, PostApiChatMessagesRequestToJSON, PostApiChatRateLimitReportRequestToJSON, PostApiCheckoutRequestToJSON, PostApiCoinbaseOnrampCallbackRequestToJSON, PostApiCoinbaseOnrampUrlRequestToJSON, PostApiCreditCardsRequestToJSON, PostApiEmailCheckAvailabilityRequestToJSON, PostApiFaucetRequestRequestToJSON, PostApiFlowsRequestToJSON, PostApiHyperliquidRequestToJSON, PostApiInvitesRedeemRequestToJSON, PostApiInvitesRegisterDirectRequestToJSON, PostApiInvitesValidateRequestToJSON, PostApiLinkCliAuthLoginRequestToJSON, PostApiMasterKeysRequestToJSON, PostApiMppFetchRequestToJSON, PostApiMppSessionCloseRequestToJSON, PostApiMppSessionRequestRequestToJSON, PostApiMppSessionStartRequestToJSON, PostApiOauthDeviceApproveRequestToJSON, PostApiOauthDeviceAuthorizationRequestToJSON, PostApiOauthDeviceDenyRequestToJSON, PostApiOauthDeviceTokenRequestToJSON, PostApiOnrampCryptoRequestToJSON, PostApiPaidFetchRequestToJSON, PostApiPaymentLinksRequestToJSON, PostApiPersonaKycInquiryRequestToJSON, PostApiPlansApproveRequestToJSON, PostApiPlansSubmitRequestToJSON, PostApiPolymarketRequestToJSON, PostApiRpcByChainIdRequestToJSON, PostApiSignupBonusClaimRequestToJSON, PostApiSiweGenerateRequestToJSON, PostApiSolanaSignRequestToJSON, PostApiSpendingLimitsRequestToJSON, PostApiSpongeCardCardRequestToJSON, PostApiSpongeCardCardsByCardIdSecretsRequestToJSON, PostApiSpongeCardContractsByContractIdFundRequestToJSON, PostApiSpongeCardContractsByContractIdWithdrawRequestToJSON, PostApiSpongeCardCreateCardRequestToJSON, PostApiSpongeCardCustomerRefreshRequestToJSON, PostApiSpongeCardCustomerRequestToJSON, PostApiSpongeCardFundRequestToJSON, PostApiSpongeCardOnboardRequestToJSON, PostApiSpongeCardTermsRequestToJSON, PostApiSpongeCardWithdrawRequestToJSON, PostApiStripeOnrampSessionRequestToJSON, PostApiTasksRequestToJSON, PostApiTradesProposeRequestToJSON, PostApiTradingAdminKillSwitchRequestToJSON, PostApiTradingStrategiesByIdTestRunRequestToJSON, PostApiTransactionsBridgeRequestToJSON, PostApiTransactionsPrepareRequestToJSON, PostApiTransactionsSwapExecuteRequestToJSON, PostApiTransactionsSwapRequestToJSON, PostApiTransactionsTransferRequestToJSON, PostApiTransfersEvmRequestToJSON, PostApiTransfersSolanaRequestToJSON, PostApiTransfersTempoRequestToJSON, PostApiUsersSyncRequestToJSON, PostApiVirtualCardsRequestToJSON, PostApiWalletsByIdExportKeyRequestToJSON, PostApiWalletsByIdWithdrawRequestToJSON, PostApiWalletsMigrateQuorumRequestToJSON, PostApiWalletsPricesRequestToJSON, PostApiWalletsRequestToJSON, PostApiX402FetchRequestToJSON, PostApiX402PaymentsRequestToJSON, PostOauthAuthorizeCallbackRequestToJSON, PostOauthRegisterRequestToJSON, PostOauthRevokeRequestToJSON, PostOauthTokenRequestToJSON, PutApiAgentRequestsByIdApproveRequestToJSON, PutApiAgentRequestsByIdRespondRequestToJSON, PutApiAgentRequestsPlansByPlanIdRejectRequestToJSON, PutApiAgentsByIdRequestToJSON, PutApiFlowsByIdRequestToJSON, PutApiSpendingLimitsByIdRequestToJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -982,6 +982,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
982
982
|
async deleteApiAgentsByIdEnrollmentsByEnrollmentId(requestParameters, initOverrides) {
|
|
983
983
|
await this.deleteApiAgentsByIdEnrollmentsByEnrollmentIdRaw(requestParameters, initOverrides);
|
|
984
984
|
}
|
|
985
|
+
/**
|
|
986
|
+
* Creates request options for deleteApiAgentsByIdHyperliquidLink without sending the request
|
|
987
|
+
*/
|
|
988
|
+
async deleteApiAgentsByIdHyperliquidLinkRequestOpts(requestParameters) {
|
|
989
|
+
if (requestParameters['id'] == null) {
|
|
990
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteApiAgentsByIdHyperliquidLink().');
|
|
991
|
+
}
|
|
992
|
+
const queryParameters = {};
|
|
993
|
+
const headerParameters = {};
|
|
994
|
+
let urlPath = `/api/agents/{id}/hyperliquid/link`;
|
|
995
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
996
|
+
return {
|
|
997
|
+
path: urlPath,
|
|
998
|
+
method: 'DELETE',
|
|
999
|
+
headers: headerParameters,
|
|
1000
|
+
query: queryParameters,
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
*/
|
|
1005
|
+
async deleteApiAgentsByIdHyperliquidLinkRaw(requestParameters, initOverrides) {
|
|
1006
|
+
const requestOptions = await this.deleteApiAgentsByIdHyperliquidLinkRequestOpts(requestParameters);
|
|
1007
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1008
|
+
return new runtime.VoidApiResponse(response);
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
*/
|
|
1012
|
+
async deleteApiAgentsByIdHyperliquidLink(requestParameters, initOverrides) {
|
|
1013
|
+
await this.deleteApiAgentsByIdHyperliquidLinkRaw(requestParameters, initOverrides);
|
|
1014
|
+
}
|
|
985
1015
|
/**
|
|
986
1016
|
* Creates request options for deleteApiAgentsByIdLinkPaymentMethodsByMethodId without sending the request
|
|
987
1017
|
*/
|
|
@@ -1388,6 +1418,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1388
1418
|
async deleteApiSpongeCardCustomer(requestParameters, initOverrides) {
|
|
1389
1419
|
await this.deleteApiSpongeCardCustomerRaw(requestParameters, initOverrides);
|
|
1390
1420
|
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Creates request options for deleteApiTradingStrategiesById without sending the request
|
|
1423
|
+
*/
|
|
1424
|
+
async deleteApiTradingStrategiesByIdRequestOpts(requestParameters) {
|
|
1425
|
+
if (requestParameters['id'] == null) {
|
|
1426
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteApiTradingStrategiesById().');
|
|
1427
|
+
}
|
|
1428
|
+
const queryParameters = {};
|
|
1429
|
+
const headerParameters = {};
|
|
1430
|
+
let urlPath = `/api/trading/strategies/{id}`;
|
|
1431
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
1432
|
+
return {
|
|
1433
|
+
path: urlPath,
|
|
1434
|
+
method: 'DELETE',
|
|
1435
|
+
headers: headerParameters,
|
|
1436
|
+
query: queryParameters,
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
*/
|
|
1441
|
+
async deleteApiTradingStrategiesByIdRaw(requestParameters, initOverrides) {
|
|
1442
|
+
const requestOptions = await this.deleteApiTradingStrategiesByIdRequestOpts(requestParameters);
|
|
1443
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1444
|
+
return new runtime.VoidApiResponse(response);
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
*/
|
|
1448
|
+
async deleteApiTradingStrategiesById(requestParameters, initOverrides) {
|
|
1449
|
+
await this.deleteApiTradingStrategiesByIdRaw(requestParameters, initOverrides);
|
|
1450
|
+
}
|
|
1391
1451
|
/**
|
|
1392
1452
|
* Creates request options for getApiAdminBetaUsers without sending the request
|
|
1393
1453
|
*/
|
|
@@ -2002,6 +2062,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
2002
2062
|
async getApiAgentsByIdHyperliquidCandles(requestParameters, initOverrides) {
|
|
2003
2063
|
await this.getApiAgentsByIdHyperliquidCandlesRaw(requestParameters, initOverrides);
|
|
2004
2064
|
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Creates request options for getApiAgentsByIdHyperliquidLink without sending the request
|
|
2067
|
+
*/
|
|
2068
|
+
async getApiAgentsByIdHyperliquidLinkRequestOpts(requestParameters) {
|
|
2069
|
+
if (requestParameters['id'] == null) {
|
|
2070
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiAgentsByIdHyperliquidLink().');
|
|
2071
|
+
}
|
|
2072
|
+
const queryParameters = {};
|
|
2073
|
+
const headerParameters = {};
|
|
2074
|
+
let urlPath = `/api/agents/{id}/hyperliquid/link`;
|
|
2075
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
2076
|
+
return {
|
|
2077
|
+
path: urlPath,
|
|
2078
|
+
method: 'GET',
|
|
2079
|
+
headers: headerParameters,
|
|
2080
|
+
query: queryParameters,
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
*/
|
|
2085
|
+
async getApiAgentsByIdHyperliquidLinkRaw(requestParameters, initOverrides) {
|
|
2086
|
+
const requestOptions = await this.getApiAgentsByIdHyperliquidLinkRequestOpts(requestParameters);
|
|
2087
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2088
|
+
return new runtime.VoidApiResponse(response);
|
|
2089
|
+
}
|
|
2090
|
+
/**
|
|
2091
|
+
*/
|
|
2092
|
+
async getApiAgentsByIdHyperliquidLink(requestParameters, initOverrides) {
|
|
2093
|
+
await this.getApiAgentsByIdHyperliquidLinkRaw(requestParameters, initOverrides);
|
|
2094
|
+
}
|
|
2005
2095
|
/**
|
|
2006
2096
|
* Creates request options for getApiAgentsByIdHyperliquidMarkets without sending the request
|
|
2007
2097
|
*/
|
|
@@ -4412,6 +4502,169 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4412
4502
|
async getApiTasksByTaskId(requestParameters, initOverrides) {
|
|
4413
4503
|
await this.getApiTasksByTaskIdRaw(requestParameters, initOverrides);
|
|
4414
4504
|
}
|
|
4505
|
+
/**
|
|
4506
|
+
* Creates request options for getApiTradingAdminKillSwitch without sending the request
|
|
4507
|
+
*/
|
|
4508
|
+
async getApiTradingAdminKillSwitchRequestOpts() {
|
|
4509
|
+
const queryParameters = {};
|
|
4510
|
+
const headerParameters = {};
|
|
4511
|
+
let urlPath = `/api/trading/admin/kill-switch`;
|
|
4512
|
+
return {
|
|
4513
|
+
path: urlPath,
|
|
4514
|
+
method: 'GET',
|
|
4515
|
+
headers: headerParameters,
|
|
4516
|
+
query: queryParameters,
|
|
4517
|
+
};
|
|
4518
|
+
}
|
|
4519
|
+
/**
|
|
4520
|
+
*/
|
|
4521
|
+
async getApiTradingAdminKillSwitchRaw(initOverrides) {
|
|
4522
|
+
const requestOptions = await this.getApiTradingAdminKillSwitchRequestOpts();
|
|
4523
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4524
|
+
return new runtime.VoidApiResponse(response);
|
|
4525
|
+
}
|
|
4526
|
+
/**
|
|
4527
|
+
*/
|
|
4528
|
+
async getApiTradingAdminKillSwitch(initOverrides) {
|
|
4529
|
+
await this.getApiTradingAdminKillSwitchRaw(initOverrides);
|
|
4530
|
+
}
|
|
4531
|
+
/**
|
|
4532
|
+
* Creates request options for getApiTradingStrategies without sending the request
|
|
4533
|
+
*/
|
|
4534
|
+
async getApiTradingStrategiesRequestOpts(requestParameters) {
|
|
4535
|
+
const queryParameters = {};
|
|
4536
|
+
if (requestParameters['agentId'] != null) {
|
|
4537
|
+
queryParameters['agent_id'] = requestParameters['agentId'];
|
|
4538
|
+
}
|
|
4539
|
+
if (requestParameters['limit'] != null) {
|
|
4540
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4541
|
+
}
|
|
4542
|
+
if (requestParameters['offset'] != null) {
|
|
4543
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4544
|
+
}
|
|
4545
|
+
const headerParameters = {};
|
|
4546
|
+
let urlPath = `/api/trading/strategies/`;
|
|
4547
|
+
return {
|
|
4548
|
+
path: urlPath,
|
|
4549
|
+
method: 'GET',
|
|
4550
|
+
headers: headerParameters,
|
|
4551
|
+
query: queryParameters,
|
|
4552
|
+
};
|
|
4553
|
+
}
|
|
4554
|
+
/**
|
|
4555
|
+
*/
|
|
4556
|
+
async getApiTradingStrategiesRaw(requestParameters, initOverrides) {
|
|
4557
|
+
const requestOptions = await this.getApiTradingStrategiesRequestOpts(requestParameters);
|
|
4558
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4559
|
+
return new runtime.VoidApiResponse(response);
|
|
4560
|
+
}
|
|
4561
|
+
/**
|
|
4562
|
+
*/
|
|
4563
|
+
async getApiTradingStrategies(requestParameters = {}, initOverrides) {
|
|
4564
|
+
await this.getApiTradingStrategiesRaw(requestParameters, initOverrides);
|
|
4565
|
+
}
|
|
4566
|
+
/**
|
|
4567
|
+
* Creates request options for getApiTradingStrategiesById without sending the request
|
|
4568
|
+
*/
|
|
4569
|
+
async getApiTradingStrategiesByIdRequestOpts(requestParameters) {
|
|
4570
|
+
if (requestParameters['id'] == null) {
|
|
4571
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiTradingStrategiesById().');
|
|
4572
|
+
}
|
|
4573
|
+
const queryParameters = {};
|
|
4574
|
+
const headerParameters = {};
|
|
4575
|
+
let urlPath = `/api/trading/strategies/{id}`;
|
|
4576
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
4577
|
+
return {
|
|
4578
|
+
path: urlPath,
|
|
4579
|
+
method: 'GET',
|
|
4580
|
+
headers: headerParameters,
|
|
4581
|
+
query: queryParameters,
|
|
4582
|
+
};
|
|
4583
|
+
}
|
|
4584
|
+
/**
|
|
4585
|
+
*/
|
|
4586
|
+
async getApiTradingStrategiesByIdRaw(requestParameters, initOverrides) {
|
|
4587
|
+
const requestOptions = await this.getApiTradingStrategiesByIdRequestOpts(requestParameters);
|
|
4588
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4589
|
+
return new runtime.VoidApiResponse(response);
|
|
4590
|
+
}
|
|
4591
|
+
/**
|
|
4592
|
+
*/
|
|
4593
|
+
async getApiTradingStrategiesById(requestParameters, initOverrides) {
|
|
4594
|
+
await this.getApiTradingStrategiesByIdRaw(requestParameters, initOverrides);
|
|
4595
|
+
}
|
|
4596
|
+
/**
|
|
4597
|
+
* Creates request options for getApiTradingStrategiesByIdExecutions without sending the request
|
|
4598
|
+
*/
|
|
4599
|
+
async getApiTradingStrategiesByIdExecutionsRequestOpts(requestParameters) {
|
|
4600
|
+
if (requestParameters['id'] == null) {
|
|
4601
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiTradingStrategiesByIdExecutions().');
|
|
4602
|
+
}
|
|
4603
|
+
const queryParameters = {};
|
|
4604
|
+
if (requestParameters['limit'] != null) {
|
|
4605
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4606
|
+
}
|
|
4607
|
+
if (requestParameters['offset'] != null) {
|
|
4608
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4609
|
+
}
|
|
4610
|
+
const headerParameters = {};
|
|
4611
|
+
let urlPath = `/api/trading/strategies/{id}/executions`;
|
|
4612
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
4613
|
+
return {
|
|
4614
|
+
path: urlPath,
|
|
4615
|
+
method: 'GET',
|
|
4616
|
+
headers: headerParameters,
|
|
4617
|
+
query: queryParameters,
|
|
4618
|
+
};
|
|
4619
|
+
}
|
|
4620
|
+
/**
|
|
4621
|
+
*/
|
|
4622
|
+
async getApiTradingStrategiesByIdExecutionsRaw(requestParameters, initOverrides) {
|
|
4623
|
+
const requestOptions = await this.getApiTradingStrategiesByIdExecutionsRequestOpts(requestParameters);
|
|
4624
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4625
|
+
return new runtime.VoidApiResponse(response);
|
|
4626
|
+
}
|
|
4627
|
+
/**
|
|
4628
|
+
*/
|
|
4629
|
+
async getApiTradingStrategiesByIdExecutions(requestParameters, initOverrides) {
|
|
4630
|
+
await this.getApiTradingStrategiesByIdExecutionsRaw(requestParameters, initOverrides);
|
|
4631
|
+
}
|
|
4632
|
+
/**
|
|
4633
|
+
* Creates request options for getApiTradingStrategiesByIdLedger without sending the request
|
|
4634
|
+
*/
|
|
4635
|
+
async getApiTradingStrategiesByIdLedgerRequestOpts(requestParameters) {
|
|
4636
|
+
if (requestParameters['id'] == null) {
|
|
4637
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiTradingStrategiesByIdLedger().');
|
|
4638
|
+
}
|
|
4639
|
+
const queryParameters = {};
|
|
4640
|
+
if (requestParameters['limit'] != null) {
|
|
4641
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4642
|
+
}
|
|
4643
|
+
if (requestParameters['offset'] != null) {
|
|
4644
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4645
|
+
}
|
|
4646
|
+
const headerParameters = {};
|
|
4647
|
+
let urlPath = `/api/trading/strategies/{id}/ledger`;
|
|
4648
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
4649
|
+
return {
|
|
4650
|
+
path: urlPath,
|
|
4651
|
+
method: 'GET',
|
|
4652
|
+
headers: headerParameters,
|
|
4653
|
+
query: queryParameters,
|
|
4654
|
+
};
|
|
4655
|
+
}
|
|
4656
|
+
/**
|
|
4657
|
+
*/
|
|
4658
|
+
async getApiTradingStrategiesByIdLedgerRaw(requestParameters, initOverrides) {
|
|
4659
|
+
const requestOptions = await this.getApiTradingStrategiesByIdLedgerRequestOpts(requestParameters);
|
|
4660
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4661
|
+
return new runtime.VoidApiResponse(response);
|
|
4662
|
+
}
|
|
4663
|
+
/**
|
|
4664
|
+
*/
|
|
4665
|
+
async getApiTradingStrategiesByIdLedger(requestParameters, initOverrides) {
|
|
4666
|
+
await this.getApiTradingStrategiesByIdLedgerRaw(requestParameters, initOverrides);
|
|
4667
|
+
}
|
|
4415
4668
|
/**
|
|
4416
4669
|
* Creates request options for getApiTransactions without sending the request
|
|
4417
4670
|
*/
|
|
@@ -4873,6 +5126,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4873
5126
|
async getOauthAuthorize(requestParameters, initOverrides) {
|
|
4874
5127
|
await this.getOauthAuthorizeRaw(requestParameters, initOverrides);
|
|
4875
5128
|
}
|
|
5129
|
+
/**
|
|
5130
|
+
* Creates request options for patchApiTradingStrategiesById without sending the request
|
|
5131
|
+
*/
|
|
5132
|
+
async patchApiTradingStrategiesByIdRequestOpts(requestParameters) {
|
|
5133
|
+
if (requestParameters['id'] == null) {
|
|
5134
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling patchApiTradingStrategiesById().');
|
|
5135
|
+
}
|
|
5136
|
+
const queryParameters = {};
|
|
5137
|
+
const headerParameters = {};
|
|
5138
|
+
let urlPath = `/api/trading/strategies/{id}`;
|
|
5139
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
5140
|
+
return {
|
|
5141
|
+
path: urlPath,
|
|
5142
|
+
method: 'PATCH',
|
|
5143
|
+
headers: headerParameters,
|
|
5144
|
+
query: queryParameters,
|
|
5145
|
+
};
|
|
5146
|
+
}
|
|
5147
|
+
/**
|
|
5148
|
+
*/
|
|
5149
|
+
async patchApiTradingStrategiesByIdRaw(requestParameters, initOverrides) {
|
|
5150
|
+
const requestOptions = await this.patchApiTradingStrategiesByIdRequestOpts(requestParameters);
|
|
5151
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5152
|
+
return new runtime.VoidApiResponse(response);
|
|
5153
|
+
}
|
|
5154
|
+
/**
|
|
5155
|
+
*/
|
|
5156
|
+
async patchApiTradingStrategiesById(requestParameters, initOverrides) {
|
|
5157
|
+
await this.patchApiTradingStrategiesByIdRaw(requestParameters, initOverrides);
|
|
5158
|
+
}
|
|
4876
5159
|
/**
|
|
4877
5160
|
* Creates request options for postApiAdminBetaUsersByIdPrefund without sending the request
|
|
4878
5161
|
*/
|
|
@@ -5475,6 +5758,101 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
5475
5758
|
async postApiAgentsByIdHyperliquidClosePosition(requestParameters, initOverrides) {
|
|
5476
5759
|
await this.postApiAgentsByIdHyperliquidClosePositionRaw(requestParameters, initOverrides);
|
|
5477
5760
|
}
|
|
5761
|
+
/**
|
|
5762
|
+
* Creates request options for postApiAgentsByIdHyperliquidLink without sending the request
|
|
5763
|
+
*/
|
|
5764
|
+
async postApiAgentsByIdHyperliquidLinkRequestOpts(requestParameters) {
|
|
5765
|
+
if (requestParameters['id'] == null) {
|
|
5766
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiAgentsByIdHyperliquidLink().');
|
|
5767
|
+
}
|
|
5768
|
+
if (requestParameters['postApiAgentsByIdHyperliquidLinkRequest'] == null) {
|
|
5769
|
+
throw new runtime.RequiredError('postApiAgentsByIdHyperliquidLinkRequest', 'Required parameter "postApiAgentsByIdHyperliquidLinkRequest" was null or undefined when calling postApiAgentsByIdHyperliquidLink().');
|
|
5770
|
+
}
|
|
5771
|
+
const queryParameters = {};
|
|
5772
|
+
const headerParameters = {};
|
|
5773
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5774
|
+
let urlPath = `/api/agents/{id}/hyperliquid/link`;
|
|
5775
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
5776
|
+
return {
|
|
5777
|
+
path: urlPath,
|
|
5778
|
+
method: 'POST',
|
|
5779
|
+
headers: headerParameters,
|
|
5780
|
+
query: queryParameters,
|
|
5781
|
+
body: PostApiAgentsByIdHyperliquidLinkRequestToJSON(requestParameters['postApiAgentsByIdHyperliquidLinkRequest']),
|
|
5782
|
+
};
|
|
5783
|
+
}
|
|
5784
|
+
/**
|
|
5785
|
+
*/
|
|
5786
|
+
async postApiAgentsByIdHyperliquidLinkRaw(requestParameters, initOverrides) {
|
|
5787
|
+
const requestOptions = await this.postApiAgentsByIdHyperliquidLinkRequestOpts(requestParameters);
|
|
5788
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5789
|
+
return new runtime.VoidApiResponse(response);
|
|
5790
|
+
}
|
|
5791
|
+
/**
|
|
5792
|
+
*/
|
|
5793
|
+
async postApiAgentsByIdHyperliquidLink(requestParameters, initOverrides) {
|
|
5794
|
+
await this.postApiAgentsByIdHyperliquidLinkRaw(requestParameters, initOverrides);
|
|
5795
|
+
}
|
|
5796
|
+
/**
|
|
5797
|
+
* Creates request options for postApiAgentsByIdHyperliquidLinkApiWallet without sending the request
|
|
5798
|
+
*/
|
|
5799
|
+
async postApiAgentsByIdHyperliquidLinkApiWalletRequestOpts(requestParameters) {
|
|
5800
|
+
if (requestParameters['id'] == null) {
|
|
5801
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiAgentsByIdHyperliquidLinkApiWallet().');
|
|
5802
|
+
}
|
|
5803
|
+
const queryParameters = {};
|
|
5804
|
+
const headerParameters = {};
|
|
5805
|
+
let urlPath = `/api/agents/{id}/hyperliquid/link/api-wallet`;
|
|
5806
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
5807
|
+
return {
|
|
5808
|
+
path: urlPath,
|
|
5809
|
+
method: 'POST',
|
|
5810
|
+
headers: headerParameters,
|
|
5811
|
+
query: queryParameters,
|
|
5812
|
+
};
|
|
5813
|
+
}
|
|
5814
|
+
/**
|
|
5815
|
+
*/
|
|
5816
|
+
async postApiAgentsByIdHyperliquidLinkApiWalletRaw(requestParameters, initOverrides) {
|
|
5817
|
+
const requestOptions = await this.postApiAgentsByIdHyperliquidLinkApiWalletRequestOpts(requestParameters);
|
|
5818
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5819
|
+
return new runtime.VoidApiResponse(response);
|
|
5820
|
+
}
|
|
5821
|
+
/**
|
|
5822
|
+
*/
|
|
5823
|
+
async postApiAgentsByIdHyperliquidLinkApiWallet(requestParameters, initOverrides) {
|
|
5824
|
+
await this.postApiAgentsByIdHyperliquidLinkApiWalletRaw(requestParameters, initOverrides);
|
|
5825
|
+
}
|
|
5826
|
+
/**
|
|
5827
|
+
* Creates request options for postApiAgentsByIdHyperliquidLinkApiWalletConfirm without sending the request
|
|
5828
|
+
*/
|
|
5829
|
+
async postApiAgentsByIdHyperliquidLinkApiWalletConfirmRequestOpts(requestParameters) {
|
|
5830
|
+
if (requestParameters['id'] == null) {
|
|
5831
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiAgentsByIdHyperliquidLinkApiWalletConfirm().');
|
|
5832
|
+
}
|
|
5833
|
+
const queryParameters = {};
|
|
5834
|
+
const headerParameters = {};
|
|
5835
|
+
let urlPath = `/api/agents/{id}/hyperliquid/link/api-wallet/confirm`;
|
|
5836
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
5837
|
+
return {
|
|
5838
|
+
path: urlPath,
|
|
5839
|
+
method: 'POST',
|
|
5840
|
+
headers: headerParameters,
|
|
5841
|
+
query: queryParameters,
|
|
5842
|
+
};
|
|
5843
|
+
}
|
|
5844
|
+
/**
|
|
5845
|
+
*/
|
|
5846
|
+
async postApiAgentsByIdHyperliquidLinkApiWalletConfirmRaw(requestParameters, initOverrides) {
|
|
5847
|
+
const requestOptions = await this.postApiAgentsByIdHyperliquidLinkApiWalletConfirmRequestOpts(requestParameters);
|
|
5848
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5849
|
+
return new runtime.VoidApiResponse(response);
|
|
5850
|
+
}
|
|
5851
|
+
/**
|
|
5852
|
+
*/
|
|
5853
|
+
async postApiAgentsByIdHyperliquidLinkApiWalletConfirm(requestParameters, initOverrides) {
|
|
5854
|
+
await this.postApiAgentsByIdHyperliquidLinkApiWalletConfirmRaw(requestParameters, initOverrides);
|
|
5855
|
+
}
|
|
5478
5856
|
/**
|
|
5479
5857
|
* Creates request options for postApiAgentsByIdHyperliquidTransfer without sending the request
|
|
5480
5858
|
*/
|
|
@@ -8726,6 +9104,244 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8726
9104
|
async postApiTradesPropose(requestParameters, initOverrides) {
|
|
8727
9105
|
await this.postApiTradesProposeRaw(requestParameters, initOverrides);
|
|
8728
9106
|
}
|
|
9107
|
+
/**
|
|
9108
|
+
* Creates request options for postApiTradingAdminKillSwitch without sending the request
|
|
9109
|
+
*/
|
|
9110
|
+
async postApiTradingAdminKillSwitchRequestOpts(requestParameters) {
|
|
9111
|
+
if (requestParameters['postApiTradingAdminKillSwitchRequest'] == null) {
|
|
9112
|
+
throw new runtime.RequiredError('postApiTradingAdminKillSwitchRequest', 'Required parameter "postApiTradingAdminKillSwitchRequest" was null or undefined when calling postApiTradingAdminKillSwitch().');
|
|
9113
|
+
}
|
|
9114
|
+
const queryParameters = {};
|
|
9115
|
+
const headerParameters = {};
|
|
9116
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9117
|
+
let urlPath = `/api/trading/admin/kill-switch`;
|
|
9118
|
+
return {
|
|
9119
|
+
path: urlPath,
|
|
9120
|
+
method: 'POST',
|
|
9121
|
+
headers: headerParameters,
|
|
9122
|
+
query: queryParameters,
|
|
9123
|
+
body: PostApiTradingAdminKillSwitchRequestToJSON(requestParameters['postApiTradingAdminKillSwitchRequest']),
|
|
9124
|
+
};
|
|
9125
|
+
}
|
|
9126
|
+
/**
|
|
9127
|
+
*/
|
|
9128
|
+
async postApiTradingAdminKillSwitchRaw(requestParameters, initOverrides) {
|
|
9129
|
+
const requestOptions = await this.postApiTradingAdminKillSwitchRequestOpts(requestParameters);
|
|
9130
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9131
|
+
return new runtime.VoidApiResponse(response);
|
|
9132
|
+
}
|
|
9133
|
+
/**
|
|
9134
|
+
*/
|
|
9135
|
+
async postApiTradingAdminKillSwitch(requestParameters, initOverrides) {
|
|
9136
|
+
await this.postApiTradingAdminKillSwitchRaw(requestParameters, initOverrides);
|
|
9137
|
+
}
|
|
9138
|
+
/**
|
|
9139
|
+
* Creates request options for postApiTradingAdminReconcile without sending the request
|
|
9140
|
+
*/
|
|
9141
|
+
async postApiTradingAdminReconcileRequestOpts() {
|
|
9142
|
+
const queryParameters = {};
|
|
9143
|
+
const headerParameters = {};
|
|
9144
|
+
let urlPath = `/api/trading/admin/reconcile`;
|
|
9145
|
+
return {
|
|
9146
|
+
path: urlPath,
|
|
9147
|
+
method: 'POST',
|
|
9148
|
+
headers: headerParameters,
|
|
9149
|
+
query: queryParameters,
|
|
9150
|
+
};
|
|
9151
|
+
}
|
|
9152
|
+
/**
|
|
9153
|
+
*/
|
|
9154
|
+
async postApiTradingAdminReconcileRaw(initOverrides) {
|
|
9155
|
+
const requestOptions = await this.postApiTradingAdminReconcileRequestOpts();
|
|
9156
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9157
|
+
return new runtime.VoidApiResponse(response);
|
|
9158
|
+
}
|
|
9159
|
+
/**
|
|
9160
|
+
*/
|
|
9161
|
+
async postApiTradingAdminReconcile(initOverrides) {
|
|
9162
|
+
await this.postApiTradingAdminReconcileRaw(initOverrides);
|
|
9163
|
+
}
|
|
9164
|
+
/**
|
|
9165
|
+
* Creates request options for postApiTradingStrategies without sending the request
|
|
9166
|
+
*/
|
|
9167
|
+
async postApiTradingStrategiesRequestOpts() {
|
|
9168
|
+
const queryParameters = {};
|
|
9169
|
+
const headerParameters = {};
|
|
9170
|
+
let urlPath = `/api/trading/strategies/`;
|
|
9171
|
+
return {
|
|
9172
|
+
path: urlPath,
|
|
9173
|
+
method: 'POST',
|
|
9174
|
+
headers: headerParameters,
|
|
9175
|
+
query: queryParameters,
|
|
9176
|
+
};
|
|
9177
|
+
}
|
|
9178
|
+
/**
|
|
9179
|
+
*/
|
|
9180
|
+
async postApiTradingStrategiesRaw(initOverrides) {
|
|
9181
|
+
const requestOptions = await this.postApiTradingStrategiesRequestOpts();
|
|
9182
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9183
|
+
return new runtime.VoidApiResponse(response);
|
|
9184
|
+
}
|
|
9185
|
+
/**
|
|
9186
|
+
*/
|
|
9187
|
+
async postApiTradingStrategies(initOverrides) {
|
|
9188
|
+
await this.postApiTradingStrategiesRaw(initOverrides);
|
|
9189
|
+
}
|
|
9190
|
+
/**
|
|
9191
|
+
* Creates request options for postApiTradingStrategiesByIdEnable without sending the request
|
|
9192
|
+
*/
|
|
9193
|
+
async postApiTradingStrategiesByIdEnableRequestOpts(requestParameters) {
|
|
9194
|
+
if (requestParameters['id'] == null) {
|
|
9195
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdEnable().');
|
|
9196
|
+
}
|
|
9197
|
+
const queryParameters = {};
|
|
9198
|
+
const headerParameters = {};
|
|
9199
|
+
let urlPath = `/api/trading/strategies/{id}/enable`;
|
|
9200
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9201
|
+
return {
|
|
9202
|
+
path: urlPath,
|
|
9203
|
+
method: 'POST',
|
|
9204
|
+
headers: headerParameters,
|
|
9205
|
+
query: queryParameters,
|
|
9206
|
+
};
|
|
9207
|
+
}
|
|
9208
|
+
/**
|
|
9209
|
+
*/
|
|
9210
|
+
async postApiTradingStrategiesByIdEnableRaw(requestParameters, initOverrides) {
|
|
9211
|
+
const requestOptions = await this.postApiTradingStrategiesByIdEnableRequestOpts(requestParameters);
|
|
9212
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9213
|
+
return new runtime.VoidApiResponse(response);
|
|
9214
|
+
}
|
|
9215
|
+
/**
|
|
9216
|
+
*/
|
|
9217
|
+
async postApiTradingStrategiesByIdEnable(requestParameters, initOverrides) {
|
|
9218
|
+
await this.postApiTradingStrategiesByIdEnableRaw(requestParameters, initOverrides);
|
|
9219
|
+
}
|
|
9220
|
+
/**
|
|
9221
|
+
* Creates request options for postApiTradingStrategiesByIdKill without sending the request
|
|
9222
|
+
*/
|
|
9223
|
+
async postApiTradingStrategiesByIdKillRequestOpts(requestParameters) {
|
|
9224
|
+
if (requestParameters['id'] == null) {
|
|
9225
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdKill().');
|
|
9226
|
+
}
|
|
9227
|
+
const queryParameters = {};
|
|
9228
|
+
const headerParameters = {};
|
|
9229
|
+
let urlPath = `/api/trading/strategies/{id}/kill`;
|
|
9230
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9231
|
+
return {
|
|
9232
|
+
path: urlPath,
|
|
9233
|
+
method: 'POST',
|
|
9234
|
+
headers: headerParameters,
|
|
9235
|
+
query: queryParameters,
|
|
9236
|
+
};
|
|
9237
|
+
}
|
|
9238
|
+
/**
|
|
9239
|
+
*/
|
|
9240
|
+
async postApiTradingStrategiesByIdKillRaw(requestParameters, initOverrides) {
|
|
9241
|
+
const requestOptions = await this.postApiTradingStrategiesByIdKillRequestOpts(requestParameters);
|
|
9242
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9243
|
+
return new runtime.VoidApiResponse(response);
|
|
9244
|
+
}
|
|
9245
|
+
/**
|
|
9246
|
+
*/
|
|
9247
|
+
async postApiTradingStrategiesByIdKill(requestParameters, initOverrides) {
|
|
9248
|
+
await this.postApiTradingStrategiesByIdKillRaw(requestParameters, initOverrides);
|
|
9249
|
+
}
|
|
9250
|
+
/**
|
|
9251
|
+
* Creates request options for postApiTradingStrategiesByIdPause without sending the request
|
|
9252
|
+
*/
|
|
9253
|
+
async postApiTradingStrategiesByIdPauseRequestOpts(requestParameters) {
|
|
9254
|
+
if (requestParameters['id'] == null) {
|
|
9255
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdPause().');
|
|
9256
|
+
}
|
|
9257
|
+
const queryParameters = {};
|
|
9258
|
+
const headerParameters = {};
|
|
9259
|
+
let urlPath = `/api/trading/strategies/{id}/pause`;
|
|
9260
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9261
|
+
return {
|
|
9262
|
+
path: urlPath,
|
|
9263
|
+
method: 'POST',
|
|
9264
|
+
headers: headerParameters,
|
|
9265
|
+
query: queryParameters,
|
|
9266
|
+
};
|
|
9267
|
+
}
|
|
9268
|
+
/**
|
|
9269
|
+
*/
|
|
9270
|
+
async postApiTradingStrategiesByIdPauseRaw(requestParameters, initOverrides) {
|
|
9271
|
+
const requestOptions = await this.postApiTradingStrategiesByIdPauseRequestOpts(requestParameters);
|
|
9272
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9273
|
+
return new runtime.VoidApiResponse(response);
|
|
9274
|
+
}
|
|
9275
|
+
/**
|
|
9276
|
+
*/
|
|
9277
|
+
async postApiTradingStrategiesByIdPause(requestParameters, initOverrides) {
|
|
9278
|
+
await this.postApiTradingStrategiesByIdPauseRaw(requestParameters, initOverrides);
|
|
9279
|
+
}
|
|
9280
|
+
/**
|
|
9281
|
+
* Creates request options for postApiTradingStrategiesByIdRun without sending the request
|
|
9282
|
+
*/
|
|
9283
|
+
async postApiTradingStrategiesByIdRunRequestOpts(requestParameters) {
|
|
9284
|
+
if (requestParameters['id'] == null) {
|
|
9285
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdRun().');
|
|
9286
|
+
}
|
|
9287
|
+
const queryParameters = {};
|
|
9288
|
+
const headerParameters = {};
|
|
9289
|
+
let urlPath = `/api/trading/strategies/{id}/run`;
|
|
9290
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9291
|
+
return {
|
|
9292
|
+
path: urlPath,
|
|
9293
|
+
method: 'POST',
|
|
9294
|
+
headers: headerParameters,
|
|
9295
|
+
query: queryParameters,
|
|
9296
|
+
};
|
|
9297
|
+
}
|
|
9298
|
+
/**
|
|
9299
|
+
*/
|
|
9300
|
+
async postApiTradingStrategiesByIdRunRaw(requestParameters, initOverrides) {
|
|
9301
|
+
const requestOptions = await this.postApiTradingStrategiesByIdRunRequestOpts(requestParameters);
|
|
9302
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9303
|
+
return new runtime.VoidApiResponse(response);
|
|
9304
|
+
}
|
|
9305
|
+
/**
|
|
9306
|
+
*/
|
|
9307
|
+
async postApiTradingStrategiesByIdRun(requestParameters, initOverrides) {
|
|
9308
|
+
await this.postApiTradingStrategiesByIdRunRaw(requestParameters, initOverrides);
|
|
9309
|
+
}
|
|
9310
|
+
/**
|
|
9311
|
+
* Creates request options for postApiTradingStrategiesByIdTestRun without sending the request
|
|
9312
|
+
*/
|
|
9313
|
+
async postApiTradingStrategiesByIdTestRunRequestOpts(requestParameters) {
|
|
9314
|
+
if (requestParameters['id'] == null) {
|
|
9315
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdTestRun().');
|
|
9316
|
+
}
|
|
9317
|
+
if (requestParameters['postApiTradingStrategiesByIdTestRunRequest'] == null) {
|
|
9318
|
+
throw new runtime.RequiredError('postApiTradingStrategiesByIdTestRunRequest', 'Required parameter "postApiTradingStrategiesByIdTestRunRequest" was null or undefined when calling postApiTradingStrategiesByIdTestRun().');
|
|
9319
|
+
}
|
|
9320
|
+
const queryParameters = {};
|
|
9321
|
+
const headerParameters = {};
|
|
9322
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9323
|
+
let urlPath = `/api/trading/strategies/{id}/test-run`;
|
|
9324
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9325
|
+
return {
|
|
9326
|
+
path: urlPath,
|
|
9327
|
+
method: 'POST',
|
|
9328
|
+
headers: headerParameters,
|
|
9329
|
+
query: queryParameters,
|
|
9330
|
+
body: PostApiTradingStrategiesByIdTestRunRequestToJSON(requestParameters['postApiTradingStrategiesByIdTestRunRequest']),
|
|
9331
|
+
};
|
|
9332
|
+
}
|
|
9333
|
+
/**
|
|
9334
|
+
*/
|
|
9335
|
+
async postApiTradingStrategiesByIdTestRunRaw(requestParameters, initOverrides) {
|
|
9336
|
+
const requestOptions = await this.postApiTradingStrategiesByIdTestRunRequestOpts(requestParameters);
|
|
9337
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9338
|
+
return new runtime.VoidApiResponse(response);
|
|
9339
|
+
}
|
|
9340
|
+
/**
|
|
9341
|
+
*/
|
|
9342
|
+
async postApiTradingStrategiesByIdTestRun(requestParameters, initOverrides) {
|
|
9343
|
+
await this.postApiTradingStrategiesByIdTestRunRaw(requestParameters, initOverrides);
|
|
9344
|
+
}
|
|
8729
9345
|
/**
|
|
8730
9346
|
* Creates request options for postApiTransactionsBaseSwap without sending the request
|
|
8731
9347
|
*/
|