{"uid":"cap_Ra0uGYJjcMjphGD72JWgv","slug":"ozmium-gains-network-closed-trade-history-fe0227e2","name":"Ozmium Gains Network Closed Trade History","description":"Closed leverage round-trips for any Base address from the Gains first-party history: pair (base + quote legs), side, leverage, collateral, open/close price, realized PnL + PnL%, close reason (take-profit / stop-loss / liquidation / manual), open/close tx hashes, and timestamps. GET /v1/history/{address}. Newest first, USDC-collateralized trades.","url":"https://ozmium.org/v1/history/:address","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"address":{"type":"string"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"closed":{"type":"array","items":{"type":"object","properties":{"pair":{"type":"string"},"pnlUsd":{"type":"number"},"reason":{"type":"string"}}}},"address":{"type":"string"}}},"network":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RxvY07pwxk6tZtdNt07uN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves closed leveraged perpetual trade history for a Base address from Gains Network, including PnL, leverage, collateral, prices, and close reason.","exampleAgentPrompt":"Pull my full closed leveraged trade history on Gains Network for my Base address 0xAbC123... — I want to see the pairs, leverage, realized PnL, and whether each was closed by take-profit, stop-loss, liquidation, or manually.","exampleUseCases":null,"resultDescription":"Returns a list of closed USDC-collateralized leveraged trades (newest first) for the given Base address, each including: trading pair (base + quote legs), side (long/short), leverage multiplier, collateral amount, open and close prices, realized PnL in USD, PnL percentage, close reason (take-profit / stop-loss / liquidation / manual), open and close transaction hashes, and open/close timestamps. Scoped to Base mainnet Gains Network trades only.","failureModes":["Invalid or malformed Base address returns a 400 or empty result","Address with no Gains Network trade history returns an empty closed array","Network/RPC errors querying Gains on-chain history return 5xx","Payment not completed (x402 flow not finalized) returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need closed leveraged perpetual trade history specifically from Gains Network on Base mainnet, with full trade metadata including PnL, leverage, and close reason. Prefer this over generic block explorers when you need structured, pre-computed PnL data without manual log parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:50:20.841Z","isFirstParty":false}