POST
/
requestExportReport
curl --request POST \
  --url https://gateway.finhub.cloud/crypto/requestExportReport \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "nonce": 75100193,
  "report": "trades",
  "description": "laboris i",
  "format": "CSV",
  "fields": "all",
  "starttm": 75322482,
  "endtm": "-65934851"
}'
{
  "error": [],
  "result": {
    "id": "TCJA"
  }
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Tenant/Owner id

Content-Type
string

Body

application/json
nonce
integer

(Required)

report
string

(Required) Type of data to export

description
string

(Required) Description for the export

format
string

File format to export

fields
string

Comma-delimited list of fields to include

  • trades: ordertxid, time, ordertype, price, cost, fee, vol, margin, misc, ledgers
  • ledgers: refid, time, type, aclass, asset, amount, fee, balance
starttm
integer

UNIX timestamp for report start time (default 1st of the current month)

endtm
string

UNIX timestamp for report end time (default now)

Response

200 - application/json

The response is of type object.