@paysponge/sdk 0.1.131 → 0.1.133
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 +160 -1
- package/dist/api/generated/openapi/apis/default-api.d.ts.map +1 -1
- package/dist/api/generated/openapi/apis/default-api.js +156 -1
- package/dist/api/generated/openapi/apis/default-api.js.map +1 -1
- package/dist/api/generated/openapi/models/index.d.ts +1 -0
- package/dist/api/generated/openapi/models/index.d.ts.map +1 -1
- package/dist/api/generated/openapi/models/index.js +1 -0
- package/dist/api/generated/openapi/models/index.js.map +1 -1
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-preview-start-request.d.ts +33 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-preview-start-request.d.ts.map +1 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-preview-start-request.js +44 -0
- package/dist/api/generated/openapi/models/post-api-trading-strategies-by-id-preview-start-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 { GetApiAgentsByIdHyperliquidAddress200ResponseFromJSON, PostApiAgentKeysRequestToJSON, PostApiAgentRequestsPlansRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidDepositRequestToJSON, PostApiAgentsByIdHyperliquidLinkRequestToJSON, PostApiAgentsByIdHyperliquidOrderRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsCredentialRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsLinkRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdPolymarketWithdrawRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdStripePaymentMethodsRequestToJSON, PostApiAgentsByIdStripePaymentMethodsSetupIntentRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAgentsTradingTerminalRequestToJSON, 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, PostApiTradingAdminStrategiesByIdReplayRequestToJSON, PostApiTradingAdminTestRunRequestToJSON, PostApiTradingManualStrategiesCloseRequestToJSON, PostApiTradingNotificationsReadAllRequestToJSON, PostApiTradingStrategiesByIdKillRequestToJSON, 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';
|
|
15
|
+
import { GetApiAgentsByIdHyperliquidAddress200ResponseFromJSON, PostApiAgentKeysRequestToJSON, PostApiAgentRequestsPlansRequestToJSON, PostApiAgentsByIdAmazonAccountsCopyRequestToJSON, PostApiAgentsByIdAmazonAccountsRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyMethodRequestToJSON, PostApiAgentsByIdEnrollmentsByEnrollmentIdVerifyOtpRequestToJSON, PostApiAgentsByIdEnrollmentsRequestToJSON, PostApiAgentsByIdHyperliquidCancelOrderRequestToJSON, PostApiAgentsByIdHyperliquidClosePositionRequestToJSON, PostApiAgentsByIdHyperliquidDepositRequestToJSON, PostApiAgentsByIdHyperliquidLinkRequestToJSON, PostApiAgentsByIdHyperliquidOrderRequestToJSON, PostApiAgentsByIdHyperliquidTransferRequestToJSON, PostApiAgentsByIdHyperliquidWithdrawRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdCredentialsRequestToJSON, PostApiAgentsByIdInstructionsByInstructionIdVerifyPasskeyRequestToJSON, PostApiAgentsByIdInstructionsRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsCredentialRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsLinkRequestToJSON, PostApiAgentsByIdLinkPaymentMethodsRequestToJSON, PostApiAgentsByIdPaymentMethodsRequestToJSON, PostApiAgentsByIdPolymarketFundRequestToJSON, PostApiAgentsByIdPolymarketRedeemRequestToJSON, PostApiAgentsByIdPolymarketWithdrawRequestToJSON, PostApiAgentsByIdShippingAddressesRequestToJSON, PostApiAgentsByIdStripePaymentMethodsRequestToJSON, PostApiAgentsByIdStripePaymentMethodsSetupIntentRequestToJSON, PostApiAgentsByIdVirtualCardRequestToJSON, PostApiAgentsRegisterRequestToJSON, PostApiAgentsRequestToJSON, PostApiAgentsTradingTerminalRequestToJSON, 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, PostApiTradingAdminStrategiesByIdReplayRequestToJSON, PostApiTradingAdminTestRunRequestToJSON, PostApiTradingManualStrategiesCloseRequestToJSON, PostApiTradingNotificationsReadAllRequestToJSON, PostApiTradingStrategiesByIdKillRequestToJSON, PostApiTradingStrategiesByIdPreviewStartRequestToJSON, 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
|
*/
|
|
@@ -4829,6 +4829,38 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4829
4829
|
async getApiTradingStrategiesByIdLedger(requestParameters, initOverrides) {
|
|
4830
4830
|
await this.getApiTradingStrategiesByIdLedgerRaw(requestParameters, initOverrides);
|
|
4831
4831
|
}
|
|
4832
|
+
/**
|
|
4833
|
+
* Creates request options for getApiTradingStrategiesSecFilersSuggestions without sending the request
|
|
4834
|
+
*/
|
|
4835
|
+
async getApiTradingStrategiesSecFilersSuggestionsRequestOpts(requestParameters) {
|
|
4836
|
+
const queryParameters = {};
|
|
4837
|
+
if (requestParameters['q'] != null) {
|
|
4838
|
+
queryParameters['q'] = requestParameters['q'];
|
|
4839
|
+
}
|
|
4840
|
+
if (requestParameters['limit'] != null) {
|
|
4841
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4842
|
+
}
|
|
4843
|
+
const headerParameters = {};
|
|
4844
|
+
let urlPath = `/api/trading/strategies/sec/filers/suggestions`;
|
|
4845
|
+
return {
|
|
4846
|
+
path: urlPath,
|
|
4847
|
+
method: 'GET',
|
|
4848
|
+
headers: headerParameters,
|
|
4849
|
+
query: queryParameters,
|
|
4850
|
+
};
|
|
4851
|
+
}
|
|
4852
|
+
/**
|
|
4853
|
+
*/
|
|
4854
|
+
async getApiTradingStrategiesSecFilersSuggestionsRaw(requestParameters, initOverrides) {
|
|
4855
|
+
const requestOptions = await this.getApiTradingStrategiesSecFilersSuggestionsRequestOpts(requestParameters);
|
|
4856
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4857
|
+
return new runtime.VoidApiResponse(response);
|
|
4858
|
+
}
|
|
4859
|
+
/**
|
|
4860
|
+
*/
|
|
4861
|
+
async getApiTradingStrategiesSecFilersSuggestions(requestParameters = {}, initOverrides) {
|
|
4862
|
+
await this.getApiTradingStrategiesSecFilersSuggestionsRaw(requestParameters, initOverrides);
|
|
4863
|
+
}
|
|
4832
4864
|
/**
|
|
4833
4865
|
* Creates request options for getApiTradingStrategiesXResolve without sending the request
|
|
4834
4866
|
*/
|
|
@@ -4861,6 +4893,38 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
4861
4893
|
async getApiTradingStrategiesXResolve(requestParameters, initOverrides) {
|
|
4862
4894
|
await this.getApiTradingStrategiesXResolveRaw(requestParameters, initOverrides);
|
|
4863
4895
|
}
|
|
4896
|
+
/**
|
|
4897
|
+
* Creates request options for getApiTradingStrategiesXSuggestions without sending the request
|
|
4898
|
+
*/
|
|
4899
|
+
async getApiTradingStrategiesXSuggestionsRequestOpts(requestParameters) {
|
|
4900
|
+
const queryParameters = {};
|
|
4901
|
+
if (requestParameters['q'] != null) {
|
|
4902
|
+
queryParameters['q'] = requestParameters['q'];
|
|
4903
|
+
}
|
|
4904
|
+
if (requestParameters['limit'] != null) {
|
|
4905
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
4906
|
+
}
|
|
4907
|
+
const headerParameters = {};
|
|
4908
|
+
let urlPath = `/api/trading/strategies/x/suggestions`;
|
|
4909
|
+
return {
|
|
4910
|
+
path: urlPath,
|
|
4911
|
+
method: 'GET',
|
|
4912
|
+
headers: headerParameters,
|
|
4913
|
+
query: queryParameters,
|
|
4914
|
+
};
|
|
4915
|
+
}
|
|
4916
|
+
/**
|
|
4917
|
+
*/
|
|
4918
|
+
async getApiTradingStrategiesXSuggestionsRaw(requestParameters, initOverrides) {
|
|
4919
|
+
const requestOptions = await this.getApiTradingStrategiesXSuggestionsRequestOpts(requestParameters);
|
|
4920
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4921
|
+
return new runtime.VoidApiResponse(response);
|
|
4922
|
+
}
|
|
4923
|
+
/**
|
|
4924
|
+
*/
|
|
4925
|
+
async getApiTradingStrategiesXSuggestions(requestParameters = {}, initOverrides) {
|
|
4926
|
+
await this.getApiTradingStrategiesXSuggestionsRaw(requestParameters, initOverrides);
|
|
4927
|
+
}
|
|
4864
4928
|
/**
|
|
4865
4929
|
* Creates request options for getApiTradingWorkspace without sending the request
|
|
4866
4930
|
*/
|
|
@@ -9808,6 +9872,71 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
9808
9872
|
async postApiTradingStrategiesByIdPause(requestParameters, initOverrides) {
|
|
9809
9873
|
await this.postApiTradingStrategiesByIdPauseRaw(requestParameters, initOverrides);
|
|
9810
9874
|
}
|
|
9875
|
+
/**
|
|
9876
|
+
* Creates request options for postApiTradingStrategiesByIdPreview without sending the request
|
|
9877
|
+
*/
|
|
9878
|
+
async postApiTradingStrategiesByIdPreviewRequestOpts(requestParameters) {
|
|
9879
|
+
if (requestParameters['id'] == null) {
|
|
9880
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdPreview().');
|
|
9881
|
+
}
|
|
9882
|
+
const queryParameters = {};
|
|
9883
|
+
const headerParameters = {};
|
|
9884
|
+
let urlPath = `/api/trading/strategies/{id}/preview`;
|
|
9885
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9886
|
+
return {
|
|
9887
|
+
path: urlPath,
|
|
9888
|
+
method: 'POST',
|
|
9889
|
+
headers: headerParameters,
|
|
9890
|
+
query: queryParameters,
|
|
9891
|
+
};
|
|
9892
|
+
}
|
|
9893
|
+
/**
|
|
9894
|
+
*/
|
|
9895
|
+
async postApiTradingStrategiesByIdPreviewRaw(requestParameters, initOverrides) {
|
|
9896
|
+
const requestOptions = await this.postApiTradingStrategiesByIdPreviewRequestOpts(requestParameters);
|
|
9897
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9898
|
+
return new runtime.VoidApiResponse(response);
|
|
9899
|
+
}
|
|
9900
|
+
/**
|
|
9901
|
+
*/
|
|
9902
|
+
async postApiTradingStrategiesByIdPreview(requestParameters, initOverrides) {
|
|
9903
|
+
await this.postApiTradingStrategiesByIdPreviewRaw(requestParameters, initOverrides);
|
|
9904
|
+
}
|
|
9905
|
+
/**
|
|
9906
|
+
* Creates request options for postApiTradingStrategiesByIdPreviewStart without sending the request
|
|
9907
|
+
*/
|
|
9908
|
+
async postApiTradingStrategiesByIdPreviewStartRequestOpts(requestParameters) {
|
|
9909
|
+
if (requestParameters['id'] == null) {
|
|
9910
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiTradingStrategiesByIdPreviewStart().');
|
|
9911
|
+
}
|
|
9912
|
+
if (requestParameters['postApiTradingStrategiesByIdPreviewStartRequest'] == null) {
|
|
9913
|
+
throw new runtime.RequiredError('postApiTradingStrategiesByIdPreviewStartRequest', 'Required parameter "postApiTradingStrategiesByIdPreviewStartRequest" was null or undefined when calling postApiTradingStrategiesByIdPreviewStart().');
|
|
9914
|
+
}
|
|
9915
|
+
const queryParameters = {};
|
|
9916
|
+
const headerParameters = {};
|
|
9917
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
9918
|
+
let urlPath = `/api/trading/strategies/{id}/preview/start`;
|
|
9919
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
9920
|
+
return {
|
|
9921
|
+
path: urlPath,
|
|
9922
|
+
method: 'POST',
|
|
9923
|
+
headers: headerParameters,
|
|
9924
|
+
query: queryParameters,
|
|
9925
|
+
body: PostApiTradingStrategiesByIdPreviewStartRequestToJSON(requestParameters['postApiTradingStrategiesByIdPreviewStartRequest']),
|
|
9926
|
+
};
|
|
9927
|
+
}
|
|
9928
|
+
/**
|
|
9929
|
+
*/
|
|
9930
|
+
async postApiTradingStrategiesByIdPreviewStartRaw(requestParameters, initOverrides) {
|
|
9931
|
+
const requestOptions = await this.postApiTradingStrategiesByIdPreviewStartRequestOpts(requestParameters);
|
|
9932
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
9933
|
+
return new runtime.VoidApiResponse(response);
|
|
9934
|
+
}
|
|
9935
|
+
/**
|
|
9936
|
+
*/
|
|
9937
|
+
async postApiTradingStrategiesByIdPreviewStart(requestParameters, initOverrides) {
|
|
9938
|
+
await this.postApiTradingStrategiesByIdPreviewStartRaw(requestParameters, initOverrides);
|
|
9939
|
+
}
|
|
9811
9940
|
/**
|
|
9812
9941
|
* Creates request options for postApiTradingStrategiesByIdRun without sending the request
|
|
9813
9942
|
*/
|
|
@@ -9873,6 +10002,32 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
9873
10002
|
async postApiTradingStrategiesByIdTestRun(requestParameters, initOverrides) {
|
|
9874
10003
|
await this.postApiTradingStrategiesByIdTestRunRaw(requestParameters, initOverrides);
|
|
9875
10004
|
}
|
|
10005
|
+
/**
|
|
10006
|
+
* Creates request options for postApiTradingStrategiesPreviewDraft without sending the request
|
|
10007
|
+
*/
|
|
10008
|
+
async postApiTradingStrategiesPreviewDraftRequestOpts() {
|
|
10009
|
+
const queryParameters = {};
|
|
10010
|
+
const headerParameters = {};
|
|
10011
|
+
let urlPath = `/api/trading/strategies/preview-draft`;
|
|
10012
|
+
return {
|
|
10013
|
+
path: urlPath,
|
|
10014
|
+
method: 'POST',
|
|
10015
|
+
headers: headerParameters,
|
|
10016
|
+
query: queryParameters,
|
|
10017
|
+
};
|
|
10018
|
+
}
|
|
10019
|
+
/**
|
|
10020
|
+
*/
|
|
10021
|
+
async postApiTradingStrategiesPreviewDraftRaw(initOverrides) {
|
|
10022
|
+
const requestOptions = await this.postApiTradingStrategiesPreviewDraftRequestOpts();
|
|
10023
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
10024
|
+
return new runtime.VoidApiResponse(response);
|
|
10025
|
+
}
|
|
10026
|
+
/**
|
|
10027
|
+
*/
|
|
10028
|
+
async postApiTradingStrategiesPreviewDraft(initOverrides) {
|
|
10029
|
+
await this.postApiTradingStrategiesPreviewDraftRaw(initOverrides);
|
|
10030
|
+
}
|
|
9876
10031
|
/**
|
|
9877
10032
|
* Creates request options for postApiTransactionsBaseSwap without sending the request
|
|
9878
10033
|
*/
|