Saltar al contenido
Todas las fuentes

Gate.io en TaxChain

Beta

TaxChain lee Gate.io y está probado con sus respuestas documentadas y grabadas, pero aún no se ha conciliado con datos reales. Compara las cifras con el extracto de Gate.io antes de presentar la declaración.

Esta página está en inglés para decir exactamente lo que dicen la documentación de la plataforma y el código de TaxChain. Los títulos y el resto del sitio están en tu idioma.

Gate (formerly Gate.io) is a global exchange with spot, margin, futures, options, Earn and converts. TaxChain reads one Gate file: the spot trade history, as CSV. An API connection through CCXT is built but not offered, because its paging does not yet fit Gate's 7- and 30-day query limits.

Formas de importar

  • Subida de archivoBeta

    Gate spot trade history, as CSV

    The spot trade history, one row per fill, in either of two layouts: No., Time, Pair, Type, Order Price, Order Amount, Price, Amount, Total, Fee, status; or No., Time, Market, Side, Price, Amount, Total, Fee.

    Optional columns are used when present: Fee Currency (or Fee Coin, Fee Unit), Trade ID and Order ID. A currency written in the fee cell (0.912 ADA, as a user's real file shows it [1]) is read too. A time zone in the Time header, such as Time(UTC+8), is applied.

    Gate documents neither the fee currency nor the time zone of this file [2]. Where a row names neither, TaxChain assumes the fee was paid in the asset received and the time is UTC, and the import lists the rows that rest on each assumption as a warning, so it shows as partial rather than complete.

    These layouts come from sample files, not a real Gate export: none has been checked against the adapter yet. If your headers differ, TaxChain will not recognise the file.

    Third-party guides say Gate may export this file as Excel [3]. TaxChain accepts only .csv uploads, so save it as CSV first.

    Gate also exports deposits and withdrawals as separate files, and an account statement (the purse log) with every balance change, fees, rewards and lending included [4] [5]. TaxChain reads none of these. The account statement would be the most complete single file to add.

  • Conexión por APIAún no disponible

    CCXT `gate` [6]

    A Gate API v4 key and secret (no passphrase) with read-only access to spot, wallet and account data, and no trading or withdrawal permission [7].

    Not offered in production. Like every CCXT venue, it can be connected only on a sandbox stack, to prove the sync reads a seeded history in full before it is listed.

    • Gate limits every history query. Spot fills: the last 7 days when no range is given, and only 7 days from a start given alone; at most 30 days from start to end [8]. Deposits and withdrawals: at most 30 days per query [9]. Account book: at most 30 days per query [8].
    • TaxChain's paging starts a full sync on 1 January 2017 and stops at the first empty answer. For spot fills it sends a start with no end, so Gate answers the first week of 2017; for deposits and withdrawals CCXT asks for 30 days from the start [6]. An account with no activity then would import no trades, deposits or withdrawals, and the sync would report success. This must be fixed before the API is offered.
    • Income would be read from the spot account book, but CCXT sends its start time in milliseconds where Gate documents seconds [7], and no end, so the 30-day limit is never met. Lending interest and rebates are not read today.
    • The sync asks for the spot account's fills only. Futures, delivery and options fills, funding and settlements are never requested.
  • Dirección de walletNo disponible

    None

    An exchange account has no public address of its own to read. Your own wallets that send to or receive from Gate can be added as chain sources.

Qué se lee

OperaciónEstado
Spot tradesFrom the trade history CSV: each fill as a buy or sell with both sides, the total as the quote amount.Se lee
Trading feesIn the currency the file names, in its own column or in the fee cell. Without one, the fee is put in the asset received (the base on a buy, the quote on a sell), which is wrong for fees paid in GT or POINT; the import lists those rows in a warning. A negative fee (maker rebate) is left out with a warning.Se lee
Deposits and withdrawalsGate exports them as separate files that TaxChain does not read. Without your deposits, sales of deposited coins have no cost basis and stop at Needs review.No se lee
Margin trades and borrowing interestIf the trade history lists margin fills, as one third-party guide says it does [3], they are read as spot buys and sells. Loans and interest are not read.Se lee en parte
Perpetuals and delivery futures: realised P&L and fundingNeither the CSV nor the API sync reads Gate's futures accounts.No se lee
OptionsNo se lee
Converts (flash swaps)Gate's spot fills do not list them, CCXT has no convert history for Gate, and the account book entries for them are typed as trades and skipped [6].No se lee
Earn, lending interest and stakingMapped as income when read from the spot account book, but that request does not meet Gate's documented limits, so treat it as not read. Moves into and out of lending are not imported.No se lee
Referral and other rebatesMapped as income received for nothing, from the same account book request, so not read either.No se lee
Airdrops, Launchpool, HODLer and StartupBooked in the account book under types CCXT does not name [7]; a type the sync cannot place is logged and not imported.No se lee
Card, bank and P2P purchasesNo se lee
NFTsGate's NFT marketplace activity is booked in the account statement, which TaxChain does not read.No se lee

Limitaciones

  • Only spot trades are read. Add deposits, withdrawals, converts, Earn income, rewards and futures results another way, for example with the TaxChain CSV template.
  • Each self-service export covers at most 180 days, according to third-party guides; the full history can be asked of Gate support [5]. Upload each period once.
  • Card and bank purchases are not in the trade history [3]: coins bought that way have no cost basis until you add the purchase.
  • A time with no zone, in the Time header or the cell, is read as UTC, and the import warns which rows it applied to: Gate does not say which zone the file uses [2]. If your export shows local times without naming the zone, every trade is shifted; set the account's display zone to UTC before exporting, or check the header.
  • A fee whose currency the file does not name is recorded in the asset received, and the import warns which rows. If you pay fees in GT or POINT and your file does not name the currency, those fees are in the wrong asset; correct them by hand. A third-party guide says POINT fees show up in Gate's file as USDT fees [3]: TaxChain then records USDT spent, not POINT.
  • Without a Trade ID column, two identical fills in the same second are kept apart by their order in the file, so do not upload overlapping files.
  • A row whose side is not Buy or Sell, or whose amount is zero (an order that filled nothing), is reported as an error and not imported.

Cómo se ha comprobado

  • 20 de noviembre de 2026The CSV adapter tested on sample rows in both layouts: both sides of buys and sells, fee asset by side, GT and POINT fees named in a column or in the cell, maker rebates, display time zones, repeated fills, and rows it must refuse.
  • 21 de noviembre de 2026Gate's help page, third-party guides and forum threads searched for the trade history file's fee currency and time zone: neither is documented. A user's real file names the fee currency in the cell (0.912 ADA), which the adapter reads. Fixed: a fee with no currency and a time with no zone were assumed silently; the rows that rest on either assumption are now listed in one warning each, checked on sample rows and with each warning removed to confirm its test fails.
  • 20 de noviembre de 2026CCXT's recorded Gate responses (two spot fills and a perpetual fill) through TaxChain's normalizers: spot fills as buys and sells with both sides and the fee in its own currency; the perpetual fill refused as a spot trade.
  • 20 de noviembre de 2026Gate's documented my_trades, deposit, withdrawal, GateCode and account book samples through CCXT's own gate parser and TaxChain's normalizers. Found: a fill charged in more than one currency stops the sync; seven documented deposit and withdrawal statuses (BLOCKED, REVIEW, TRACK, CANCELPEND, FVERIFY, LOCKED, REJECT) are counted as settled; flash swaps are lost. Kept as expected failures.
  • 20 de noviembre de 2026A full sync run through CCXT's real gate class against a stand-in that answers as Gate documents its windows: a 2024–2025 history imports nothing, without an error; a sync starting inside the last week reads it in full. Kept as expected failures.
  • 20 de noviembre de 2026Keyless requests to Gate's, Gate EU's and Gate's testnet public spot endpoints (BTC_USDT, BTC_EUR): all answered, so the testnet does serve spot markets.

Qué lo haría Verificado

CSV: one real Gate trade history export, with the account's deposits and withdrawals, reconciled through the engine against Gate's own balances. The owner or a consenting beta user has to supply it.

API: walk Gate's history in windows of at most 30 days with an end, page within each window, send the account book's times in seconds, and count only movements Gate marks DONE (or DEP_CREDITED). Then run a sandbox sync on Gate's testnet over a seeded history and check every fill, deposit and withdrawal arrives.

Then a real account, read in full and reconciled through the engine against Gate's own balances.

Cómo añadirlo

  • On gate.com, open Order > Spot Orders > Trade History [2].
  • Choose all pairs and a period, then download. Gate allows 30 downloads a day.
  • If the file is Excel, open it and save it as CSV. Repeat for each period until your whole history is covered.
  • In TaxChain, open Wallets, choose Add source, pick Gate.io and upload the files.

Referencias

  1. [1]Gate.io CSV import does not contain trade fees. Koinly community forum. A user's trade history file: the Fee column holds the amount and its currency in one cell, such as 0.912 ADA.
  2. [2]How to view and export spot trade history. Gate Help Center. Order > Spot Orders > Trade History, choose a pair and a period, then download; 30 downloads a day. Says the file holds pair, order type, price, amount, fees and execution time; names neither the fee currency nor the time zone.
  3. [3]Gate file import guide. CoinLedger. Third-party guide: separate Trade History, Deposits and Withdrawals files; card and bank purchases are not in the trade history; margin trades appear as spot trades; Earn is not exported; fees paid with POINT show up as USDT fees.
  4. [4]CSV importing errors Gate.io. Koinly community forum. Shows the account statement (purse log) layout: no, account type, time, action type, currency, order id, change amount, amount, additional info; action types such as Order Filled, Trading Fees, Deposits and Lending transfers.
  5. [5]Gate.io. Waltio. Third-party guide: self-service files cover at most 180 days each; the full account history ("My Purselog") can be requested from Gate support.
  6. [6]CCXT 4.5.93, gate exchange class. CCXT. fetchMyTrades reads /spot/my_trades for the spot account unless told otherwise; fetchDeposits and fetchWithdrawals send to = from + 30 days; fetchLedger reads /spot/account_book and passes since unconverted (milliseconds); flash swaps are typed trade; no fetchConvertTradeHistory.
  7. [7]Gate API v4 documentation. Gate. Times are Unix seconds unless a field says otherwise; limit defaults to 100, at most 1000. Lists the account book's change types and codes, and the testnet host api-testnet.gateapi.io.
  8. [8]SpotApi: list_my_trades (GET /spot/my_trades) and list_spot_account_book (GET /spot/account_book). Gate (official Python SDK documentation). my_trades: the last 7 days without a time range; only 7 days from a start given alone; at most 30 days from start to end. account_book: at most 30 days per query.
  9. [9]WalletApi: list_deposits and list_withdrawals; DepositRecord and WithdrawalRecord. Gate (official Python SDK documentation). Start defaults to 7 days ago; at most 30 days per query; paged by offset. Deposit statuses include BLOCKED, DEP_CREDITED, REVIEW and TRACK; withdrawal statuses include CANCELPEND, FVERIFY, LOCKED, REJECT and REVIEW (DepositRecord.md, WithdrawalRecord.md).

Última comprobación con la documentación de la plataforma y el código de TaxChain el 20 de noviembre de 2026.