List user operations

List all operations done on a user account.

URL

GET https://exchange.savitar.io/api/v1/user/account/:currency/operations

Path Parameters

currency
enum
Currency of account.
Possible values: eur, btc, eth, ltc, atom, xtz, bch

Query Parameters

cursor (Optional)
string
Paging cursor. Take it from a previous response.

Response Data

operations[].tid
string
Transaction id of operation.
operations[].label
string
Label code to identify operation type.
operations[].amount
string
Amount of the operation.
next_cursor (Optional)
string
Cursor to fetch older results. Empty if no more results are available.

Examples

Request:

curl -H "Authorization: Bearer $JWT_TOKEN" \
     https://exchange.savitar.io/api/v1/user/account/btc/operations

Response:

{
  "status": "ok",
  "response": {
    "next_cursor": "9d3e222c-1ead-4748-93e8-38804653ae75",
    "operations": [
      {
        "amount": "-0.00114698",
        "label": "withdraw.outcome",
        "tid": "b6e43f6a-e4ea-44ae-9d47-b050ea582a5a"
      },
      {
        "amount": "-0.0005",
        "label": "withdraw.tx.fee",
        "tid": "b6e43f6a-e4ea-44ae-9d47-b050ea582a5a"
      },
      {
        "amount": "0.00164698",
        "label": "quote.buy.btc.income",
        "tid": "b6e43f6a-e4ea-44ae-9d47-b050ea582a5a"
      }
    ]
  }
}