Skip to main content

get_papi_base_url

Function get_papi_base_url 

Source
pub fn get_papi_base_url(
    environment: BinanceEnvironment,
) -> Option<&'static str>
Expand description

Returns the Portfolio Margin (PAPI) base URL for the given environment, or None where PAPI is unavailable.

Binance documents only a production PAPI host; no testnet or demo environment exists. Callers must treat None as unavailable rather than redirecting to a standard Futures testnet, which does not serve /papi/v1.

References: