Skip to main content

Trigger Funding Tick (Devnet)

POST /v1/funding/tick

Devnet only. Force the funding scheduler to emit one tick for symbol immediately.

The route exists only when the gateway binary is built with --features dev-tools and started with DEV_TOOLS_ENABLED=true; otherwise it is not mounted and returns 404. No authentication.

Request

POST /v1/funding/tick
Content-Type: application/json

{ "symbol": "BTC-PERP", "mark_price": "76500.00" }

mark_price is optional; if omitted, the scheduler reads the oracle.

Response — 200 (forwarded from funding-scheduler POST /debug/trigger-tick)

{ "ok": true, "tick_id": "0196a1b2-c3d4-7e5f-a7b8-c9d0e1f2a3b4" }

Errors: 502 scheduler unreachable or the tick failed (plain-text body), 422 body fails to deserialize.