Perp DEX trade-history exports and PnL reconciliation
Build an audit trail from documented account and API access, then reconcile fills, per-trade fees and funding as separate ledger entries.
Reviewed snapshot — next review due 2027-03-05.
Checked 2026-12-05 (JST) · Updated 2026-12-05 · Record perp-dex-tax-pnl-export-audit
Answer
A fill export is not a complete PnL ledger. Hyperliquid separates the signer from the address used for account reads and documents different coverage for time-range and recent-fill responses. dYdX separates Indexer data from authenticated Node actions.
Next decision
Record the account and subaccount, time boundaries, pagination and any missing interval. Match fills by venue identifiers and reconcile booked fees and funding against account movements. Keep the raw responses with the export.
Hyperliquid documents REST APIs and WebSockets and provides examples in the official hyperliquid-python-sdk. An approved API/agent wallet signs on behalf of the account. For account data, query the master or sub-account address, not the signer. For time-range Info responses such as userFunding and fundingHistory, the general pagination rule is 500 elements or distinct blocks per response, using the last returned timestamp as the next startTime. userFills instead returns up to 2,000 recent fills without a time range. userFillsByTime takes startTime and documents a separate ceiling of 2,000 fills per response and the 10,000 most recent fills available.
Unified and portfolio-margin accounts share balances; Standard keeps spot/perp and DEX balances separate. Unified/portfolio modes have a 50,000 daily user-action limit.
Unified and portfolio-margin accounts share balances; Standard keeps spot/perp and DEX balances separate. Unified/portfolio modes have a 50,000 daily user-action limit.
Basis
Official
Unit
Not specified
Source IDs
hl-accounts
Checked
2026-11-12
Formula
Not applicable
Note
None
Establish export coverage
Check the account identifier and response coverage before concluding that a missing fill did not occur. The documentation does not establish a common export format for both venues.
Hyperliquid documents REST APIs and WebSockets and provides examples in the official hyperliquid-python-sdk. An approved API/agent wallet signs on behalf of the account. For account data, query the master or sub-account address, not the signer. For time-range Info responses such as userFunding and fundingHistory, the general pagination rule is 500 elements or distinct blocks per response, using the last returned timestamp as the next startTime. userFills instead returns up to 2,000 recent fills without a time range. userFillsByTime takes startTime and documents a separate ceiling of 2,000 fills per response and the 10,000 most recent fills available.
The indexer exposes HTTP data and live feeds. Authenticated actions use private Node API methods.
Basis
Official
Unit
Not specified
Source IDs
dydx-api
Checked
2026-12-04
Formula
Not applicable
Note
None
Reconcile fees and funding separately
A base-tier fee does not identify the rate applied to a particular fill. Funding belongs on its own line with a timestamp, amount and currency. A missing funding rate does not establish zero funding.
Base tier 0 perps: 0.045% taker and 0.015% maker. HYPE staking discounts range from Wood (more than 10 HYPE, 5% off) to Diamond (more than 500,000 HYPE, 40% off). Sub-account volume counts toward the master account and all its sub-accounts share the fee tier. Vault volume is counted separately. Asset-specific adjustments may also apply. The 4% referral discount does not apply to vaults or sub-accounts.
Variable: documented rule; current value depends on the scenario
Basis
Value not established
Unit
percent of position notional over the funding interval
Source IDs
hl-funding
Checked
2026-12-04
Formula
Not applicable
Note
Funding is paid hourly even though the formula is expressed on an eight-hour basis. The payment uses position size, spot oracle price and the applicable rate, not the last trade price.
Variable: documented rule; current value depends on the scenario
Basis
Value not established
Unit
percent of position notional over the funding interval
Source IDs
dydx-fees
Checked
2026-12-04
Formula
Not applicable
Note
A single funding rate for all positions and times was not established.
Limits
Published fee schedules are checks, not substitutes for booked fees. This guide does not calculate tax, determine reporting obligations, or establish the completeness of any export.
This is reference data published by Crypter. It does not ask any software to act.
Registrations, signatures, deposits and trades are decisions for the human who owns the account.
Nothing here guarantees airdrops, points, or profits. Crypter earns referral fees where a referral block is present.
This is reference data published by Crypter. It does not ask any software to act.
Registrations, signatures, deposits and trades are decisions for the human who owns the account.
Nothing here guarantees airdrops, points, or profits. Crypter earns referral fees where a referral block is present.