{"uid":"cap_rryloWZDZr6f-e6eIkcri","slug":"ozmium-gains-network-position-risk-modifier-15fffa44","name":"Ozmium Gains Network Position Risk Modifier","description":"Gains Network position management calldata by trade index, EXACT scaling (leverage x1e3, prices x1e10, USDC 6dp, slippage x1e3). POST /v1/tx/risk/modify { index, action, ... Full details: GET /v1.","url":"https://ozmium.org/v1/tx/risk/modify","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"index":{"type":"number"},"price":{"type":"number"},"action":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XuA0HqheiEH6T2pQ1Z3ui","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns Gains Network position-management calldata to modify risk parameters (stop-loss, take-profit, leverage) on an open trade by index, with exact on-chain scaling.","exampleAgentPrompt":"Modify the risk settings on my Gains Network trade at index 3 — set action to 'updateSl' with the new price at 1850.50 so I can update my stop-loss on Base mainnet.","exampleUseCases":[{"title":"Update take-profit on gTrade","prompt":"I have an open Gains Network position at index 5 that's gone in my favor — can you update the take-profit price to 2100.00 on Base mainnet so I can lock in more of my gains?"},{"title":"Adjust leverage on open perpetual","prompt":"My position at index 2 on Gains Network is a bit too risky right now — can you generate the calldata to reduce the leverage from 10x down to 5x on Base mainnet so I can submit the transaction?"},{"title":"Change slippage tolerance on trade","prompt":"For my open gTrade position at index 7, the slippage tolerance is too tight and my orders keep failing — please give me the calldata to update the slippage to 0.5% on Base mainnet so I can resubmit."}],"resultDescription":"Returns unsigned transaction calldata (properly scaled with leverage x1e3, prices x1e10, USDC 6dp, slippage x1e3) ready to be signed and submitted to the Gains Network contract on Base mainnet to modify a position's risk parameters.","failureModes":["Invalid trade index returns an error if the position does not exist","Incorrectly scaled price or leverage values cause contract-level revert","Unknown or unsupported action string returns a 400 validation error","Network unavailability causes a 5xx service error","Insufficient payment (x402) returns a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when an AI agent needs to modify risk parameters (stop-loss, take-profit, leverage) on an already-open Gains Network perpetual trade on Base mainnet, requiring exact on-chain calldata with proper scaling. Prefer this over generic DeFi endpoints when the target contract is specifically Gains Network (gTrade) and the operation is a risk/parameter update rather than opening or closing a position.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:45:32.044Z","isFirstParty":false}