Skip to main content

Overview

The Crypto Tradebook API provides a comprehensive record of all cryptocurrency transactions executed by a user. This includes buy/sell transactions, crypto-to-crypto swaps, transfers, staking rewards, mining rewards, and other income events. This data is critical for Quicko to:
  • Calculate capital gains and losses on cryptocurrency transactions
  • Track cost basis for tax compliance
  • Report cryptocurrency income (mining, staking, airdrops, etc.)
  • Prepare accurate crypto tax reports
  • Ensure compliance with tax regulations on virtual digital assets
ImportantAll the transactions should be passed in the request since inception of the account to ensure accurate tax calculations and compliance.

Response Format

Your API should return cryptocurrency transaction data with the following structure:
ParamTypeRequiredDescription
idNumberOptionalTransaction ID of the particular trade
dateNumberYesTrade Timestamp in epoch milliseconds
transaction_typeStringYesIndicates whether the order is :buy, sell, trade, send, receive
labelStringOptionalIndicates the category of transaction type.Possible values :- interest, staking, staking_reward, lost, mining_reward, airdrop, donation, fork, gift, payment, other_income
received_currencyStringYesSymbol of the cryptocurrency received(If transaction_type = send/sellpass null)
received_quantityNumberYesQuantity received by executing the transaction.(Required when received_currency ≠ null)
priceNumberYesPrice at which unit is traded.(If transaction_type = send/receivepass null)
price_currencyNumberYesCurrency in which price is considered.Possible values: INR, USD, BTC etc.(Required when price ≠ null)
price_in_inrNumberYesPer unit value of the crypto in INR(Required when price_currency ≠INR or = null)
sent_currencyStringYesSymbol/Name of the crypto sent(If transaction_type =recieve/buy pass null).
sent_quantityNumberYesQuantity sent by executing the transaction(Required if sent_currency ≠ null).
fee_currencyStringNoCurrency in which transaction fees or any other expense was made while executing the transaction
fee_amountNumberNoAmount/quantity spent as fees or other expenses while executing transactions
fee_in_inrNumberNoINR value of the fee paid for the transaction.(Required if fee_currency ≠ INR)
NoteWhenever a field is blank pass null
ImportantAll the Transactions should be passed in the request since inception of the account.

Definition of Transaction Type

Transaction TypeDefinition
buyOTC buy transaction on an exchange
sellOTC sell transaction on an exchange
tradeCrypto to Crypto transaction on the Exchange
sendCrypto sent out of the wallet
receiveCrypto received in the wallet

Label

LabelDefinition
airdropAn unsolicited distribution of a cryptocurrency token or coin, usually for free
interestCryptocurrency received in the form of Interest on the coins kept as a deposit
stakingLock crypto assets for a set period of time to help support the operation of a blockchain
staking_rewardThe reward received for locked crypto assets for a set period of time
forkCrypto received due to hard fork
giftCrypto received as a gift in the wallet
lostIrrecoverable cryptocurrency from wallets
mining_rewardThe crypto reward received on mining the coin
donationDefines a transaction that was donated to a charity
paymentA transaction that was received as a payment for a good or service
other incomeDefines any other type of reward received