CrowdTrendz Perpetuals icon

CrowdTrendz Perpetuals

Interact with Strike Finance perpetual trading platform via API

Get Positions

AI-generated

Summary

Retrieve all open perpetual trading positions for a specified Cardano address from the Strike Finance API.

Inputs

  • Strike API Base URL — The base URL for the Strike Finance API; defaults to 'https://app.strikefinance.org/api' if not specified.
  • Network — Cardano network context to use; options are Mainnet, Testnet, or Preprod. Defaults to Mainnet.
  • Address Source (required) — Method to determine the Cardano address whose positions to fetch: generate it from the connected wallet, obtain from previous node input, or enter manually.
  • Address Index — If generating the address from the wallet, the index of the address to use (default 0). Only the first address is used due to Mesh SDK limitations.
  • Manual Address — If selecting manual address source, provide the full Cardano address to query.

Output shape

a list of open perpetual positions associated with the specified address

The output JSON contains 'status', 'address', 'positions' (an array of positions), and 'timestamp'. On failure, it returns an error message alongside the requested address and timestamp.

Examples

Example 1: Fetch positions using a manually entered address

Set Address Source to 'Manual' and provide the Cardano address in 'Manual Address'. Leave other parameters as defaults or as needed.

Example 2: Fetch positions by generating the address from the connected wallet

Set Address Source to 'Generate from Wallet', optionally configure Address Index and Network to select the desired derived address and environment.

Links

Discussion