CrowdTrendz Perpetuals icon

CrowdTrendz Perpetuals

Interact with Strike Finance perpetual trading platform via API

Open Position

AI-generated

Summary

Open a new perpetual position on the Strike Finance platform by specifying parameters like the Cardano address, collateral amount in ADA, leverage, position type, and optional stop loss and take profit prices.

Inputs

  • Strike API Base URL — Base URL of the Strike Finance API; defaults to https://app.strikefinance.org/api.
  • Network — Cardano network to use; options are 'mainnet', 'testnet', or 'preprod' with 'mainnet' as default.
  • Address Source (required) — Method to obtain the Cardano address: generate from wallet, from previous node input, or manual entry.
  • Address Index — Index of the address to generate from the wallet; applies only if 'Generate from Wallet' is chosen. Defaults to 0.
  • Manual Address (required) — Cardano address entered manually; required if 'Address Source' is 'Manual'.
  • Asset Policy ID — Policy ID of the asset to use; leave empty to default to ADA.
  • Asset Name — Asset name for the asset; leave empty to default to ADA.
  • Collateral Amount (required) — Amount of collateral in ADA to lock for the position; minimum 1 ADA.
  • Leverage (required) — Leverage multiplier for the position, from 1 up to 20.
  • Position Type (required) — Type of position to open: 'Long' to bet on price increase or 'Short' to bet on price decrease.
  • Stop Loss Price — Price at which to automatically close the position to limit losses; 0 disables this feature.
  • Take Profit Price — Price at which to automatically close the position to take profit; 0 disables this feature.
  • Partner Address — Optional Cardano address to credit for referrals or affiliate program.

Output shape

a JSON object

Returns a JSON object containing the result status. If a transaction needs signing and submission, the response includes the transaction CBOR and related position details; otherwise, it contains the API response and confirmation message. On error, the output includes error details and context.

Examples

Example 1: Open a leveraged long position with 25 ADA collateral on mainnet, generating the address from wallet index 0, and specifying stop loss and take profit prices.

Use 'Generate from Wallet' as address source with index 0, leverage 2, collateral 25, position type 'Long', and set stopLossPrice and takeProfitPrice as needed.

Links

Discussion