Purchase
Endpoints pertaining to requesting for quotes for options, viewing user options positions and options purchase history
Last updated
Was this helpful?
Endpoints pertaining to requesting for quotes for options, viewing user options positions and options purchase history
Last updated
Was this helpful?
Base API path: https://api.stryke.xyz/clamm/purchase
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
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.
The /history
endpoint retrieves options purchases by a user for a given market.
/clamm/purchase/quote
Chain ID of the network
5000
, 42161
Address of the option market
call
, put
/clamm/purchase/positions
Chain ID of the network
5000
, 42161
Address of the option market
Address of the user
Pagination parameter for first (Similar to Qraphql)
100
, 200
, 300
Pagination parameter for skip (Similar to Qraphql)
0
, 100
, 200
/clamm/purchase/history
Chain ID of the network
5000
, 42161
Address of the option market
Address of the user
Pagination parameter for first (Similar to Qraphql)
100
, 200
, 300
Pagination parameter for skip (Similar to Qraphql)
0
, 100
, 200