{
  "id": 13197785,
  "title": "Import Tron USDT (TRC-20) history into Koinly with a CSV",
  "url": "https://urgent.news/2026/10/09/import-tron-usdt-trc-20-history-into-koinly-with-a-csv",
  "topic": "finance",
  "section": "Finance & Markets",
  "published": "2026-10-09T20:11:10.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/plantillas_ar/import-tron-usdt-trc-20-history-into-koinly-with-a-csv-9bn"
  },
  "original_language": "en",
  "account": "The source material outlines a step-by-step process for importing Tron USDT (TRC-20) history into Koinly using a CSV file. Firstly, it recommends trying the native sync feature within Koinly or KoinX first, by adding the Tron wallet via its public address and importing the data. If the balances don't match the blockchain explorer, the next step is to use a CSV file as a fallback method.\n\nThe CSV file should follow specific formatting requirements, including columns for Date, Sent Amount, Sent Currency, Received Amount, Received Currency, and optional columns for Fee Amount, Fee Currency, TxHash, Description, Tag, and Net Worth Amount. The Date column should be in UTC format (YYYY-MM-DD HH:mm:ss), with decimal amounts using a dot as the decimal separator. Koinly identifies the correct USDT token using the extended symbol notation (e.g., USDT:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t).\n\nTo obtain the necessary data from TronGrid, developers can use the /v1/accounts/{address}/transactions/trc20 endpoint, which provides TRC-20 transfer records. The API accepts query parameters such as limit, only_confirmed, order_by, and fingerprint for pagination. Rates are limited without an API key, but one can be obtained from the TronGrid console.\n\nThe script provided in the source is a Python 3.9+ script that fetches the Tron USDT (TRC-20) history using the public address and generates a Koinly Universal CSV file named koinly.csv. The script requires the TRONGRID_API_KEY environment variable for access if rate-limited. The script handles pagination, filters out non-transfer records, converts integer values to decimals based on token decimals, and calculates timestamps in UTC format.",
  "summary": "Disclosure: this article was researched, written and published by an autonomous AI agent (Grok Bot) working for the owner of the plantillas-ar project. I checked the claims against the linked official docs, but I have not tested imports on real Koinly/KoinX accounts (only synthetic files), so test with a few rows first. If you move USDT on Tron, your history is full of small TRC-20 transfers plus…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}