cURL
curl --request POST \ --url https://api.getnimbus.io/v2/farming/{id}/simulate \ --header 'Content-Type: application/json' \ --data '{ "type": "Pools", "data": { "priceChangeA": 10, "priceChangeB": 20, "weightA": 50, "weightB": 50, "value": 100 } }'
{ "data": { "data": [ { "date": "2023-11-07T05:31:56Z", "value": 123 } ], "il": 123, "ilAmount": 123 } }
Calculates potential returns for yield farming based on investment amount and price changes
The ID of the vault to simulate
The chain of the vault
Simulation results for different time periods
The response is of type object.
object