MCPcopy Create free account
hub / github.com/binance/binance-connector-python / send_request

Function send_request

common/src/binance_common/utils.py:341–541  ·  view source on GitHub ↗

Sends an HTTP request with the specified configuration, method, path, and optional payload and time unit. The `send_request` function is responsible for sending an HTTP request with the provided parameters. It handles retries, error handling, and response processing. The function takes

(
    session: requests.Session,
    configuration: ConfigurationRestAPI,
    method: str,
    path: str,
    payload: Optional[dict] = None,
    body: Optional[dict] = None,
    time_unit: Optional[str] = None,
    response_model: Optional[Type[T]] = None,
    is_signed: bool = False,
    signer: Optional[Signers] = None,
    web3_headers: Optional[dict] = None,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 15

BadRequestErrorClass · 0.90
UnauthorizedErrorClass · 0.90
ForbiddenErrorClass · 0.90
NotFoundErrorClass · 0.90
RateLimitBanErrorClass · 0.90
ServerErrorClass · 0.90
ClientErrorClass · 0.90
NetworkErrorClass · 0.90
parse_proxiesFunction · 0.85
CustomHTTPSAdapterClass · 0.85
clean_none_valueFunction · 0.85