Actions51
- Accounts Actions
- Products Actions
- Orders Actions
- Portfolio Actions
- List Portfolios
- Create Portfolio
- Move Portfolio Funds
- Get Portfolio Breakdown
- Delete Portfolio
- Edit Portfolio
- Get Futures Balance Summary
- Get Intraday Margin Setting
- Set Intraday Margin Setting
- Get Current Margin Window
- List Futures Positions
- Get Futures Position
- Schedule Futures Sweep
- List Futures Sweeps
- Cancel Pending Futures Sweep
- Allocate Portfolio
- Get Perpetuals Portfolio Summary
- List Perpetuals Positions
- Get Perpetuals Position
- Get Portfolios Balances
- Opt Inor Outof Multi Asset Collateral
- Fees Actions
- Converts Actions
- Public Actions
- Payment Methods Actions
- Data Actions
Converts → New Request
AI-generatedSummary
Initiate a new conversion request with custom settings for handling requests.
Inputs
- requestOptions (required) — Settings for the request, including options for batching, SSL certificate handling, proxy usage, and timeout.
- requestOptions.batching.batchSize — Specify the number of items per batch to throttle requests. Set to -1 to disable batching.
- requestOptions.batching.batchInterval — Define the interval in milliseconds between processed batches. Set to 0 to disable the interval.
- requestOptions.allowUnauthorizedCerts — Allow the operation to accept responses even if SSL certificate validation fails.
- requestOptions.proxy — HTTP proxy configuration, including authentication if necessary.
- requestOptions.timeout — Set the maximum wait time (in milliseconds) for the server to respond before aborting the request.
Output shape
a confirmation or result of the conversion request
Optional fields may not be present in the response; ensure to handle potential errors properly.
Examples
Example 1: Batch convert cryptocurrency amounts with defined sizes and intervals.
requestOptions: { batching: { batchSize: 10, batchInterval: 2000 }, allowUnauthorizedCerts: true, proxy: 'http://proxy.example.com:3128', timeout: 5000 }