@paysponge/sdk 0.1.116 → 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 +472 -1
- package/dist/api/generated/openapi/apis/default-api.d.ts.map +1 -1
- package/dist/api/generated/openapi/apis/default-api.js +462 -1
- package/dist/api/generated/openapi/apis/default-api.js.map +1 -1
- package/dist/api/generated/openapi/models/index.d.ts +3 -0
- package/dist/api/generated/openapi/models/index.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/index.js +3 -0
- package/dist/api/generated/openapi/models/index.js.map +1 -1
- 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, 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, 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
|
*/
|
|
@@ -1418,6 +1418,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
1418
1418
|
async deleteApiSpongeCardCustomer(requestParameters, initOverrides) {
|
|
1419
1419
|
await this.deleteApiSpongeCardCustomerRaw(requestParameters, initOverrides);
|
|
1420
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
|
+
}
|
|
1421
1451
|
/**
|
|
1422
1452
|
* Creates request options for getApiAdminBetaUsers without sending the request
|
|
1423
1453
|
*/
|
|
@@ -4472,6 +4502,169 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4472
4502
|
async getApiTasksByTaskId(requestParameters, initOverrides) {
|
|
4473
4503
|
await this.getApiTasksByTaskIdRaw(requestParameters, initOverrides);
|
|
4474
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
|
+
}
|
|
4475
4668
|
/**
|
|
4476
4669
|
* Creates request options for getApiTransactions without sending the request
|
|
4477
4670
|
*/
|
|
@@ -4933,6 +5126,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4933
5126
|
async getOauthAuthorize(requestParameters, initOverrides) {
|
|
4934
5127
|
await this.getOauthAuthorizeRaw(requestParameters, initOverrides);
|
|
4935
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
|
+
}
|
|
4936
5159
|
/**
|
|
4937
5160
|
* Creates request options for postApiAdminBetaUsersByIdPrefund without sending the request
|
|
4938
5161
|
*/
|
|
@@ -8881,6 +9104,244 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8881
9104
|
async postApiTradesPropose(requestParameters, initOverrides) {
|
|
8882
9105
|
await this.postApiTradesProposeRaw(requestParameters, initOverrides);
|
|
8883
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
|
+
}
|
|
8884
9345
|
/**
|
|
8885
9346
|
* Creates request options for postApiTransactionsBaseSwap without sending the request
|
|
8886
9347
|
*/
|