@paysponge/sdk 0.1.116 → 0.1.118
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 +571 -1
- package/dist/api/generated/openapi/apis/default-api.d.ts.map +1 -1
- package/dist/api/generated/openapi/apis/default-api.js +560 -1
- package/dist/api/generated/openapi/apis/default-api.js.map +1 -1
- package/dist/api/generated/openapi/models/index.d.ts +5 -0
- package/dist/api/generated/openapi/models/index.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/index.js +5 -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-admin-test-run-request-strategy.d.ts +63 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-request-strategy.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-request-strategy.js +56 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-request-strategy.js.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-request.d.ts +41 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-request.js +50 -0
- package/dist/api/generated/openapi/models/post-api-trading-admin-test-run-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, PostApiTradingAdminTestRunRequestToJSON, 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,201 @@ 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 getApiTradingAdminStrategies without sending the request
|
|
4533
|
+
*/
|
|
4534
|
+
async getApiTradingAdminStrategiesRequestOpts(requestParameters) {
|
|
4535
|
+
const queryParameters = {};
|
|
4536
|
+
if (requestParameters['limit'] != null) {
|
|
4537
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4538
|
+
}
|
|
4539
|
+
if (requestParameters['offset'] != null) {
|
|
4540
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4541
|
+
}
|
|
4542
|
+
const headerParameters = {};
|
|
4543
|
+
let urlPath = `/api/trading/admin/strategies`;
|
|
4544
|
+
return {
|
|
4545
|
+
path: urlPath,
|
|
4546
|
+
method: 'GET',
|
|
4547
|
+
headers: headerParameters,
|
|
4548
|
+
query: queryParameters,
|
|
4549
|
+
};
|
|
4550
|
+
}
|
|
4551
|
+
/**
|
|
4552
|
+
*/
|
|
4553
|
+
async getApiTradingAdminStrategiesRaw(requestParameters, initOverrides) {
|
|
4554
|
+
const requestOptions = await this.getApiTradingAdminStrategiesRequestOpts(requestParameters);
|
|
4555
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4556
|
+
return new runtime.VoidApiResponse(response);
|
|
4557
|
+
}
|
|
4558
|
+
/**
|
|
4559
|
+
*/
|
|
4560
|
+
async getApiTradingAdminStrategies(requestParameters = {}, initOverrides) {
|
|
4561
|
+
await this.getApiTradingAdminStrategiesRaw(requestParameters, initOverrides);
|
|
4562
|
+
}
|
|
4563
|
+
/**
|
|
4564
|
+
* Creates request options for getApiTradingStrategies without sending the request
|
|
4565
|
+
*/
|
|
4566
|
+
async getApiTradingStrategiesRequestOpts(requestParameters) {
|
|
4567
|
+
const queryParameters = {};
|
|
4568
|
+
if (requestParameters['agentId'] != null) {
|
|
4569
|
+
queryParameters['agent_id'] = requestParameters['agentId'];
|
|
4570
|
+
}
|
|
4571
|
+
if (requestParameters['limit'] != null) {
|
|
4572
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4573
|
+
}
|
|
4574
|
+
if (requestParameters['offset'] != null) {
|
|
4575
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4576
|
+
}
|
|
4577
|
+
const headerParameters = {};
|
|
4578
|
+
let urlPath = `/api/trading/strategies/`;
|
|
4579
|
+
return {
|
|
4580
|
+
path: urlPath,
|
|
4581
|
+
method: 'GET',
|
|
4582
|
+
headers: headerParameters,
|
|
4583
|
+
query: queryParameters,
|
|
4584
|
+
};
|
|
4585
|
+
}
|
|
4586
|
+
/**
|
|
4587
|
+
*/
|
|
4588
|
+
async getApiTradingStrategiesRaw(requestParameters, initOverrides) {
|
|
4589
|
+
const requestOptions = await this.getApiTradingStrategiesRequestOpts(requestParameters);
|
|
4590
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4591
|
+
return new runtime.VoidApiResponse(response);
|
|
4592
|
+
}
|
|
4593
|
+
/**
|
|
4594
|
+
*/
|
|
4595
|
+
async getApiTradingStrategies(requestParameters = {}, initOverrides) {
|
|
4596
|
+
await this.getApiTradingStrategiesRaw(requestParameters, initOverrides);
|
|
4597
|
+
}
|
|
4598
|
+
/**
|
|
4599
|
+
* Creates request options for getApiTradingStrategiesById without sending the request
|
|
4600
|
+
*/
|
|
4601
|
+
async getApiTradingStrategiesByIdRequestOpts(requestParameters) {
|
|
4602
|
+
if (requestParameters['id'] == null) {
|
|
4603
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiTradingStrategiesById().');
|
|
4604
|
+
}
|
|
4605
|
+
const queryParameters = {};
|
|
4606
|
+
const headerParameters = {};
|
|
4607
|
+
let urlPath = `/api/trading/strategies/{id}`;
|
|
4608
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
4609
|
+
return {
|
|
4610
|
+
path: urlPath,
|
|
4611
|
+
method: 'GET',
|
|
4612
|
+
headers: headerParameters,
|
|
4613
|
+
query: queryParameters,
|
|
4614
|
+
};
|
|
4615
|
+
}
|
|
4616
|
+
/**
|
|
4617
|
+
*/
|
|
4618
|
+
async getApiTradingStrategiesByIdRaw(requestParameters, initOverrides) {
|
|
4619
|
+
const requestOptions = await this.getApiTradingStrategiesByIdRequestOpts(requestParameters);
|
|
4620
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4621
|
+
return new runtime.VoidApiResponse(response);
|
|
4622
|
+
}
|
|
4623
|
+
/**
|
|
4624
|
+
*/
|
|
4625
|
+
async getApiTradingStrategiesById(requestParameters, initOverrides) {
|
|
4626
|
+
await this.getApiTradingStrategiesByIdRaw(requestParameters, initOverrides);
|
|
4627
|
+
}
|
|
4628
|
+
/**
|
|
4629
|
+
* Creates request options for getApiTradingStrategiesByIdExecutions without sending the request
|
|
4630
|
+
*/
|
|
4631
|
+
async getApiTradingStrategiesByIdExecutionsRequestOpts(requestParameters) {
|
|
4632
|
+
if (requestParameters['id'] == null) {
|
|
4633
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiTradingStrategiesByIdExecutions().');
|
|
4634
|
+
}
|
|
4635
|
+
const queryParameters = {};
|
|
4636
|
+
if (requestParameters['limit'] != null) {
|
|
4637
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4638
|
+
}
|
|
4639
|
+
if (requestParameters['offset'] != null) {
|
|
4640
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4641
|
+
}
|
|
4642
|
+
const headerParameters = {};
|
|
4643
|
+
let urlPath = `/api/trading/strategies/{id}/executions`;
|
|
4644
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
4645
|
+
return {
|
|
4646
|
+
path: urlPath,
|
|
4647
|
+
method: 'GET',
|
|
4648
|
+
headers: headerParameters,
|
|
4649
|
+
query: queryParameters,
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
/**
|
|
4653
|
+
*/
|
|
4654
|
+
async getApiTradingStrategiesByIdExecutionsRaw(requestParameters, initOverrides) {
|
|
4655
|
+
const requestOptions = await this.getApiTradingStrategiesByIdExecutionsRequestOpts(requestParameters);
|
|
4656
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4657
|
+
return new runtime.VoidApiResponse(response);
|
|
4658
|
+
}
|
|
4659
|
+
/**
|
|
4660
|
+
*/
|
|
4661
|
+
async getApiTradingStrategiesByIdExecutions(requestParameters, initOverrides) {
|
|
4662
|
+
await this.getApiTradingStrategiesByIdExecutionsRaw(requestParameters, initOverrides);
|
|
4663
|
+
}
|
|
4664
|
+
/**
|
|
4665
|
+
* Creates request options for getApiTradingStrategiesByIdLedger without sending the request
|
|
4666
|
+
*/
|
|
4667
|
+
async getApiTradingStrategiesByIdLedgerRequestOpts(requestParameters) {
|
|
4668
|
+
if (requestParameters['id'] == null) {
|
|
4669
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getApiTradingStrategiesByIdLedger().');
|
|
4670
|
+
}
|
|
4671
|
+
const queryParameters = {};
|
|
4672
|
+
if (requestParameters['limit'] != null) {
|
|
4673
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4674
|
+
}
|
|
4675
|
+
if (requestParameters['offset'] != null) {
|
|
4676
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
4677
|
+
}
|
|
4678
|
+
const headerParameters = {};
|
|
4679
|
+
let urlPath = `/api/trading/strategies/{id}/ledger`;
|
|
4680
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
4681
|
+
return {
|
|
4682
|
+
path: urlPath,
|
|
4683
|
+
method: 'GET',
|
|
4684
|
+
headers: headerParameters,
|
|
4685
|
+
query: queryParameters,
|
|
4686
|
+
};
|
|
4687
|
+
}
|
|
4688
|
+
/**
|
|
4689
|
+
*/
|
|
4690
|
+
async getApiTradingStrategiesByIdLedgerRaw(requestParameters, initOverrides) {
|
|
4691
|
+
const requestOptions = await this.getApiTradingStrategiesByIdLedgerRequestOpts(requestParameters);
|
|
4692
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4693
|
+
return new runtime.VoidApiResponse(response);
|
|
4694
|
+
}
|
|
4695
|
+
/**
|
|
4696
|
+
*/
|
|
4697
|
+
async getApiTradingStrategiesByIdLedger(requestParameters, initOverrides) {
|
|
4698
|
+
await this.getApiTradingStrategiesByIdLedgerRaw(requestParameters, initOverrides);
|
|
4699
|
+
}
|
|
4475
4700
|
/**
|
|
4476
4701
|
* Creates request options for getApiTransactions without sending the request
|
|
4477
4702
|
*/
|
|
@@ -4933,6 +5158,36 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4933
5158
|
async getOauthAuthorize(requestParameters, initOverrides) {
|
|
4934
5159
|
await this.getOauthAuthorizeRaw(requestParameters, initOverrides);
|
|
4935
5160
|
}
|
|
5161
|
+
/**
|
|
5162
|
+
* Creates request options for patchApiTradingStrategiesById without sending the request
|
|
5163
|
+
*/
|
|
5164
|
+
async patchApiTradingStrategiesByIdRequestOpts(requestParameters) {
|
|
5165
|
+
if (requestParameters['id'] == null) {
|
|
5166
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling patchApiTradingStrategiesById().');
|
|
5167
|
+
}
|
|
5168
|
+
const queryParameters = {};
|
|
5169
|
+
const headerParameters = {};
|
|
5170
|
+
let urlPath = `/api/trading/strategies/{id}`;
|
|
5171
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
5172
|
+
return {
|
|
5173
|
+
path: urlPath,
|
|
5174
|
+
method: 'PATCH',
|
|
5175
|
+
headers: headerParameters,
|
|
5176
|
+
query: queryParameters,
|
|
5177
|
+
};
|
|
5178
|
+
}
|
|
5179
|
+
/**
|
|
5180
|
+
*/
|
|
5181
|
+
async patchApiTradingStrategiesByIdRaw(requestParameters, initOverrides) {
|
|
5182
|
+
const requestOptions = await this.patchApiTradingStrategiesByIdRequestOpts(requestParameters);
|
|
5183
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
5184
|
+
return new runtime.VoidApiResponse(response);
|
|
5185
|
+
}
|
|
5186
|
+
/**
|
|
5187
|
+
*/
|
|
5188
|
+
async patchApiTradingStrategiesById(requestParameters, initOverrides) {
|
|
5189
|
+
await this.patchApiTradingStrategiesByIdRaw(requestParameters, initOverrides);
|
|
5190
|
+
}
|
|
4936
5191
|
/**
|
|
4937
5192
|
* Creates request options for postApiAdminBetaUsersByIdPrefund without sending the request
|
|
4938
5193
|
*/
|
|
@@ -8881,6 +9136,310 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8881
9136
|
async postApiTradesPropose(requestParameters, initOverrides) {
|
|
8882
9137
|
await this.postApiTradesProposeRaw(requestParameters, initOverrides);
|
|
8883
9138
|
}
|
|
9139
|
+
/**
|
|
9140
|
+
* Creates request options for postApiTradingAdminKillSwitch without sending the request
|
|
9141
|
+
*/
|
|
9142
|
+
async postApiTradingAdminKillSwitchRequestOpts(requestParameters) {
|
|
9143
|
+
if (requestParameters['postApiTradingAdminKillSwitchRequest'] == null) {
|
|
9144
|
+
throw new runtime.RequiredError('postApiTradingAdminKillSwitchRequest', 'Required parameter "postApiTradingAdminKillSwitchRequest" was null or undefined when calling postApiTradingAdminKillSwitch().');
|
|
9145
|
+
}
|
|
9146
|
+
const queryParameters = {};
|
|
9147
|
+
const headerParameters = {};
|
|
9148
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9149
|
+
let urlPath = `/api/trading/admin/kill-switch`;
|
|
9150
|
+
return {
|
|
9151
|
+
path: urlPath,
|
|
9152
|
+
method: 'POST',
|
|
9153
|
+
headers: headerParameters,
|
|
9154
|
+
query: queryParameters,
|
|
9155
|
+
body: PostApiTradingAdminKillSwitchRequestToJSON(requestParameters['postApiTradingAdminKillSwitchRequest']),
|
|
9156
|
+
};
|
|
9157
|
+
}
|
|
9158
|
+
/**
|
|
9159
|
+
*/
|
|
9160
|
+
async postApiTradingAdminKillSwitchRaw(requestParameters, initOverrides) {
|
|
9161
|
+
const requestOptions = await this.postApiTradingAdminKillSwitchRequestOpts(requestParameters);
|
|
9162
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9163
|
+
return new runtime.VoidApiResponse(response);
|
|
9164
|
+
}
|
|
9165
|
+
/**
|
|
9166
|
+
*/
|
|
9167
|
+
async postApiTradingAdminKillSwitch(requestParameters, initOverrides) {
|
|
9168
|
+
await this.postApiTradingAdminKillSwitchRaw(requestParameters, initOverrides);
|
|
9169
|
+
}
|
|
9170
|
+
/**
|
|
9171
|
+
* Creates request options for postApiTradingAdminReconcile without sending the request
|
|
9172
|
+
*/
|
|
9173
|
+
async postApiTradingAdminReconcileRequestOpts() {
|
|
9174
|
+
const queryParameters = {};
|
|
9175
|
+
const headerParameters = {};
|
|
9176
|
+
let urlPath = `/api/trading/admin/reconcile`;
|
|
9177
|
+
return {
|
|
9178
|
+
path: urlPath,
|
|
9179
|
+
method: 'POST',
|
|
9180
|
+
headers: headerParameters,
|
|
9181
|
+
query: queryParameters,
|
|
9182
|
+
};
|
|
9183
|
+
}
|
|
9184
|
+
/**
|
|
9185
|
+
*/
|
|
9186
|
+
async postApiTradingAdminReconcileRaw(initOverrides) {
|
|
9187
|
+
const requestOptions = await this.postApiTradingAdminReconcileRequestOpts();
|
|
9188
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9189
|
+
return new runtime.VoidApiResponse(response);
|
|
9190
|
+
}
|
|
9191
|
+
/**
|
|
9192
|
+
*/
|
|
9193
|
+
async postApiTradingAdminReconcile(initOverrides) {
|
|
9194
|
+
await this.postApiTradingAdminReconcileRaw(initOverrides);
|
|
9195
|
+
}
|
|
9196
|
+
/**
|
|
9197
|
+
* Creates request options for postApiTradingAdminStrategiesByIdTestRun without sending the request
|
|
9198
|
+
*/
|
|
9199
|
+
async postApiTradingAdminStrategiesByIdTestRunRequestOpts(requestParameters) {
|
|
9200
|
+
if (requestParameters['id'] == null) {
|
|
9201
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingAdminStrategiesByIdTestRun().');
|
|
9202
|
+
}
|
|
9203
|
+
if (requestParameters['postApiTradingStrategiesByIdTestRunRequest'] == null) {
|
|
9204
|
+
throw new runtime.RequiredError('postApiTradingStrategiesByIdTestRunRequest', 'Required parameter "postApiTradingStrategiesByIdTestRunRequest" was null or undefined when calling postApiTradingAdminStrategiesByIdTestRun().');
|
|
9205
|
+
}
|
|
9206
|
+
const queryParameters = {};
|
|
9207
|
+
const headerParameters = {};
|
|
9208
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9209
|
+
let urlPath = `/api/trading/admin/strategies/{id}/test-run`;
|
|
9210
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9211
|
+
return {
|
|
9212
|
+
path: urlPath,
|
|
9213
|
+
method: 'POST',
|
|
9214
|
+
headers: headerParameters,
|
|
9215
|
+
query: queryParameters,
|
|
9216
|
+
body: PostApiTradingStrategiesByIdTestRunRequestToJSON(requestParameters['postApiTradingStrategiesByIdTestRunRequest']),
|
|
9217
|
+
};
|
|
9218
|
+
}
|
|
9219
|
+
/**
|
|
9220
|
+
*/
|
|
9221
|
+
async postApiTradingAdminStrategiesByIdTestRunRaw(requestParameters, initOverrides) {
|
|
9222
|
+
const requestOptions = await this.postApiTradingAdminStrategiesByIdTestRunRequestOpts(requestParameters);
|
|
9223
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9224
|
+
return new runtime.VoidApiResponse(response);
|
|
9225
|
+
}
|
|
9226
|
+
/**
|
|
9227
|
+
*/
|
|
9228
|
+
async postApiTradingAdminStrategiesByIdTestRun(requestParameters, initOverrides) {
|
|
9229
|
+
await this.postApiTradingAdminStrategiesByIdTestRunRaw(requestParameters, initOverrides);
|
|
9230
|
+
}
|
|
9231
|
+
/**
|
|
9232
|
+
* Creates request options for postApiTradingAdminTestRun without sending the request
|
|
9233
|
+
*/
|
|
9234
|
+
async postApiTradingAdminTestRunRequestOpts(requestParameters) {
|
|
9235
|
+
if (requestParameters['postApiTradingAdminTestRunRequest'] == null) {
|
|
9236
|
+
throw new runtime.RequiredError('postApiTradingAdminTestRunRequest', 'Required parameter "postApiTradingAdminTestRunRequest" was null or undefined when calling postApiTradingAdminTestRun().');
|
|
9237
|
+
}
|
|
9238
|
+
const queryParameters = {};
|
|
9239
|
+
const headerParameters = {};
|
|
9240
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9241
|
+
let urlPath = `/api/trading/admin/test-run`;
|
|
9242
|
+
return {
|
|
9243
|
+
path: urlPath,
|
|
9244
|
+
method: 'POST',
|
|
9245
|
+
headers: headerParameters,
|
|
9246
|
+
query: queryParameters,
|
|
9247
|
+
body: PostApiTradingAdminTestRunRequestToJSON(requestParameters['postApiTradingAdminTestRunRequest']),
|
|
9248
|
+
};
|
|
9249
|
+
}
|
|
9250
|
+
/**
|
|
9251
|
+
*/
|
|
9252
|
+
async postApiTradingAdminTestRunRaw(requestParameters, initOverrides) {
|
|
9253
|
+
const requestOptions = await this.postApiTradingAdminTestRunRequestOpts(requestParameters);
|
|
9254
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9255
|
+
return new runtime.VoidApiResponse(response);
|
|
9256
|
+
}
|
|
9257
|
+
/**
|
|
9258
|
+
*/
|
|
9259
|
+
async postApiTradingAdminTestRun(requestParameters, initOverrides) {
|
|
9260
|
+
await this.postApiTradingAdminTestRunRaw(requestParameters, initOverrides);
|
|
9261
|
+
}
|
|
9262
|
+
/**
|
|
9263
|
+
* Creates request options for postApiTradingStrategies without sending the request
|
|
9264
|
+
*/
|
|
9265
|
+
async postApiTradingStrategiesRequestOpts() {
|
|
9266
|
+
const queryParameters = {};
|
|
9267
|
+
const headerParameters = {};
|
|
9268
|
+
let urlPath = `/api/trading/strategies/`;
|
|
9269
|
+
return {
|
|
9270
|
+
path: urlPath,
|
|
9271
|
+
method: 'POST',
|
|
9272
|
+
headers: headerParameters,
|
|
9273
|
+
query: queryParameters,
|
|
9274
|
+
};
|
|
9275
|
+
}
|
|
9276
|
+
/**
|
|
9277
|
+
*/
|
|
9278
|
+
async postApiTradingStrategiesRaw(initOverrides) {
|
|
9279
|
+
const requestOptions = await this.postApiTradingStrategiesRequestOpts();
|
|
9280
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9281
|
+
return new runtime.VoidApiResponse(response);
|
|
9282
|
+
}
|
|
9283
|
+
/**
|
|
9284
|
+
*/
|
|
9285
|
+
async postApiTradingStrategies(initOverrides) {
|
|
9286
|
+
await this.postApiTradingStrategiesRaw(initOverrides);
|
|
9287
|
+
}
|
|
9288
|
+
/**
|
|
9289
|
+
* Creates request options for postApiTradingStrategiesByIdEnable without sending the request
|
|
9290
|
+
*/
|
|
9291
|
+
async postApiTradingStrategiesByIdEnableRequestOpts(requestParameters) {
|
|
9292
|
+
if (requestParameters['id'] == null) {
|
|
9293
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdEnable().');
|
|
9294
|
+
}
|
|
9295
|
+
const queryParameters = {};
|
|
9296
|
+
const headerParameters = {};
|
|
9297
|
+
let urlPath = `/api/trading/strategies/{id}/enable`;
|
|
9298
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9299
|
+
return {
|
|
9300
|
+
path: urlPath,
|
|
9301
|
+
method: 'POST',
|
|
9302
|
+
headers: headerParameters,
|
|
9303
|
+
query: queryParameters,
|
|
9304
|
+
};
|
|
9305
|
+
}
|
|
9306
|
+
/**
|
|
9307
|
+
*/
|
|
9308
|
+
async postApiTradingStrategiesByIdEnableRaw(requestParameters, initOverrides) {
|
|
9309
|
+
const requestOptions = await this.postApiTradingStrategiesByIdEnableRequestOpts(requestParameters);
|
|
9310
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9311
|
+
return new runtime.VoidApiResponse(response);
|
|
9312
|
+
}
|
|
9313
|
+
/**
|
|
9314
|
+
*/
|
|
9315
|
+
async postApiTradingStrategiesByIdEnable(requestParameters, initOverrides) {
|
|
9316
|
+
await this.postApiTradingStrategiesByIdEnableRaw(requestParameters, initOverrides);
|
|
9317
|
+
}
|
|
9318
|
+
/**
|
|
9319
|
+
* Creates request options for postApiTradingStrategiesByIdKill without sending the request
|
|
9320
|
+
*/
|
|
9321
|
+
async postApiTradingStrategiesByIdKillRequestOpts(requestParameters) {
|
|
9322
|
+
if (requestParameters['id'] == null) {
|
|
9323
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdKill().');
|
|
9324
|
+
}
|
|
9325
|
+
const queryParameters = {};
|
|
9326
|
+
const headerParameters = {};
|
|
9327
|
+
let urlPath = `/api/trading/strategies/{id}/kill`;
|
|
9328
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9329
|
+
return {
|
|
9330
|
+
path: urlPath,
|
|
9331
|
+
method: 'POST',
|
|
9332
|
+
headers: headerParameters,
|
|
9333
|
+
query: queryParameters,
|
|
9334
|
+
};
|
|
9335
|
+
}
|
|
9336
|
+
/**
|
|
9337
|
+
*/
|
|
9338
|
+
async postApiTradingStrategiesByIdKillRaw(requestParameters, initOverrides) {
|
|
9339
|
+
const requestOptions = await this.postApiTradingStrategiesByIdKillRequestOpts(requestParameters);
|
|
9340
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9341
|
+
return new runtime.VoidApiResponse(response);
|
|
9342
|
+
}
|
|
9343
|
+
/**
|
|
9344
|
+
*/
|
|
9345
|
+
async postApiTradingStrategiesByIdKill(requestParameters, initOverrides) {
|
|
9346
|
+
await this.postApiTradingStrategiesByIdKillRaw(requestParameters, initOverrides);
|
|
9347
|
+
}
|
|
9348
|
+
/**
|
|
9349
|
+
* Creates request options for postApiTradingStrategiesByIdPause without sending the request
|
|
9350
|
+
*/
|
|
9351
|
+
async postApiTradingStrategiesByIdPauseRequestOpts(requestParameters) {
|
|
9352
|
+
if (requestParameters['id'] == null) {
|
|
9353
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdPause().');
|
|
9354
|
+
}
|
|
9355
|
+
const queryParameters = {};
|
|
9356
|
+
const headerParameters = {};
|
|
9357
|
+
let urlPath = `/api/trading/strategies/{id}/pause`;
|
|
9358
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9359
|
+
return {
|
|
9360
|
+
path: urlPath,
|
|
9361
|
+
method: 'POST',
|
|
9362
|
+
headers: headerParameters,
|
|
9363
|
+
query: queryParameters,
|
|
9364
|
+
};
|
|
9365
|
+
}
|
|
9366
|
+
/**
|
|
9367
|
+
*/
|
|
9368
|
+
async postApiTradingStrategiesByIdPauseRaw(requestParameters, initOverrides) {
|
|
9369
|
+
const requestOptions = await this.postApiTradingStrategiesByIdPauseRequestOpts(requestParameters);
|
|
9370
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9371
|
+
return new runtime.VoidApiResponse(response);
|
|
9372
|
+
}
|
|
9373
|
+
/**
|
|
9374
|
+
*/
|
|
9375
|
+
async postApiTradingStrategiesByIdPause(requestParameters, initOverrides) {
|
|
9376
|
+
await this.postApiTradingStrategiesByIdPauseRaw(requestParameters, initOverrides);
|
|
9377
|
+
}
|
|
9378
|
+
/**
|
|
9379
|
+
* Creates request options for postApiTradingStrategiesByIdRun without sending the request
|
|
9380
|
+
*/
|
|
9381
|
+
async postApiTradingStrategiesByIdRunRequestOpts(requestParameters) {
|
|
9382
|
+
if (requestParameters['id'] == null) {
|
|
9383
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdRun().');
|
|
9384
|
+
}
|
|
9385
|
+
const queryParameters = {};
|
|
9386
|
+
const headerParameters = {};
|
|
9387
|
+
let urlPath = `/api/trading/strategies/{id}/run`;
|
|
9388
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9389
|
+
return {
|
|
9390
|
+
path: urlPath,
|
|
9391
|
+
method: 'POST',
|
|
9392
|
+
headers: headerParameters,
|
|
9393
|
+
query: queryParameters,
|
|
9394
|
+
};
|
|
9395
|
+
}
|
|
9396
|
+
/**
|
|
9397
|
+
*/
|
|
9398
|
+
async postApiTradingStrategiesByIdRunRaw(requestParameters, initOverrides) {
|
|
9399
|
+
const requestOptions = await this.postApiTradingStrategiesByIdRunRequestOpts(requestParameters);
|
|
9400
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9401
|
+
return new runtime.VoidApiResponse(response);
|
|
9402
|
+
}
|
|
9403
|
+
/**
|
|
9404
|
+
*/
|
|
9405
|
+
async postApiTradingStrategiesByIdRun(requestParameters, initOverrides) {
|
|
9406
|
+
await this.postApiTradingStrategiesByIdRunRaw(requestParameters, initOverrides);
|
|
9407
|
+
}
|
|
9408
|
+
/**
|
|
9409
|
+
* Creates request options for postApiTradingStrategiesByIdTestRun without sending the request
|
|
9410
|
+
*/
|
|
9411
|
+
async postApiTradingStrategiesByIdTestRunRequestOpts(requestParameters) {
|
|
9412
|
+
if (requestParameters['id'] == null) {
|
|
9413
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdTestRun().');
|
|
9414
|
+
}
|
|
9415
|
+
if (requestParameters['postApiTradingStrategiesByIdTestRunRequest'] == null) {
|
|
9416
|
+
throw new runtime.RequiredError('postApiTradingStrategiesByIdTestRunRequest', 'Required parameter "postApiTradingStrategiesByIdTestRunRequest" was null or undefined when calling postApiTradingStrategiesByIdTestRun().');
|
|
9417
|
+
}
|
|
9418
|
+
const queryParameters = {};
|
|
9419
|
+
const headerParameters = {};
|
|
9420
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9421
|
+
let urlPath = `/api/trading/strategies/{id}/test-run`;
|
|
9422
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9423
|
+
return {
|
|
9424
|
+
path: urlPath,
|
|
9425
|
+
method: 'POST',
|
|
9426
|
+
headers: headerParameters,
|
|
9427
|
+
query: queryParameters,
|
|
9428
|
+
body: PostApiTradingStrategiesByIdTestRunRequestToJSON(requestParameters['postApiTradingStrategiesByIdTestRunRequest']),
|
|
9429
|
+
};
|
|
9430
|
+
}
|
|
9431
|
+
/**
|
|
9432
|
+
*/
|
|
9433
|
+
async postApiTradingStrategiesByIdTestRunRaw(requestParameters, initOverrides) {
|
|
9434
|
+
const requestOptions = await this.postApiTradingStrategiesByIdTestRunRequestOpts(requestParameters);
|
|
9435
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9436
|
+
return new runtime.VoidApiResponse(response);
|
|
9437
|
+
}
|
|
9438
|
+
/**
|
|
9439
|
+
*/
|
|
9440
|
+
async postApiTradingStrategiesByIdTestRun(requestParameters, initOverrides) {
|
|
9441
|
+
await this.postApiTradingStrategiesByIdTestRunRaw(requestParameters, initOverrides);
|
|
9442
|
+
}
|
|
8884
9443
|
/**
|
|
8885
9444
|
* Creates request options for postApiTransactionsBaseSwap without sending the request
|
|
8886
9445
|
*/
|