In this page, we will introduce the reasons for accidental double counting caused by API integration and the corresponding countermeasures.
Causes:
1.Inputting different sub-account names with the same API key for integration.
4.Transactions that may appear as double-counted but are, in fact, distinct and separate transactions.
1.Inputting different sub-account names with the same API key for integration.
If you are using an exchange that allows the creation of sub-accounts, when connecting via API in the cryptact, there is a field where you can input the sub-account name. If you do not have a sub-account with the exchange, you should generally leave the sub-account name field blank. Please note that if the exchange does not support sub-account creation, this field will not be displayed.
If you have multiple sub-accounts, it is important to input the respective sub-account name separately when loading them as different transactions. However, be cautious not to input different sub-account names using the same API key, as cryptact will recognize them as separate API keys, leading to duplicate recording of transactions.
Countermeasures:
STEP 1:On the Transactions page, click the transaction that appears to be duplicated, and check the sub-account name on the transaction details screen. If the sub-account name field is blank, it will be displayed as 'N/A'. If something was entered, the entered value will be shown.
STEP 2:Delete API connection for one of the sub-account name.
■How to delete API connection
STEP 3:Delete the history of the sub-accounts deleted in STEP2.
Delete all history after the earliest date that is double-counted from the transaction page. Please see the following help page for instructions on how to delete history uploaded by API for each sub-account name.
■How to delete trade history
▼In the future, if you conduct new transactions, clicking on "Sync" with the existing API key for API integration will ensure that no duplicate entries occur, and it will retrieve the latest history for you.
※Since bybit, for example, has a limit on the past history that can be retrieved by the API, it is necessary to upload a custom file or the like for the history that could not be retrieved.
cryptact's Support Status for Bybit.
2.Changes in the exchange's specifications resulting in a modification of the API's endpoint (connection destination).
If an exchange changes the API specifications, cryptact's system will consider it a different API key and double-counting will occur.
Countermeasures:
As soon as we confirm the change in specifications on the exchange side, we will send an e-mail to the relevant customers with information about the elimination of double-counting.
3.When switching from exchange files to API, the transaction timestamps retrieved via the API include milliseconds.
When a transaction type can be obtained through both exchange files and API integration, uploading in the order of exchange file → API will not normally result in duplicate records, because the system is designed to retrieve only the transaction history from the API that occurs after the latest transaction timestamp already uploaded via the exchange file.
Countermeasures:
Uploading Transaction History: Switching Between Exchange Files and API – Key Points
4.Transactions that may appear as double-counted but are, in fact, distinct and separate transactions.
As shown in the image below, when the details of the date, time, and volume of transactions are the same, it appears that double-counting has occurred.
Countermeasures:
STEP1:Click on the relevant transaction and confirm the "Transaction ID".
STEP2:Upon checking, you found that if the transaction IDs are different, the history is delivered by the exchanges as different transactions, and therefore, cryptact reflects them as different transactions as they are. If you are seeing different transaction IDs for transactions that you did not actually execute, and the transactions appear to be double-counted, please check with your exchange to confirm this.