Paper trading
Set the simulation
Send any subset of the fields, or {"preset":"realistic"} for a ready-made configuration (a preset starts from the defaults, so it is a clean slate plus that venue), or {"reset":true}. Out-of-range values are REFUSED (400 bad_sim_field), never clamped, so a strategy is never measured under a setting you did not choose. Applies to positions opened from now on - a position keeps the maintenance margin, the fee rate and the exit crossing cost it was filled under, for life.
post/api/bot/v1/sim
Request
- Base URL: https://marginpad.io
- URL: https://marginpad.io/api/bot/v1/sim
- Auth: API key in header X-API-Key
Request body
Response
{ ok, profile, changed, preset_applied, effective }
Changes
No recorded changes to this operation across all 1 revision of this API.