Position API
Get longs
Request
method:
POST
url:
/volare/longs
query:
Name | Type | Description | Example |
---|---|---|---|
vToken | string | The vToken address. | 0x801a33e856f44236ac44ed2dada8c0ada9738d67 |
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
isExpired | boolean | The option is expired when true, or is not expried when false. | true |
isRedeemed | boolean | The option is redeemed or loss when true, or is profit when false. | true |
Response
Array<Long>
Get candidate longs
Request
method:
POST
url:
/volare/longs/candidate
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
productHash | string | The product hash. | 0xd04e465a8843cd793e5374984bb70e1c05ca41bed2333c4c39f8dbaa62fe53b2 |
expiry | number | The expiry timestamp. | 1648440000 |
Response
Array<Long>
Get long filter
Request
method:
POST
url:
/volare/longs/filter
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
isExpired | boolean | The option is expired when true, or is not expried when false. | true |
Response
Name | Type | Description |
---|---|---|
products | Array<Product> | The products list. |
expiry | Array<number> | The expiry list. |
strikePrices | Array<string> | The strike prices list. |
Get long PnLs
Request
method:
POST
url:
/volare/longs/findPnLByAddressAndVToken
query:
Name | Type | Description | Example |
---|---|---|---|
vToken | string | The vToken address. | 0x801a33e856f44236ac44ed2dada8c0ada9738d67 |
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
start | number | The start timestamp. | 1658476800 |
end | number | The end timestamp. | 1659081600 |
Response
Array<LongPnL>
Get shorts
Request
method:
POST
url:
/volare/shorts
query:
Name | Type | Description | Example |
---|---|---|---|
vToken | string | The vToken address. | 0x801a33e856f44236ac44ed2dada8c0ada9738d67 |
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
isExpired | boolean | The option is expired when true, or is not expried when false. | true |
isSettled | boolean | The option is settled when true, or is not settled when false. | true |
Response
Array<Short>
Get collaterals
Request
method:
POST
url:
/volare/collaterals
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
vaultId | number | The vault ID. | 1 |
Response
Array<Collateral>
Get vaults
Request
method:
POST
url:
/volare/vaults
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
isDetailed | boolean | Whether to include details. | false |
Response
Array<Vault>
Get liquidatable vaults
Request
method:
POST
url:
/volare/vaults/findLiquidatable
query:
Name | Type | Description | Example |
---|---|---|---|
underlying | string | The underlying address. | 0xf11c7e4ce4846c7cc0669105f8358612d0e1f593 |
isPut | boolean | The Call or Put | false |
isDetailed | boolean | Whether to include details. | false |
Response
Array<Vault>
Get vault
Request
method:
GET
url:
/volare/vaults/findByAddressAndVaultId
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
vaultId | number | The vault ID. | 1 |
Response
Get vault PnLs
Request
method:
POST
url:
/volare/vaults/findPnLByAddressAndVaultId
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
vaultId | number | The vault ID. | 1 |
start | number | The start timestamp | 1658476800 |
end | number | The end timestamp | 1659081600 |
isDetailed | boolean | Whether to include details. | false |
Response
Array<VaultPnL>
Get volare logs
Request
method:
POST
url:
/volare/logs
query:
Name | Type | Description | Example |
---|---|---|---|
contract | string | The vToken address. | 0x801a33e856f44236ac44ed2dada8c0ada9738d67 |
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
Response
Array<Log>
Last updated