Order API

Get order's book

Request

  • method: POST

  • url: /volare/vTokens/{contract}/orders/book

  • path:

NameTypeDescriptionExample

contract

string

The vToken address.

0xc4129a3d3f495442f3e58e914352eebb84df68c2

  • query:

NameTypeDescriptionExample

side

number

This is a ask order when 1, or is a bid order when 2.

1

Response

NameTypeDescription

price

string

The price of an option.

size

string

The number of unfilled options.

Get filled orders

Request

  • method: POST

  • url: /volare/vTokens/{contract}/orders/filled

  • path:

NameTypeDescriptionExample

contract

string

The vToken address.

0xc4129a3d3f495442f3e58e914352eebb84df68c2

Response

NameTypeDescription

timestamp

number

The timestamp at which the event is emitted.

price

string

The price of an option.

size

string

The number of filled options.

Get limit orders

Request

  • method: POST

  • url: /volare/vTokens/{contract}/orders/limits

  • path:

NameTypeDescriptionExample

contract

string

The vToken address.

0xc4129a3d3f495442f3e58e914352eebb84df68c2

  • query:

NameTypeDescriptionExample

address

string

The owner address.

0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1

Response

NameTypeDescription

orderHash

string

The order hash.

side

number

This is a ask order when 1, or is a bid order when 2.

type

number

This is a limit order when 1, or is a market order when 2.

price

string

The price of an option.

amount

string

The number of options.

filled

string

The number of filled options.

size

string

The number of unfilled options.

fee

string

The transaction fees.

expiry

number

The timestamp when this order expired.

ctime

number

The created timestamp.

Get orders history

Request

  • method: POST

  • url: /volare/vTokens/{contract]/orders/limits/history

  • path:

NameTypeDescriptionExample

contract

string

The vToken address.

0xc4129a3d3f495442f3e58e914352eebb84df68c2

  • query:

NameTypeDescriptionExample

address

string

The owner address.

0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1

Response

NameTypeDescription

side

number

This is a ask order when 1, or is a bid order when 2.

type

number

This is a limit order when 1, or is a market order when 2.

price

string

The price of an option.

amount

string

The number of options.

filled

string

The number of filled options.

fee

string

The transaction fees.

expiry

number

The timestamp when this order expired.

ctime

number

The created timestamp.

mtime

number

The updated timestamp.

state

number

The order state.

Get a limit order

Request

  • method: POST

  • url: /volare/vTokens/{contract}/orders/limits/{hash}

  • path:

NameTypeDescriptionExample

contract

string

The vToken address.

0xc4129a3d3f495442f3e58e914352eebb84df68c2

hash

string

The order hash.

0xb9843e5947a9e2b066f7e0952aa55ada66aefef65cb2181848cc3f8605d4bf4a

Response

Put limit order

Request

  • method: POST

  • url: /volare/vTokens/{contract}/orders/limits/put

  • path:

NameTypeDescriptionExample

contract

string

The vToken address.

0xc4129a3d3f495442f3e58e914352eebb84df68c2

  • body:

NameTypeDescription

orderHash

string

The order hash.

limitOrder

The limit order detail.

signature

The order signature.

Response

"OK"

Last updated