Price impact bracket for a trade size
estimate_trade_depthEstimate the price impact of a buy or sell size by checking which depth bracket it falls into, returning ≤2%, 5%, 10% movement or exceeding measured depth.
Instructions
For traders and market makers: places a buy or sell size (in the quote asset, USDC) between the measured rungs of Keel's depth ladder, answering 'this moves the price by at most 2% / 5% / 10%' or 'this exceeds the measured depth'. It is a bracket, never a point estimate, because the methodology defines no interpolation between rungs. Depth combines the SDEX order book and AMM pools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | buy pushes the price up, sell pushes it down. | |
| quote | No | Optional quote asset id. Omit it: every monitored asset is measured against USDC, and every notional in the answer is in that quote asset. | |
| amount | Yes | A plain decimal amount in the quote asset (USDC unless quote is given), for example "500000" or "1250.5". A string, not a number, so no precision is lost. | |
| assetId | Yes | Keel asset id: CODE:ISSUER for an issued asset (for example USTRY:GCRYUGD5NVARGXT56XEZI5CIFCQETYHAPQQTHO2O3IQZTHDH4LATMYWC), or XLM. An asset is the (code, issuer) pair, never the ticker alone: use find_asset first when only a code is known. |