Annihilate
Annihilates all long/short positions that offset in each specified option in the request. Please note that it should be rare to need this endpoint when using only the orderbook. This is more applicable when there is peer to peer transfers or account consolidations (transactions that do not go through the orderbook).
post
Authorizations
Body
basestringRequiredExample:
WETH
quotestringRequiredExample:
USDC
expirationstringRequiredExample:
03NOV23
Pattern: ^\d\d\w\w\w\d\d$
strikenumberRequiredExample:
1700
typestringRequiredExample:
C
Pattern: ^C$|^P$
Responses
200
Positions annihilated
application/json
400
Invalid parameters supplied
application/json
401
Not authorized
application/json
post
POST /pool/annihilate HTTP/1.1
Host:
x-apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"base": "WETH",
"quote": "USDC",
"expiration": "03NOV23",
"strike": 1700,
"type": "C"
}
{
"success": [
{
"base": "WETH",
"quote": "USDC",
"expiration": "03NOV23",
"strike": 1700,
"type": "P"
}
],
"failed": [
{
"failedOption": {
"base": "WETH",
"quote": "USDC",
"expiration": "03NOV23",
"strike": 1700,
"type": "P"
},
"reason": "text"
}
]
}
Last updated
Was this helpful?