To get a messages from every market - just subscribe on path: history/transactions
{
"action": "subscribe-private",
"module": "trading",
"path": "history/transactions/{market_code}",
"hashSignature": "8892f16e0713c5f3e3d7e9fa26c5a5f2817b09fc48fece72ed5712ae33547c92e91e735b1818397136beea760efae61d1449a93e48ee2f80789dfa24830ef720",
"publicKey": "12345f6f-1b1d-1234-a973-a10b1bdba1a1",
"requestTimestamp": 1529897422
}
{
"action": "push",
"topic": "trading/transactions/btc-pln",
"message": {
"transactions": [
{
"id": "e44cfa89-27e7-11ea-8d5d-0242ac110008",
"t": "1577368750940",
"a": "0.89380625",
"r": "27938.57",
"ty": "Sell"
}
]
},
"timestamp": "1577368750940",
"seqNo": 1218343
}
{
"requestId": "78539fe0-e9b0-4e4e-8c86-70b36aa93d4f",
"action": "proxy",
"module": "trading",
"path": "history/transactions",
"queryString": "query={\"balancesId\":null,\"markets\":[\"BTC-PLN\"],\"rateFrom\":230}",
"hashSignature": "8892f16e0713c5f3e3d7e9fa26c5a5f2817b09fc48fece72ed5712ae33547c92e91e735b1818397136beea760efae61d1449a93e48ee2f80789dfa24830ef720",
"publicKey": "12345f6f-1b1d-1234-a973-a10b1bdba1a1",
"requestTimestamp": 1529897422
}
{
"action": "proxy-response",
"requestId": "56ff5085-5854-cc2d-de67-4fa4ef4bb394",
"statusCode": 200,
"body": {
"status": "Ok",
"totalRows": "98115",
"items": [
{
"id": "2cbc4c90-1fde-11ea-8d5d-0242ac110008",
"market": "BTC-PLN",
"time": "1576484968197",
"amount": "0.00730694",
"rate": "27126.37",
"initializedBy": "Sell",
"wasTaker": true,
"userAction": "Sell",
"offerId": "2cbc4c8f-1fde-11ea-8d5d-0242ac110008",
"commissionValue": "0"
}
],
"query": {
"markets": [
[
"BTC-PLN"
]
],
"limit": [
"50"
],
"offset": [
"0"
],
"fromTime": [],
"toTime": [],
"userId": [],
"offerId": [],
"initializedBy": [],
"rateFrom": [],
"rateTo": [],
"userAction": [
"Sell"
],
"nextPageCursor": [
"start"
]
},
"nextPageCursor": "QW9OeDZxYkJxZVlDUHdVMU9XVmhOV00xWXkwd1pHTTBMVFExTVRZdE9HWmpOeTA1TW1FNFpEVm1NVFl3WVdZL0kxc2lRbFJETFZCTVRpSXNJakUxTXpnNU9URXhOREkxTmpFaUxDSTFPV1ZoTldNMVl5MHdaR00wTFRRMU1UWXRPR1pqTnkwNU1tRTRaRFZtTVRZd1lXWWlYUT09"
}
}
Snapshot Query Params
markets
array of strings
Array of markets.
rateFrom
float
Minimal price value.
rateTo
float
Maximal price value.
fromTime
date-time
Unix timestamp from which the operations start.
toTime
date-time
Unix timestamp for which they end.
userAction
string
User role on finished transaction: buy / sell.
nextPageCursor
string
Pointer for starting page. Value of initial pointer is: start
Snapshot response details are the same as for [GET trading/history/transactions]
Response details
Key | Type | Description |
---|---|---|
id | UUID | Transaction UUID. |
market | string | Market symbol for transaction. |
time | UNIX timestamp | Time of performed transaction. |
amount | decimal | Amount of cryptocurrency. |
rate | decimal | Transaction price. |
initializedBy | string | Which side initiated the transaction: buy / sell. |
wasTaker | boolean | Do user is taker. |
userAction | string | User role in transaction: buy / sell. |