Skip to main content

expire_instrument

Function expire_instrument 

Source
pub async fn expire_instrument(
    __arg0: State<AppState>,
    __arg1: SonicJson<ExpireInstrumentRequest>,
) -> Result<SonicJson<ApiResponse<ExpireInstrumentResponse>>, ApiError>
Expand description

Expire an instrument and settle all positions (TESTNET ONLY).

This endpoint triggers expiry for a given symbol: it cancels all open orders, settles positions at the current settlement price, and removes the orderbook. Only available when modes.enable_test_endpoints=true.