Stryke Docs
HomeGitHubSocials
  • ⚡Introducing Stryke
  • 🔍Products Overview
    • Product Overview (CLAMM)
      • For Option Traders
      • For Liquidity Providers
  • 🌚Tokenomics
    • SYK Token
    • xSYK Token
    • Reward Gauges
    • Protocol Fees
  • 🚶‍♂️UI Walkthroughs
    • CLAMM Walkthrough
      • Connect Wallet
      • Navigate Markets
      • Trade Options
      • Limit Exercise
      • Provide Liquidity
      • Reward Gauges
  • ⛓️Developers
    • Contracts
      • LP Management
        • Mint a Position
        • Burn a Position
        • Reserve Liquidity
        • Withdraw Reserved Liquidity
      • Trading
        • Mint Option
        • Exercise Option
    • APIs
      • xSYK
      • CLAMM
        • Trading
          • Purchase
          • Exercise
        • LP management
        • Option markets
        • Strikes chain
    • Deployed Addresses
      • CLAMM
      • Tokens & Others
      • Gauges
    • Bug Bounty Program
  • 📚REFERENCES
    • Glossary
    • Audits
    • Partners
    • Media Kit
Powered by GitBook
LogoLogo

© 2024 Stryke

On this page

Was this helpful?

  1. Developers
  2. APIs
  3. CLAMM
  4. Trading

Purchase

Endpoints pertaining to requesting for quotes for options, viewing user options positions and options purchase history

PreviousTradingNextExercise

Last updated 1 year ago

Was this helpful?

Base API path: https://api.stryke.xyz/clamm/purchase

Options Quote

The /quote endpoint is designed to return the estimated cost of purchasing an option for a given market This endpoint is useful for users who want to understand the pricing details before making a purchase. It provides both the estimated cost and the relevant token information. Note: Due to high volatility in certain markets the cost of the options may be slightly stale

Options Positions

The /positions endpoint retrieves information about a user's current options positions of a given market. It provides an overview of the options positions held by a user including details about the type of option, quantity, strike price, expiration, size etc.

Purchase history

The /history endpoint retrieves options purchases by a user for a given market.

⛓️

Get quote for purchasing options

get
Query parameters
chainIdnumber · enumRequired

Chain ID of the network

Possible values:
optionMarketstringRequired

Address of the option market

userstringRequired
strikenumberRequired
markPricenumberRequired
typestring · enumRequiredPossible values:
amountnumberRequired
ttlnumberRequired
Responses
200
Get cost of purchasing an option
application/json
get
GET /clamm/purchase/quote HTTP/1.1
Host: api.stryke.xyz
Accept: */*
200

Get cost of purchasing an option

{
  "token": {
    "address": "text",
    "decimals": "text",
    "symbol": "text"
  },
  "premium": "text",
  "fees": "text"
}

Get current options positions of a user

get
Query parameters
chainIdnumber · enumRequired

Chain ID of the network

Possible values:
optionMarketstringRequired

Address of the option market

userstringRequired

Address of the user

firstnumber · enumRequired

Pagination parameter for first (Similar to Qraphql)

Possible values:
skipnumber · enumRequired

Pagination parameter for skip (Similar to Qraphql)

Possible values:
Responses
200
List of options positions
application/json
get
GET /clamm/purchase/positions HTTP/1.1
Host: api.stryke.xyz
Accept: */*
200

List of options positions

[
  {
    "size": "text",
    "premium": "text",
    "strike": 1,
    "type": "call",
    "token": {
      "address": "text",
      "decimals": "text",
      "symbol": "text"
    },
    "meta": {
      "tokenId": "text",
      "expiry": 1,
      "handlers": [
        {
          "name": "text",
          "deprecated": true,
          "handler": {},
          "pool": {}
        }
      ],
      "liquidities": [
        "text"
      ]
    }
  }
]

Get history of options purchases for a user

get
Query parameters
chainIdnumber · enumRequired

Chain ID of the network

Possible values:
optionMarketstringRequired

Address of the option market

userstringRequired

Address of the user

firstnumber · enumRequired

Pagination parameter for first (Similar to Qraphql)

Possible values:
skipnumber · enumRequired

Pagination parameter for skip (Similar to Qraphql)

Possible values:
Responses
200
History of options purchases by an address
application/json
get
GET /clamm/purchase/history HTTP/1.1
Host: api.stryke.xyz
Accept: */*
200

History of options purchases by an address

[
  {
    "txHash": {},
    "timestamp": 1,
    "strike": 1,
    "size": "text",
    "ttl": 1,
    "type": "call",
    "premium": "text",
    "token": {
      "address": "text",
      "decimals": "text",
      "symbol": "text"
    }
  }
]
  • Options Quote
  • GETGet quote for purchasing options
  • Options Positions
  • GETGet current options positions of a user
  • Purchase history
  • GETGet history of options purchases for a user