Skip to main content

set_spot_price

Function set_spot_price 

Source
pub async fn set_spot_price(
    __arg0: State<AppState>,
    __arg1: SonicJson<SetSpotPriceRequest>,
) -> Result<SonicJson<ApiResponse<SetSpotPriceResponse>>, ApiError>
Expand description

Set spot price for an underlying asset (TESTNET ONLY).

This endpoint is only available when modes.enable_test_endpoints=true. It allows tests to set spot prices for margin calculations.