{"uid":"cap_gmRwrah7aj9v-vzx37tpC","slug":"ozmium-pending-gains-orders-lookup-397466f4","name":"Ozmium Pending Gains Orders Lookup","description":"On-chain PENDING Gains orders for any Base address, read directly from the diamond (the keyless backend returns them empty, which is why a stranded market order looks like lost funds). Each: orderIndex, pairIndex, symbol, side, leverage, locked collateral (USDC), trigger price, and orderType (0=MARKET_OPEN). Full details: GET /v1.","url":"https://ozmium.org/v1/pending-orders/: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"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"ok":{"type":"boolean"}}},"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_ooPy-WZBGYibc1SNfjoQv","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":"Fetches all pending (unfilled) Gains Network orders for a given Base wallet address, read directly from the on-chain diamond contract","exampleAgentPrompt":"Can you check if I have any pending orders on Gains Network for my Base wallet 0xAbC123...? I placed a market open order and my USDC seems stuck — I want to see the orderIndex, pair, side, leverage, and trigger price.","exampleUseCases":null,"resultDescription":"Returns a list of pending Gains Network orders for the address, each containing: orderIndex, pairIndex, trading symbol, side (long/short), leverage amount, locked USDC collateral, trigger price, and orderType (0=MARKET_OPEN). Reads directly from the on-chain diamond contract, so stranded/unfilled market orders that appear missing in the keyless backend are surfaced here.","failureModes":["Invalid or malformed Base address returns an error or empty array","Address with no pending orders returns an empty list (not an error)","Network congestion may cause delayed on-chain reads","Non-Base (wrong chain) addresses will return no results","Rate limiting or payment failure (x402) if USDC micropayment not provided"],"whenToPreferThis":"Use this endpoint when an agent needs to debug or verify pending Gains Network (gTrade) orders on Base mainnet — especially when a market order appears to have vanished or funds look stuck. This reads directly from the on-chain diamond contract, unlike the keyless backend which returns empty for pending market orders. Prefer over generic blockchain explorers when structured, decoded order fields are needed for further automation (e.g. closing a stranded order).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:51:43.021Z","isFirstParty":false}