Všechna připojení API se vyskytují ve Správci dat. Přejděte tam a klikněte na Vytvořit API. V modálním okně vyberte konektor, který chcete připojit, a vyplňte požadovaná pole.
Connection method to your address
|
http method |
POST |
|
path |
<URL>/transactions/query |
|
accepting |
application/x-www-form-urlencoded |
|
producing |
application/json |
Endpoint should accept and verify these headers:
|
API-Key |
users api key |
|
API-Sign |
HMAC_SHA_512("USER_SECRET", "HTTP_METHOD URL<OPTIONAL_REQUEST_BODY>") |
Endpoint should accept these form parameters:
|
fromTransaction |
for paging |
from lastTransactionId |
|
limit |
limits number of results |
|
Response should look like this:
"transactions": [
{
"uid": "ID", // transaction ID
"timestamp": 1642595604, // unix timestamp
"base": "BTC", // base currency of pair
"quote": "USD", // (required only for transaction type - BUY, SELL)
"action": "BUY", // one of BUY, SELL, FEE, REBATE, DEPOSIT, WITHDRAWAL, STAKE, UNSTAKE, STAKING_REWARD, REWARD, AIRDROP, EARNING, FORK
"quantity": "1.6551351155", // base quantity (BTC here)
"volume": "10.1151315187", // required only for transaction type - BUY, SELL (in all other cases send "null") quote volume (USD here)
"fee": "1", // (optional) fee volume if any
"feeCurrency": "USD", // (optional) fee currency if any
"addressFrom": "1KZ4...", // (optional) address for DEPOSIT and WITHDRAWAL transactions
"addressTo": "bc1q...", // (optional) address for DEPOSIT and WITHDRAWAL transactions
"note": "bc1q...", // (optional) your note
"labels": "myFirstLabel:mySecondLabel", // (optional) multi-label for filtering (colon as separator)
"partner": "myPartner", // (optional)
"reference": "myReference", // (optional)
},
...