Order API
Get order's book
Request
method:
POST
url:
/volare/vTokens/{contract}/orders/book
path:
Name | Type | Description | Example |
---|---|---|---|
contract | string | The vToken address. | 0xc4129a3d3f495442f3e58e914352eebb84df68c2 |
query:
Name | Type | Description | Example |
---|---|---|---|
side | number | This is a ask order when 1, or is a bid order when 2. | 1 |
Response
Name | Type | Description |
---|---|---|
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:
Name | Type | Description | Example |
---|---|---|---|
contract | string | The vToken address. | 0xc4129a3d3f495442f3e58e914352eebb84df68c2 |
Response
Name | Type | Description |
---|---|---|
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:
Name | Type | Description | Example |
---|---|---|---|
contract | string | The vToken address. | 0xc4129a3d3f495442f3e58e914352eebb84df68c2 |
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
Response
Name | Type | Description |
---|---|---|
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:
Name | Type | Description | Example |
---|---|---|---|
contract | string | The vToken address. | 0xc4129a3d3f495442f3e58e914352eebb84df68c2 |
query:
Name | Type | Description | Example |
---|---|---|---|
address | string | The owner address. | 0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1 |
Response
Name | Type | Description |
---|---|---|
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:
Name | Type | Description | Example |
---|---|---|---|
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:
Name | Type | Description | Example |
---|---|---|---|
contract | string | The vToken address. | 0xc4129a3d3f495442f3e58e914352eebb84df68c2 |
body:
Name | Type | Description |
---|---|---|
orderHash | string | The order hash. |
limitOrder | The limit order detail. | |
signature | The order signature. |
Response
Last updated