Position API

Get longs

Request

  • method: POST

  • url: /volare/longs

  • query:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription Example

address

string

The owner address.

0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1

isExpired

boolean

The option is expired when true, or is not expried when false.

true

Response

NameTypeDescription

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:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription 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:

NameTypeDescription Example

contract

string

The vToken address.

0x801a33e856f44236ac44ed2dada8c0ada9738d67

address

string

The owner address.

0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1

Response

Array<Log>

Last updated