# 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.

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.

Record: perp-dex-tax-pnl-export-audit (guide)

Checked: 2026-12-05 JST

Updated: 2026-12-05

Review by: 2027-03-05

Stale: false

## 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.

## Documented evidence

| Venue | Item | Value | Unit | Basis | Checked | Evidence status | Source IDs |
| --- | --- | --- | --- | --- | --- | --- | --- |
| Hyperliquid | prerequisites.api | 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. | Not specified | Official | 2026-12-04 | Confirmed in reviewed sources | [hl-api-wallets](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/nonces-and-api-wallets), [hl-info](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint), [hl-info-perpetuals](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals), [hl-limits](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits), [hl-builder-codes](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/builder-codes) |
| Hyperliquid | prerequisites.account\_mode | 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. | Not specified | Official | 2026-11-12 | Confirmed in reviewed sources | [hl-accounts](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/account-abstraction-modes) |
| Hyperliquid | costs.trading\_fee | 0.045 | percent of notional per fill | Official | 2026-11-26 | Confirmed in reviewed sources | [hl-fees](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees), [hl-referrals](https://hyperliquid.gitbook.io/hyperliquid-docs/referrals) |
| Hyperliquid | costs.funding | Not established | percent of position notional over the funding interval | Value not established | 2026-12-04 | Variable: documented rule; current value depends on the scenario | [hl-funding](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/funding) |
| dYdX | prerequisites.api | The indexer exposes HTTP data and live feeds. Authenticated actions use private Node API methods. | Not specified | Official | 2026-12-04 | Confirmed in reviewed sources | [dydx-api](https://docs.dydx.xyz/) |
| dYdX | costs.trading\_fee | 0.05 | percent of notional per fill | Official | 2026-12-04 | Confirmed in reviewed sources | [dydx-fees](https://www.dydx.xyz/blog/dydx-community-votes-to-introduce-staking-based-fee-discounts) |
| dYdX | costs.funding | Not established | percent of position notional over the funding interval | Value not established | 2026-12-04 | Variable: documented rule; current value depends on the scenario | [dydx-fees](https://www.dydx.xyz/blog/dydx-community-votes-to-introduce-staking-based-fee-discounts) |

### Hyperliquid · prerequisites.api

[Hyperliquid](/en/venues/hyperliquid)

### Fact: hyperliquid#prerequisites.api

Value: 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.

Basis: Official

Unit: Not specified

Source IDs: hl-api-wallets, hl-info, hl-info-perpetuals, hl-limits, hl-builder-codes

Checked: 2026-12-04

Formula: Not applicable

Note: None

### Hyperliquid · prerequisites.account_mode

[Hyperliquid](/en/venues/hyperliquid)

### Fact: hyperliquid#prerequisites.account_mode

Value: 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

### Hyperliquid · costs.trading_fee

[Hyperliquid](/en/venues/hyperliquid)

### Fact: hyperliquid#costs.trading_fee

Value: 0.045

Basis: Official

Unit: percent of notional per fill

Source IDs: hl-fees, hl-referrals

Checked: 2026-11-26

Formula: Not applicable

Note: 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.

### Hyperliquid · costs.funding

[Hyperliquid](/en/venues/hyperliquid)

### Fact: hyperliquid#costs.funding

Value: Not established

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.

Review of the unresolved value: Variable: documented rule; current value depends on the scenario

### dYdX · prerequisites.api

[dYdX](/en/venues/dydx)

### Fact: dydx#prerequisites.api

Value: 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

### dYdX · costs.trading_fee

[dYdX](/en/venues/dydx)

### Fact: dydx#costs.trading_fee

Value: 0.05

Basis: Official

Unit: percent of notional per fill

Source IDs: dydx-fees

Checked: 2026-12-04

Formula: Not applicable

Note: Tier 1 taker rate is 0.05% and maker rate is 0.01% in the published fee table. This excludes funding and any staking discount.

### dYdX · costs.funding

[dYdX](/en/venues/dydx)

### Fact: dydx#costs.funding

Value: Not established

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.

Review of the unresolved value: Variable: documented rule; current value depends on the scenario



## 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\#prerequisites.api
- dydx\#prerequisites.api

## 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.

- hyperliquid\#costs.trading\_fee
- hyperliquid\#costs.funding
- dydx\#costs.trading\_fee
- dydx\#costs.funding

## 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.

## Related records

- [Hyperliquid](/en/venues/hyperliquid)
- [dYdX](/en/venues/dydx)

## Official sources and retrieval dates

- [Nonces and API wallets](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/nonces-and-api-wallets) — Hyperliquid, official_docs, retrieved 2026-11-26 JST, ID: hl-api-wallets
- [Info endpoint: User address](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint) — Hyperliquid, official_docs, retrieved 2026-11-26 JST, ID: hl-info
- [Info endpoint: Perpetuals](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals) — Hyperliquid, official_docs, retrieved 2026-11-26 JST, ID: hl-info-perpetuals
- [Rate limits and user limits](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits) — Hyperliquid, official_docs, retrieved 2026-11-26 JST, ID: hl-limits
- [Builder codes](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/builder-codes) — Hyperliquid, official_docs, retrieved 2026-12-04 JST, ID: hl-builder-codes
- [Developer Documentation](https://docs.dydx.xyz/) — dYdX, official_docs, retrieved 2026-12-04 JST, ID: dydx-api
- [Fees](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees) — Hyperliquid, official_docs, retrieved 2026-11-26 JST, ID: hl-fees
- [Referrals](https://hyperliquid.gitbook.io/hyperliquid-docs/referrals) — Hyperliquid, official_docs, retrieved 2026-11-26 JST, ID: hl-referrals
- [Funding](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/funding) — Hyperliquid, official_docs, retrieved 2026-12-04 JST, ID: hl-funding
- [Staking-based fee discounts](https://www.dydx.xyz/blog/dydx-community-votes-to-introduce-staking-based-fee-discounts) — dYdX, official_announcement, retrieved 2026-12-04 JST, ID: dydx-fees
- [Account abstraction modes](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/account-abstraction-modes) — Hyperliquid, official_docs, retrieved 2026-11-12 JST, ID: hl-accounts

## Cite this record

Crypter. "Perp DEX trade-history exports and PnL reconciliation". Checked 2026-12-05. https://crypter.jp/en/guides/perp-dex-tax-pnl-export-audit

