Create Pools
Authorizations
Body
basestringOptionalExample:
WETH
quotestringOptionalExample:
USDC
expirationstringOptionalExample:
03NOV23
Pattern: ^\d\d\w\w\w\d\d$
strikenumberOptionalExample:
1700
typestring · enumOptionalExample:
P
Possible values: Responses
200
Successful operation
application/json
400
Invalid parameters supplied
application/json
401
Not authorized
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?