simulate_manipulation
GET
http://api.fibonacci.fi/simulate_manipulation/{chain}/{poolid}/{slippage_target}/{a_to_b}
This endpoint returns how much you need to sell / buy to move the price of the pool by given percentage, precised by the user. This endpoint only makes sense for stable pools (pools where token A and token B are stables)
Path Parameters
Name | Type | Description |
---|---|---|
chain* | String | indicates the blockchain network to use ("ETH", "SOL") |
poolid* | String | indicates the pool id to use for the backtesting (e.g. "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640", corresponds to ethusdc) |
slippage_target* | Integer | Indicates the target impact to achieve, in %. (17 means 17%) |
a_to_b* | String | Indicates if the amount to sell refers to tokenA or tokenB. Can be "true" or "false" |
Example
Request
Response
Last updated