Api fill history request
Query for all historical fills made by a single account. A single order can be matched multiple times, hence there is no real way to uniquely identify a trade.
Pagination works as follows:
- We perform a reverse chronological lookup, starting from
end_time
. Ifend_time
is not set, we start from the most recent data. - The lookup is limited to
limit
records. If more data is requested, the response will contain anext
cursor for you to query the next page. - If a
cursor
is provided, it will be used to fetch results from that point onwards. - Pagination will continue until the
start_time
is reached. Ifstart_time
is not set, pagination will continue as far back as our data retention policy allows.
NameLite |
Type | RequiredDefault |
Description |
---|---|---|---|
sub_account_idsa |
string | True | The sub account ID to request for |
kindk |
[Kind] | Falseall |
The kind filter to apply. If nil, this defaults to all kinds. Otherwise, only entries matching the filter will be returned |
baseb |
[string] | Falseall |
The base filter to apply. If nil, this defaults to all bases. Otherwise, only entries matching the filter will be returned |
quoteq |
[string] | Falseall |
The quote filter to apply. If nil, this defaults to all quotes. Otherwise, only entries matching the filter will be returned |
start_timest |
string | False0 |
The start time to apply in unix nanoseconds. If nil, this defaults to all start times. Otherwise, only entries matching the filter will be returned |
end_timeet |
string | Falsenow() |
The end time to apply in unix nanoseconds. If nil, this defaults to all end times. Otherwise, only entries matching the filter will be returned |
limitl |
integer | False500 |
The limit to query for. Defaults to 500; Max 1000 |
cursorc |
string | False'' |
The cursor to indicate when to start the query from |
Kind
The list of asset kinds that are supported on the GRVT exchange
Value | Description |
---|---|
PERPETUAL = 1 |
the perpetual asset kind |
FUTURE = 2 |
the future asset kind |
CALL = 3 |
the call option asset kind |
PUT = 4 |
the put option asset kind |