Create Pools
Required scopes
This endpoint requires the following scopes:
Authorizations
x-apikeystringRequired
Bodyobject[]
basestringOptionalExample:
WETHquotestringOptionalExample:
USDCexpirationstringOptionalExample:
03NOV23Pattern: ^\d\d\w\w\w\d\d$strikenumberOptionalExample:
1700typestring · enumOptionalExample:
PPossible values: Responses
200
Successful operation
application/json
400
Invalid parameters supplied
application/json
401
Not authorized
application/json
post
/poolsPOST /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?