Create Pools

Creates new option pools.

post
Authorizations
Body
basestringOptionalExample: WETH
quotestringOptionalExample: USDC
expirationstringOptionalExample: 03NOV23Pattern: ^\d\d\w\w\w\d\d$
strikenumberOptionalExample: 1700
typestring · enumOptionalExample: PPossible values:
Responses
200
Successful operation
application/json
post
POST /pools HTTP/1.1
Host: 
x-apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 80

[
  {
    "base": "WETH",
    "quote": "USDC",
    "expiration": "03NOV23",
    "strike": 1700,
    "type": "P"
  }
]
{
  "success": [
    {
      "base": "WETH",
      "quote": "USDC",
      "expiration": "03NOV23",
      "strike": 1700,
      "type": "P",
      "poolAddress": "0x...4cFF2"
    }
  ],
  "existed": [
    {
      "base": "WETH",
      "quote": "USDC",
      "expiration": "03NOV23",
      "strike": 1700,
      "type": "P",
      "poolAddress": "0x...4cFF2"
    }
  ],
  "failed": [
    {
      "base": "WETH",
      "quote": "USDC",
      "expiration": "03NOV23",
      "strike": 1700,
      "type": "P"
    }
  ]
}

Last updated

Was this helpful?