{"uid":"cap_SziH1kiJDyxjHBBdcSUx3","slug":"evm-canon-base-lot-inventory-remaining-holdings-dec58758","name":"EVM Canon Base – Lot Inventory (Remaining Holdings)","description":"Remaining holdings after all trades, each lot with its acquisition time and unit cost","url":"https://evm-canon-base.onrender.com/lots/inventory","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["trades"],"properties":{"method":{"enum":["FIFO","LIFO","HIFO","ACB"],"type":"string","default":"FIFO"},"trades":{"type":"array","items":{"type":"object","required":["side","asset","amount","price","time"],"properties":{"fee":{"type":"string"},"side":{"enum":["buy","sell"],"type":"string"},"time":{"description":"unix seconds/millis or ISO-8601"},"asset":{"type":"string"},"price":{"type":"string","description":"unit price in the quote currency"},"amount":{"type":"string","description":"decimal string, never a float"}}}}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KIhoUBLkUkC8zBTEHMfY8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns all remaining unsold tax lots after applying all trades, each with its acquisition timestamp and unit cost basis.","exampleAgentPrompt":"Show me all my remaining open tax lots for my crypto trades — I need each lot's acquisition date and the unit cost I paid, so I can figure out my current unrealized cost basis.","exampleUseCases":[{"title":"Tax loss harvesting opportunity scan","prompt":"I want to see all my open crypto lots with their acquisition dates and unit costs so I can identify which positions are underwater and worth harvesting for a tax loss before year end."},{"title":"Unrealized gain calculation for portfolio review","prompt":"Can you pull up my remaining unsold token lots with when I bought them and what I paid per unit? I need this to estimate my total unrealized gains before I decide what to sell."},{"title":"Long-term holding eligibility check","prompt":"Show me my current open lots for all my EVM token positions — I need the acquisition timestamps so I can see which ones have been held long enough to qualify for long-term capital gains treatment."}],"resultDescription":"A list of all unsold tax lots remaining after processing all trades, where each lot includes: the asset identifier, the acquisition timestamp, the quantity remaining in that lot, and the unit cost at acquisition. This gives the full picture of open positions and their cost basis for unrealized gain/loss computation or future disposal matching.","failureModes":["Malformed or incomplete trade history input causes computation failure or incorrect lot residuals","Missing or ambiguous token decimals prevent accurate unit cost calculation","Overlapping or duplicate trade records inflate remaining lot quantities","Unsupported cost-basis method in request body returns an error or defaults unexpectedly","Service cold-start latency on Render free tier may cause timeout on first call"],"whenToPreferThis":"Use this endpoint when you need to see the current state of all unsold holdings with full cost-basis detail — i.e., remaining lots after matching. Prefer this over the net-position endpoint when you need per-lot granularity (acquisition time, unit cost) rather than just a net quantity balance. Choose this over HIFO or average-cost endpoints when you want the raw inventory state, not a specific disposal calculation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:47:28.486Z","isFirstParty":false}