-
Notifications
You must be signed in to change notification settings - Fork 30
Transaction API
Transaction API covers transactional history.
All numbers, specifically for price and volume, are returned as an integer. The conversion is 100000000, or 1E8. For strongly typed programming languages, use of integer or long integer variable types is strongly recommended, as decimals will not be returned by the API.
path: /v2/transaction/history/[{currency}]
special note: {currency}
is not mandatory for this endpoint, and if omitted, will return transactions of all currencies.
url parameters:
-
limit
: Number of results to return per "page". If not provided, default is 200. -
since
: an tradeId. If provided, andindexForward
isfalse
, returned results will be trades earlier than the trade id provided, non-inclusive. IfindexForward
istrue
, returned results will be trades after the tradeId provided, non-inclusive. -
indexForward
: Set totrue
to see orders more recent than the tradeId in thesince
parameter, if asince
parameter is used. Default isfalse
. -
sortForward
: Set totrue
to see the earliest transactions first in the list of returned transactions i.e. in chronological order. Default isfalse
.
pagination: yes
sample request: /v2/transaction/history/AUD?limit=5&since=699427&indexForward=true&sortForward=true
sample response:
{
"success": true,
"paging": {
"newer": "/v2/transaction/history/AUD?limit=5&sortForward=true&indexForward=true&since=699961",
"older": "/v2/transaction/history/AUD?limit=5&sortForward=true&since=699428"
},
"transactions": [
{
"id": 699428,
"creationTime": 1523314955677,
"description": "Buy 1.00000000BTC @ AUD 100.00000000 Partially matched at 34.00000000",
"currency": "AUD",
"balance": 89872899507,
"amount": -340000000,
"recordType": "Trade",
"referenceId": 699409,
"action": "Buy Order"
},
{
"id": 699430,
"creationTime": 1523314955680,
"description": "Buy 0.10000000BTC @ AUD 34.00000000 Trading fee",
"currency": "AUD",
"balance": 89870009511,
"amount": -2889996,
"recordType": "Trade",
"referenceId": 699409,
"action": "Trading Fee"
},
{
"id": 699602,
"creationTime": 1523387467383,
"description": " transfer was successfull.AUD transfer from [****@***.com] to [*****@***.com] amount: 10000000000",
"currency": "AUD",
"balance": 99870009511,
"amount": 10000000000,
"recordType": "Fund Transfer",
"referenceId": 699600,
"action": "Deposit"
},
{
"id": 699959,
"creationTime": 1523604476881,
"description": "Buy 0.12300000BTC @ AUD 123.00000000 Fully matched at 28.00000000",
"currency": "AUD",
"balance": 99525609511,
"amount": -344400000,
"recordType": "Trade",
"referenceId": 699951,
"action": "Buy Order"
},
{
"id": 699961,
"creationTime": 1523604476885,
"description": "Buy 0.12300000BTC @ AUD 28.00000000 Trading fee",
"currency": "AUD",
"balance": 99522682115,
"amount": -2927396,
"recordType": "Trade",
"referenceId": 699951,
"action": "Trading Fee"
}
]
}
Introduction updated 9/28/18
WebSocket v1 deprecated
Market Data API updated 7/24/19
Trading API updated 08/19/19
Account API updated 3/14/19
Fund Transfer API updated 08/06/19