
    6i                        d dl Z d dlmZ d dlmZmZmZmZmZ d dl	m
Z
mZ d dlZd dlZd dlZd dlZd dlmZ d dlmZmZmZ d dlmZmZmZmZ dd	lmZ dd
lmZ  G d de      Zy)    N)Path)AnyDictListOptionalUnion)	urlencodequote)HistoricalKlinesType)BinanceAPIExceptionBinanceRequestExceptionNotImplementedException)convert_list_to_json_arrayconvert_ts_strget_loopinterval_to_milliseconds   )
BaseClient)Clientc                   (    e Zd Zddddej                  dddddddddfdee   dee   deeeef      deded	e	d
e	deeeef      dee
eef      dee   dee   dee   de	f fdZeddddej                  dddddddddfdee   dee   deeeef      deded	e	d
e	deeeef      dee
eef      dee   dee   dee   de	fd       Zdej                   fdZd Zej$                  j(                  e_        	 dOdede	de	fdZdej,                  fdZdej0                  fdZ	 dPdefdZ	 dOdefdZ	 dPdefdZ	 dPdefd ZdOdefd!Z	 dPdefd"Z	 dPdefd#Z dOdefd$Z!dej0                  fd%Z"dej0                  fdefd&Z#dej0                  fdefd'Z$dej0                  fdefd(Z%defd)Z&ejL                  j(                  e&_        defd*Z'ejN                  j(                  e'_        dee   fd+Z(ejP                  j(                  e(_        defd,Z)ejR                  j(                  e)_        defd-Z*ejT                  j(                  e*_        	 dQd.ee   de+eeef      fd/Z,ejX                  j(                  e,_        defd0Z-ejZ                  j(                  e-_        defd1Z.ej\                  j(                  e._        defd2Z/ej^                  j(                  e/_        defd3Z0ej`                  j(                  e0_        defd4Z1ejb                  j(                  e1_        dRd5Z2ejd                  j(                  e2_        defd6Z3ejf                  j(                  e3_        defd7Z4ejh                  j(                  e4_        e5jl                  fd8e5defd9Z7ejn                  j(                  e7_        e5jl                  fd8e5fd:Z8ejp                  j(                  e8_        ddde5jl                  fd8e5fd;Z9ejr                  j(                  e9_        ddde5jl                  fd8e5fd<Z:ejt                  j(                  e:_        ddd=e5jl                  fd8e5fd>Z;ejv                  j(                  e;_        ddd=e5jl                  fd8e5fd?Z<ejx                  j(                  e<_        d@ Z=ejz                  j(                  e=_        dA Z>ej|                  j(                  e>_        dB Z?ej~                  j(                  e?_        dC Z@ej                  j(                  e@_        dD ZAej                  j(                  eA_        dE ZBej                  j(                  eB_        ej                  fdFZDej                  j(                  eD_        ej                  fdGZEej                  j(                  eE_        ej                  fdHZFej                  j(                  eF_        dI ZGej                  j(                  eG_        dJ ZHej                  j(                  eH_        dK ZIej                  j(                  eI_        dL ZJej                  j(                  eJ_        dM ZKej                  j(                  eK_        dN ZLej                  j(                  eL_        dO ZMej                  j(                  eM_        dP ZNej                  j(                  eN_        dQ ZOej                  j(                  eO_        dR ZPej                  j(                  eP_        dS ZQej                  j(                  eQ_        dT ZRej                  j(                  eR_        dQdUZSej                  j(                  eS_        dV ZTej                  j(                  eT_        dW ZUej                  j(                  eU_        dX ZVej                  j(                  eV_        dY ZWej                  j(                  eW_        dZ ZXej                  j(                  eX_        d[ ZYej                  j(                  eY_        d\ ZZej                  j(                  eZ_        d] Z[ej                  j(                  e[_        d^ Z\ej                  j(                  e\_        d_ Z]ej                  j(                  e]_        d` Z^ej                  j(                  e^_        da Z_ej                  j(                  e__        db Z`ej                  j(                  e`_        dc Zaej                  j(                  ea_        dd Zbej                  j(                  eb_        de Zcej                  j(                  ec_        df Zdej                  j(                  ed_        dg Zeej                  j(                  ee_        dh Zfej                  j(                  ef_        di Zgej                  j(                  eg_        dj Zhej                  j(                  eh_        	 dQdkedlee   fdmZiej                  j(                  ei_        dn Zjej                  j(                  ej_        do Zkej                  j(                  ek_        dp Zlej                  j(                  el_        dq Zmej                  j(                  em_        dr Znej                  j(                  en_        ds Zoej                  j(                  eo_        dt Zpej                  j(                  ep_        du Zqej                  j(                  eq_        dv Zrej                  j(                  er_        dw Zsej                  j(                  es_        dx Ztej                  j(                  et_        dy Zuej                  j(                  eu_        dz Zvej                  j(                  ev_        d{ Zwej                  j(                  ew_        d| Zxej                  j(                  ex_        d} Zyej                  j(                  ey_        d~ Zzej                  j(                  ez_        d Z{ej                  j(                  e{_        d Z|ej                  j(                  e|_        d Z}ej                  j(                  e}_        d Z~ej                  j(                  e~_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej
                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej"                  j(                  e_        d Zej$                  j(                  e_        d Zej&                  j(                  e_        d Zej(                  j(                  e_        d Zej*                  j(                  e_        d Zej,                  j(                  e_        d Zej.                  j(                  e_        d Zej0                  j(                  e_        d Zej2                  j(                  e_        d Zej4                  j(                  e_        d Zej6                  j(                  e_        d Zej8                  j(                  e_        d Zej:                  j(                  e_        d Zej<                  j(                  e_        d Zej>                  j(                  e_        d Zej@                  j(                  e_        d ZejB                  j(                  e_        d ZejD                  j(                  e_        d ZejF                  j(                  e_        d ZejH                  j(                  e_        d ZdSd.ee   de	dee   fdZejJ                  j(                  e_        d ZejP                  j(                  e_        d ZejR                  j(                  e_        d ZejT                  j(                  e_        d ZejV                  j(                  e_        d ZejX                  j(                  e_        d ZejZ                  j(                  e_        d Zej\                  j(                  e_        d Zej^                  j(                  e_        d Zej`                  j(                  e_        d Zejb                  j(                  e_        d Zejd                  j(                  e_        d Zejf                  j(                  e_        d Zejh                  j(                  e_        d Zejj                  j(                  e_        d Zejl                  j(                  e_        d Zejn                  j(                  e_        d Zejp                  j(                  e_        d Zejr                  j(                  e_        d Zejt                  j(                  e_        d Zejv                  j(                  e_        d Zejx                  j(                  e_        d Zejz                  j(                  e_        dÄ Zej|                  j(                  e_        dĄ Zej~                  j(                  e_        dń Zej                  j(                  e_        dƄ Zej                  j(                  e_        dǄ Zej                  j(                  e_        dȄ Zej                  j(                  e_        dɄ Zej                  j(                  e_        dʄ Zej                  j(                  e_        d˄ Zej                  j(                  e_        d̄ Zej                  j(                  e_        d̈́ Zej                  j(                  e_        d΄ Zej                  j(                  e_        dτ Zej                  j(                  e_        dЄ Zej                  j(                  e_        dф Zej                  j(                  e_        d҄ Zej                  j(                  e_        dӄ Zej                  j(                  e_        dԄ Zej                  j(                  e_        dՄ Zej                  j(                  e_        dք Zej                  j(                  e_        dׄ Zej                  j(                  e_        d؄ Zej                  j(                  e_        dل Zej                  j(                  e_        dڄ Zej                  j(                  e_        dۄ Zej                  j(                  e_        d܄ Zej                  j(                  e_        d݄ Zej                  j(                  e_        dބ Zej                  j(                  e_        d߄ Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        	 dRd.edefdZej                  j(                  e_        	 dQdZej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        ej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d  Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Z ej                   j(                  e _        d Zej                  j(                  e_        d Zej                  j(                  e_        d	 Zej                  j(                  e_        d
 Zd Zd Zd Zd Zd Z	d Z
ej                  j(                  e
_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej"                  j(                  e_        d Zej$                  j(                  e_        d Zej&                  j(                  e_        d Zej(                  j(                  e_        d Zej*                  j(                  e_        d Zej,                  j(                  e_        d Zej.                  j(                  e_        d Zej0                  j(                  e_        d Zej2                  j(                  e_        d  Zej4                  j(                  e_        d! Zej6                  j(                  e_        d" Zej8                  j(                  e_        d# Zej:                  j(                  e_        d$ Zej<                  j(                  e_        d% Zej>                  j(                  e_        d& Z ej@                  j(                  e _        d' Z!ejB                  j(                  e!_        d( Z"ejD                  j(                  e"_        d) Z#ejF                  j(                  e#_        d* Z$ejH                  j(                  e$_        d+ Z%ejJ                  j(                  e%_        d,e	fd-Z&ejL                  j(                  e&_        d. Z'ejN                  j(                  e'_        d/ Z(ejP                  j(                  e(_        d0 Z)ejR                  j(                  e)_        d1 Z*ejT                  j(                  e*_        d2 Z+ejV                  j(                  e+_        d3 Z,ejX                  j(                  e,_        d4 Z-ejZ                  j(                  e-_        d5 Z.ej\                  j(                  e._        d6 Z/ej^                  j(                  e/_        d7 Z0ej`                  j(                  e0_        d8 Z1ejb                  j(                  e1_        d9 Z2ejd                  j(                  e2_        d: Z3ejf                  j(                  e3_        d; Z4ejh                  j(                  e4_        d< Z5ejj                  j(                  e5_        d= Z6ejl                  j(                  e6_        d> Z7ej                  j(                  e7_        d? Z8ej                  j(                  e8_        d@ Z9ejr                  j(                  e9_        dA Z:ejt                  j(                  e:_        dB Z;ejv                  j(                  e;_        dC Z<ejx                  j(                  e<_        dD Z=ejz                  j(                  e=_        dE Z>ej|                  j(                  e>_        dF Z?ej~                  j(                  e?_        dG Z@ej                  j(                  e@_        dH ZAej                  j(                  eA_        dI ZBej                  j(                  eB_        dJ ZCej                  j(                  eC_        dK ZDej                  j(                  eD_        dL ZEej                  j(                  eE_        dM ZFej                  j(                  eF_        dN ZGej                  j(                  eG_        dO ZHej                  j(                  eH_        dP ZIej                  j(                  eI_        dQ ZJej                  j(                  eJ_        dR ZKej                  j(                  eK_        dS ZLej                  j(                  eL_        dT ZMej                  j(                  eM_        dU ZNej                  j(                  eN_        dV ZOej                  j(                  eO_        dW ZPej                  j(                  eP_        dX ZQej                  j(                  eQ_        dY ZRej                  j(                  eR_        dZ ZSej                  j(                  eS_        d[ ZTej                  j(                  eT_        d\ ZUej                  j(                  eU_        d] ZVej                  j(                  eV_        d^ ZWej                  j(                  eW_        d_ ZXej                  j(                  eX_        d` ZYej                  j(                  eY_        da ZZej                  j(                  eZ_        db Z[ej                  j(                  e[_        dc Z\ej                  j(                  e\_        dd Z]ej                  j(                  e]_        de Z_ej                  j(                  e__        df Z`ej                  j(                  e`_        dg Zaej                  j(                  ea_        dh Zbej                  j(                  eb_        di Zcej                  j(                  ec_        dj Zdej                  j(                  ed_        dk Ze	 ej                  j(                  ee_        dl Zfej                  j(                  ef_        dm Zgej                  j(                  eg_        dn Zhej                  j(                  eh_        do Ziej                  j(                  ei_        dp Zjej                  j(                  ej_        dq Zkej                  j(                  ek_        dr Zlej                  j(                  el_        ds Zmej                  j(                  em_        dt Znej                  j(                  en_        du Zoej                  j(                  eo_        dv Zpej                  j(                  ep_        dw Zqej                  j(                  eq_        dx Zrej                  j(                  er_        dy Zsej                  j(                  es_        dz Ztej                  j(                  et_        d{ Zuej                  j(                  eu_        d| Zvej                  j(                  ev_        d} Zwej                  j(                  ew_        d~ Zxej                  j(                  ex_        d Zyej                  j(                  ey_        d Zzej                  j(                  ez_        d Z{ej                  j(                  e{_        d Z|ej                  j(                  e|_        d Z}ej                  j(                  e}_        d Z~ej                  j(                  e~_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        	 d Zej
                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej"                  j(                  e_        d Zej$                  j(                  e_        d Zej&                  j(                  e_        d Zej(                  j(                  e_        d Zej*                  j(                  e_        d Zej,                  j(                  e_        d Zej.                  j(                  e_        d Zej0                  j(                  e_        d Zej2                  j(                  e_        d Zej4                  j(                  e_        d Zej6                  j(                  e_        d Zej8                  j(                  e_        d Zej:                  j(                  e_        d Zej<                  j(                  e_        d Zej>                  j(                  e_        d Zej@                  j(                  e_        d ZejB                  j(                  e_        d ZejD                  j(                  e_        d ZejF                  j(                  e_        d ZejH                  j(                  e_        d ZejJ                  j(                  e_        d ZejL                  j(                  e_        d ZejN                  j(                  e_        d ZejP                  j(                  e_        d ZejR                  j(                  e_        d ZejT                  j(                  e_        d ZejV                  j(                  e_        d ZejX                  j(                  e_        d ZejZ                  j(                  e_        d Zej\                  j(                  e_        d Zej^                  j(                  e_        d Zej`                  j(                  e_        d Zejb                  j(                  e_        d Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd ZdÄ ZdĄ Zdń ZdƄ ZdǄ ZdȄ ZdɄ ZÐdʄ ZĐd˄ ZŐd̄ ZƐd̈́ Zǐd΄ ZȐdτ ZɐdЄ Zʐdф Zːd҄ Z̐dӄ Z͐dԄ ZΐdՄ Zϐdք ZАdׄ Zѐd؄ ZҐdل ZӐdڄ ZԐdۄ ZՐd܄ Z֐d݄ Zאdބ Zؐd߄ Zِd Zڐd Zېd Zܐd Zݐd Zސd Zߐd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zej                  j(                  e_        d Zd Zej                  fdZej                  fdZej                  fdZd Zd Zd Zd Zd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d  Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Z ej                   j(                  e _        d Zej                  j(                  e_        d Zej                  j(                  e_        d	 Zej                  j(                  e_        d
 Zej                  j(                  e_        d Zej
                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Z	ej                  j(                  e	_        d Z
ej                  j(                  e
_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej"                  j(                  e_        d Zej$                  j(                  e_        d Zej&                  j(                  e_        d Zej(                  j(                  e_        d Zej*                  j(                  e_        d Zej,                  j(                  e_        d Zej.                  j(                  e_        d Zd Zd  Zd! Zd" Zd# Zd$ Zd% Zd& Z d' Z!d( Z"d) Z#d* Z$d+ Z%ejJ                  j(                  e%_        d, Z&ejL                  j(                  e&_        d- Z'ejN                  j(                  e'_        d. Z(ejP                  j(                  e(_        d/ Z)ejR                  j(                  e)_        d0 Z*ejT                  j(                  e*_        d1 Z+ejV                  j(                  e+_        d2 Z,ejX                  j(                  e,_        d3 Z-ejZ                  j(                  e-_        d4 Z.ej\                  j(                  e._        d5 Z/ej^                  j(                  e/_        d6 Z0ej`                  j(                  e0_        d7 Z1ejb                  j(                  e1_        d8 Z2ejd                  j(                  e2_        d9 Z3ejf                  j(                  e3_        d: Z4ejh                  j(                  e4_        d; Z5ejj                  j(                  e5_        d< Z6ejl                  j(                  e6_        d= Z7ejn                  j(                  e7_        d> Z8ejp                  j(                  e8_        d? Z9ejr                  j(                  e9_        d@ Z:ejt                  j(                  e:_        dA Z;ejv                  j(                  e;_        dB Z<ejx                  j(                  e<_        dC Z=ejz                  j(                  e=_        dD Z>ej|                  j(                  e>_        dE Z?ej~                  j(                  e?_        dF Z@ej                  j(                  e@_        dG ZAej                  j(                  eA_        dH ZBej                  j(                  eB_        dI ZCej                  j(                  eC_        dJ ZDej                  j(                  eD_        dK ZEej                  j(                  eE_        dL ZFej                  j(                  eF_        dM ZGej                  j(                  eG_        dN ZHej                  j(                  eH_        dO ZIej                  j(                  eI_        dP ZJej                  j(                  eJ_        dQ ZKej                  j(                  eK_        dR ZLej                  j(                  eL_        dS ZMej                  j(                  eM_        dT ZNej                  j(                  eN_        dU ZOej                  j(                  eO_        dV ZPej                  j(                  eP_        dW ZQej                  j(                  eQ_        dX ZRej                  j(                  eR_        dY ZSdZ ZTej                  j(                  eT_        d[ ZUej                  j(                  eU_        d\ ZVej                  j(                  eV_        d] ZWej                  j(                  eW_        d^ ZXej                  j(                  eX_        d_ ZYej                  j(                  eY_        d` ZZej                  j(                  eZ_        da Z[ej                  j(                  e[_        db Z\ej                  j(                  e\_        dc Z]ej                  j(                  e]_        dd Z^ej                  j(                  e^_        de Z_ej                  j(                  e__        df Z`ej                  j(                  e`_        dg Zaej                  j(                  ea_        dh Zbej                  j(                  eb_        di Zcej                  j(                  ec_        dj Zdej                  j(                  ed_        dk Zeej                  j(                  ee_        dl Zfej                  j(                  ef_        dm Zgej                  j(                  eg_        dn Zhej                  j(                  eh_        do Ziej                  j(                  ei_        dp Zjej                  j(                  ej_        dq Zkej                  j(                  ek_        dr Zlej                  j(                  el_        ds Zmej                  j(                  em_        dt Znej                  j(                  en_        du Zodv Zpdw Zqej                  j(                  eq_        dx Zrej                  j(                  er_        dy Zsej                  j(                  es_        dz Ztej                  j(                  et_        d{ Zuej                  j(                  eu_        d| Zvej                  j(                  ev_        d} Zwej                  j(                  ew_        d~ Zxej                  j(                  ex_        d Zyej                  j(                  ey_        d Zzej                  j(                  ez_        d Z{ej                  j(                  e{_        d Z|ej                  j(                  e|_        d Z}ej                  j(                  e}_        d Z~ej                  j(                  e~_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zd Zej
                  j(                  e_        d Zej                  j(                  e_        d Zd Zd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej"                  j(                  e_        d Zej$                  j(                  e_        d Zej&                  j(                  e_        d Zej(                  j(                  e_        d Zej*                  j(                  e_        d Zej,                  j(                  e_        d Zej.                  j(                  e_        d Zd Zej2                  j(                  e_        d Zej4                  j(                  e_        d Zej6                  j(                  e_        d Zej8                  j(                  e_        d Zej:                  j(                  e_        d Zej<                  j(                  e_        d Zej>                  j(                  e_        d Zej@                  j(                  e_        d ZejB                  j(                  e_        d ZejD                  j(                  e_        d ZejF                  j(                  e_        d ZejH                  j(                  e_        d ZejJ                  j(                  e_        d ZejL                  j(                  e_        d ZejN                  j(                  e_        d ZejP                  j(                  e_        d ZejR                  j(                  e_        d ZejT                  j(                  e_        d ZejV                  j(                  e_        d ZejX                  j(                  e_        d ZejZ                  j(                  e_        d Zej\                  j(                  e_        d Zej^                  j(                  e_        d Zd Zd Zejd                  j(                  e_        d Zejf                  j(                  e_        d Zejh                  j(                  e_        d Zejj                  j(                  e_        d Zejl                  j(                  e_        d Zejn                  j(                  e_        d Zejp                  j(                  e_        d Zejr                  j(                  e_        d Zd Zejv                  j(                  e_        d Zejx                  j(                  e_        dÄ Zejz                  j(                  e_        dĄ Zej|                  j(                  e_        dń Zej~                  j(                  e_        dƄ Zej                  j(                  e_        dǄ ZdȄ Zej                  j(                  e_        dɄ Zej                  j(                  e_        dʄ Zej                  j(                  e_        d˄ Zej                  j(                  e_        d̄ ZƐd̈́ Zej                  j(                  e_        d΄ Zej                  j(                  e_        dτ Zej                  j(                  e_        dЄ Zej                  j(                  e_        dф Zej                  j(                  e_        d҄ Zej                  j(                  e_        dӄ Zej                  j(                  e_        dԄ Zej                  j(                  e_        dՄ Zej                  j(                  e_        dք Zej                  j(                  e_        dׄ Zej                  j(                  e_        d؄ Zej                  j(                  e_        dل Zej                  j(                  e_        dڄ Zej                  j(                  e_        dۄ Zej                  j(                  e_        d܄ Zej                  j(                  e_        d݄ Zej                  j(                  e_        dބ Zej                  j(                  e_        d߄ Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zݐd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zd Zej                  j(                  e_        d Zd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d  Zej                  j(                  e_        d Zej                  j(                  e_        d Zd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Z ej                   j(                  e _        d Zej                  j(                  e_        d Zej                  j(                  e_        d	 Zej                  j(                  e_        d
 Zej                  j(                  e_        d Zej
                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Z	ej                  j(                  e	_        d Z
ej                  j(                  e
_        d Zej                  j(                  e_        d Zd Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                  j(                  e_        d Zej                   j(                  e_        d Zej"                  j(                  e_        d Zej$                  j(                  e_        d Zej&                  j(                  e_        d Zej(                  j(                  e_        d Zej*                  j(                  e_        d Zej,                  j(                  e_        d Zej.                  j(                  e_        d Zej0                  j(                  e_        d Zej2                  j(                  e_        d  Zej4                  j(                  e_        d! Zej6                  j(                  e_        d" Zej8                  j(                  e_        d# Zej:                  j(                  e_        d$ Zej<                  j(                  e_        d% Zej>                  j(                  e_        d& Z d' Z!ejB                  j(                  e!_        d( Z"ejD                  j(                  e"_        d) Z#ejF                  j(                  e#_        d* Z$ejH                  j(                  e$_        d+ Z%ejJ                  j(                  e%_        d, Z&ejL                  j(                  e&_        d- Z'ejN                  j(                  e'_        d. Z(ejP                  j(                  e(_        d/ Z)ejR                  j(                  e)_        d0 Z*ejT                  j(                  e*_        d1 Z+ejV                  j(                  e+_        d2 Z,ejX                  j(                  e,_        d3 Z-ejZ                  j(                  e-_        d4 Z.ej\                  j(                  e._        d5 Z/ej^                  j(                  e/_        d6 Z0ej`                  j(                  e0_        d7 Z1d8 Z2ejd                  j(                  e2_        d9 Z3ejf                  j(                  e3_        d: Z4ejh                  j(                  e4_        d; Z5ejj                  j(                  e5_        d< Z6ejl                  j(                  e6_        d= Z7ejn                  j(                  e7_        d> Z8ejp                  j(                  e8_        d? Z9ejr                  j(                  e9_        d@ Z:ejt                  j(                  e:_        dA Z;ejv                  j(                  e;_        dB Z<ejx                  j(                  e<_        dC Z=ejz                  j(                  e=_        dD Z>ej|                  j(                  e>_        dE Z?ej~                  j(                  e?_        dF Z@ej                  j(                  e@_        dG ZAej                  j(                  eA_        dH ZBej                  j(                  eB_        dI ZCej                  j(                  eC_        dJ ZDej                  j(                  eD_        dK ZEej                  j(                  eE_        dL ZFej                  j(                  eF_        dM ZGej                  j(                  eG_        dN ZHej                  j(                  eH_         xZIS (T  AsyncClientNcomFapi_key
api_secretrequests_paramstldbase_endpointtestnetdemosession_paramsprivate_keyprivate_key_passhttps_proxy	time_unitverbosec                     || _         |xs
 t               | _        |	xs i | _        |r
|d||di}n$|r"| d|vri |d<   |d   j	                  ||d       t
        |   ||||||||
|||       y )Nproxies)httphttps)r$   r%   )r#   r   loop_session_paramsupdatesuper__init__)selfr   r   r   r   r   r   r   r*   r    r!   r"   r#   r$   r%   	__class__s                  R/var/www/app/trading-bot/venv/lib/python3.12/site-packages/binance/async_client.pyr.   zAsyncClient.__init__   s    " '&HJ	/=/C ?2(;*UVO_8/-/	*I&--{[.YZ 	 	
    c                 T  K    | |||||||||	|
||||      }||_         	 |j                          d {    |j                          d {   }|d   t        t	        j                         dz        z
  |_        |S 7 I7 3# t        $ r |j                          d {  7    w xY ww)N
serverTime  )r#   pingget_server_timeinttimetimestamp_offset	Exceptionclose_connection)clsr   r   r   r   r   r   r   r*   r    r!   r"   r#   r$   r%   r/   ress                    r1   createzAsyncClient.createF   s     $ 
  '	))+ ,,..C$'$5DIIK$<N8O$OD!K  /  	 '')))		sJ   B(B A=B A?0B <B(=B ?B B%B B%%B(returnc                 z    t        j                  d| j                  | j                         d| j                  }|S )N)r*   headers )aiohttpClientSessionr*   _get_headersr+   )r/   sessions     r1   _init_sessionzAsyncClient._init_sessionx   s>    '' 
D$5$5$7
;?;O;O
 r2   c                    K   | j                   r0| j                   sJ | j                   j                          d {    | j                  r*| j                  j                          d {    d | _        y y 7 ;7 wN)rG   closews_api_ws_apir/   s    r1   r<   zAsyncClient.close_connection~   sa     <<<<<,,$$&&&;;++##%%%DL  '%s!   8A:A6-A:(A8)A:8A:urisignedforce_paramsc                 *  K   i }|j                         dv r|j                  ddi       d|v r.|d   D ]&  }|dk(  s	|j                  |d   |          |d   |=  n  | j                  |||fi |}|dk(  rd|v r| d|d    }|j                  d       |j	                  d      }||d= |rE| j
                  r9|r7t        j                  |      }	d	|	v r|	d	   nd }
|
r|	d	= t        |	      }| d
|
 }|j                  dd         t        | j                  |      t        j                  |d      f| j                  ||d|4 d {   }|| _        | j                  rl|j!                          d {   }| j"                  j%                  d|j                         ||||j&                  t)        |j*                        |r|d d nd        | j-                  |       d {   cd d d       d {    S 7 7 7 7 # 1 d {  7  sw Y   y xY ww)N)POSTPUTDELETEzContent-Typez!application/x-www-form-urlencodeddatarB   getparams?	signaturez&signature=r'   T)encoded)proxyrB   rV   zd
Request: %s %s
RequestHeaders: %s
RequestBody: %s
Response: %s
ResponseHeaders: %s
ResponseBody: %sr5   )upperr,   _get_request_kwargspoprW   PRIVATE_KEYr   convert_to_dictr	   getattrrG   yarlURLr#   responser%   textloggerdebugstatusdictrB   _handle_response)r/   methodrO   rP   rQ   kwargsrB   keyrV   	dict_datarZ   url_encoded_datare   response_texts                 r1   _requestzAsyncClient._request   sE    
 <<>66NNN,OPQVf~ )#NN6&>##67vs+	 *))&&,Q&QU?6!Qvh/01

8$zz&!v t''D..t4I2=2J	+.PTIk*(3&'{9+>D 	

9d#074<<0HHS$'
""	

 
 	9 	9 $DM||&.mmo 5!! ALLNOO))*,9M%4(t	 ..x88-	9 	9 	9 !6 9-	9 	9 	9 	9sr   9HDHG6	H'G>3G84A,G> G:!G>$H0G<1H8G>:G><H>HHHHre   c                   K   t        |j                        j                  d      s-t        ||j                  |j	                          d{         |j	                          d{   }|dk(  ri S 	 |j                          d{   S 7 @7 &7 # t        $ r( |j	                          d{  7  }t        d|       w xY ww)zInternal helper for handling API responses from the Binance server.
        Raises the appropriate exceptions when necessary; otherwise, returns the
        response.
        2N zInvalid Response: )strri   
startswithr   rf   json
ValueErrorr   )r/   re   rf   txts       r1   rk   zAsyncClient._handle_response   s     
 8??#..s3%hx}}AVWW]]_$2:I	F!(( BW$
 ) 	F ''C),>se*DEE	FsZ   A	CBC'B(C4B BB CCB C.B1/CCc                    K   | j                  |||      }|j                  dd      } | j                  ||||fi | d {   S 7 wNrQ   F)_create_api_urir_   rr   r/   rl   pathrP   versionrm   rO   rQ   s           r1   _request_apizAsyncClient._request_api   sN      ""49zz.%8"T]]63OOOOOs   ?AAAc                    K    | j                   |fi |}| j                  ||      }|j                  dd      } | j                  ||||fi | d {   S 7 wNr   rQ   F)_get_version_create_futures_api_urir_   rr   r~   s           r1   _request_futures_apiz AsyncClient._request_futures_api   sf      $$##G6v6**4*Azz.%8"T]]63OOOOO   AAAAc                    K   | j                  |      }|j                  dd      } | j                  ||||fi | d {   S 7 wNrQ   T)_create_futures_data_api_urir_   rr   r/   rl   r   rP   rm   rO   rQ   s          r1   _request_futures_data_apiz%AsyncClient._request_futures_data_api   sJ      //5zz.$7"T]]63OOOOO   =AA Ac                    K    | j                   |fi |}| j                  ||      }|j                  dd      } | j                  ||||fi | d {   S 7 wr   )r   _create_futures_coin_api_urlr_   rr   r~   s           r1   _request_futures_coin_apiz%AsyncClient._request_futures_coin_api   sf      $$##G6v6//g/Fzz.%8"T]]63OOOOOr   c                    K    | j                   |fi |}| j                  ||      }|j                  dd      } | j                  ||||fi | d {   S 7 w)Nr   rQ   T)r   !_create_futures_coin_data_api_urlr_   rr   r~   s           r1   _request_futures_coin_data_apiz*AsyncClient._request_futures_coin_data_api   sf      $$##G6v644T74Kzz.$7"T]]63OOOOOr   c                    K   | j                  |      }|j                  dd      } | j                  ||||fi | d {   S 7 wr   )_create_options_api_urir_   rr   r   s          r1   _request_options_apiz AsyncClient._request_options_api  sH     **40zz.$7"T]]63OOOOOr   c                    K    | j                   |fi |}| j                  ||      }|j                  dd      } | j                  ||||fi | d {   S 7 wr|   )r   _create_margin_api_urir_   rr   r~   s           r1   _request_margin_apizAsyncClient._request_margin_api  sc      $$##G6v6))$8zz.%8"T]]63OOOOO   AAAAc                    K    | j                   |fi |}| j                  ||      }|j                  dd      } | j                  ||||fi | d {   S 7 wr|   )r   _create_papi_api_urir_   rr   r~   s           r1   _request_papi_apizAsyncClient._request_papi_api  sc      $$##G6v6''g6zz.%8"T]]63OOOOOr   c                 j   K   | j                  |      } | j                  |||fi | d {   S 7 wrJ   )_create_website_urirr   )r/   rl   r   rP   rm   rO   s         r1   _request_websitezAsyncClient._request_website  s6     &&t,"T]]63A&AAAAs   *313c                 J   K    | j                   d|||fi | d {   S 7 w)NrW   r   r/   r   rP   r   rm   s        r1   _getzAsyncClient._get#  ,      'T&&udFGNvNNNN   #!#c                 J   K    | j                   d|||fi | d {   S 7 w)Npostr   r   s        r1   _postzAsyncClient._post(  s,      'T&&vtVWOOOOOr   c                 J   K    | j                   d|||fi | d {   S 7 w)Nputr   r   s        r1   _putzAsyncClient._put-  r   r   c                 J   K    | j                   d|||fi | d {   S 7 w)Ndeleter   r   s        r1   _deletezAsyncClient._delete2  s,      'T&&xvwQ&QQQQr   c                 F   K   | j                  dd       d {   }|S 7 w)NrW   zGbapi/asset/v2/public/asset-service/product/get-products?includeEtf=true)r   )r/   productss     r1   get_productszAsyncClient.get_products9  s-     ..U
 
 	
s   !!c                 @   K   | j                  d       d {   S 7 w)NexchangeInfor   rN   s    r1   get_exchange_infozAsyncClient.get_exchange_infoB  s     YY~....   c                    K   | j                          d {   }|d   D ]  }|d   |j                         k(  s|c S  y 7 )w)Nsymbolssymbol)r   r]   )r/   r   r>   items       r1   get_symbol_infozAsyncClient.get_symbol_infoG  sK     **,,	N 	DH~/	  -s   AA "AAc                 @   K   | j                  d       d {   S 7 w)Nr6   r   rN   s    r1   r6   zAsyncClient.pingT       YYv&&&&r   c                 @   K   | j                  d       d {   S 7 w)Nr9   r   rN   s    r1   r7   zAsyncClient.get_server_timeY  r   r   r   c                    K   i }|r||d<   | j                  d|       d {   }t        |t              rt        d |D              r|S t	        d      7 3w)Nr   ticker/pricerV   c              3   <   K   | ]  }t        |t                y wrJ   )
isinstancerj   ).0r   s     r1   	<genexpr>z.AsyncClient.get_all_tickers.<locals>.<genexpr>i  s     -Zjt.D-Zs   zExpected a list of dictionaries)r   r   listall	TypeError)r/   r   rX   re   s       r1   get_all_tickerszAsyncClient.get_all_tickers`  sg      %F8 # 
 
 h%#-ZQY-Z*ZO9::
s    AA4Ac                 z   K   i }d|v r	|d   |d<   nd|v r|d   |d<   | j                  d|       d {   S 7 w)Nr   r   ticker/bookTickerr   r   )r/   rX   rV   s      r1   get_orderbook_tickersz!AsyncClient.get_orderbook_tickerso  s\     v#H-DN& $Y/DOYYd  
 
 	
 
s   2;9;c                 D   K   | j                  d|       d {   S 7 w)Ndepthr   r   r/   rX   s     r1   get_order_bookzAsyncClient.get_order_book{  s     YYwVY4444     c                 D   K   | j                  d|       d {   S 7 w)Ntradesr   r   r   s     r1   get_recent_tradeszAsyncClient.get_recent_trades       YYxfY5555r   c                 D   K   | j                  d|       d {   S 7 w)NhistoricalTradesr   r   r   s     r1   get_historical_tradesz!AsyncClient.get_historical_trades  s+     YYV  
 
 	
 
r   c                 D   K   | j                  d|       d {   S 7 w)N	aggTradesr   r   r   s     r1   get_aggregate_tradesz AsyncClient.get_aggregate_trades  s+     YYf  
 
 	
 
r   c                  K   ||t        d      ||| j                  |d       d {   }nct        |      }	 |dz   }| j                  |||       d {   }t        |      dkD  rn'|t	        t        j
                         dz        kD  ry |}W|D ]  }| 	 |d   | j                     }	 | j                  ||       d {   }|dd  }t        |      dk(  ry |D ]  }| 	 |d   | j                     }N7 7 7 ;w)	Nz;start_time and last_id may not be simultaneously specified.r   )r   fromIdi6 )r   	startTimeendTimer5   r   )ry   r   r   lenr8   r9   AGG_ID)r/   r   	start_strlast_idr   start_tsend_tsts           r1   aggregate_trade_iterz AsyncClient.aggregate_trade_iter  sZ     W%8M 
 ?  #88q8QQ
 *)4 %8F#'#<#<%6 $= $ F 6{Q DIIK$$6 77%H   Rj-G  44F74SSF ABZF6{a Rj-G 3 R* Ts4   *DD-DDA/D
D8DDDc                 D   K   | j                  d|       d {   S 7 w)NuiKlinesr   r   r   s     r1   get_ui_klineszAsyncClient.get_ui_klines  s     YYzY7777r   c                 D   K   | j                  d|       d {   S 7 w)Nklinesr   r   r   s     r1   
get_klineszAsyncClient.get_klines  r   r   klines_typec                   K   d|v r|d   s|d= t         j                  |k(  r | j                  di | d {   S t         j                  |k(  r | j                  di | d {   S t         j
                  |k(  r | j                  di | d {   S t         j                  |k(  r | j                  di | d {   S t         j                  |k(  r | j                  di | d {   S t         j                  |k(  r | j                  di | d {   S t         j                  |k(  r | j                  di | d {   S t        |      7 7 7 7 7 r7 G7 w)Nr   rC   )r   SPOTr   FUTURESfutures_klinesFUTURES_COINfutures_coin_klinesFUTURES_MARK_PRICEfutures_mark_price_klinesFUTURES_INDEX_PRICEfutures_index_price_klinesFUTURES_COIN_MARK_PRICEfutures_coin_mark_price_klinesFUTURES_COIN_INDEX_PRICEfutures_coin_index_price_klinesr   )r/   r   rX   s      r1   _klineszAsyncClient._klines  sV     vi'8y!$$3(26222!))[8,,,6v666!..+=111;F;;;!44C777A&AAA!55D888B6BBB!99[H<<<FvFFF!::kI===GGGG)+66 36;ABFGs{   5E$E,E$$E%,E$E,E$>E?,E$+E,,E$E ,E$E"E$E$E$E$E$ E$"E$c                    K   | j                  |||ddt        t        j                         dz               d {   }|d   d   S 7 w)Nr   r   r5   r   r   intervallimitr   r   )r   r8   r9   )r/   r   r  r   klines        r1   _get_earliest_valid_timestampz)AsyncClient._get_earliest_valid_timestamp  sW      ll#		d*+ # 
 
 Qx{
s   9A
AA
c                 L   K   | j                  ||||||       d {   S 7 wN)end_strr  r   )_historical_klinesr/   r   r  r   r	  r  r   s          r1   get_historical_klinesz!AsyncClient.get_historical_klines  s<      ,,# - 
 
 	
 
s   $"$c                   K   d}|d}d}g }t        |      }	t        |      }
|
'| j                  |||       d {   }t        |
|      }
t        |      }|r	|
r||
k  r|S d}	 | j	                  |||||
|       d {   }|r||z  }|rt        |      |kD  r|d | }	 |S t        |      rt        |      |k  r	 |S |d   d   |	z   }
|r|
|k\  r	 |S |dz  }|dz  dk(  rt        j                  d       d {    7 7 7 	w)	NTr5   Fr   r  r   r      r   r   r  maxr   r   asynciosleep)r/   r   r  r   r	  r  r   initial_limit_setoutput_data	timeframer   first_valid_tsr   idx	temp_datas                  r1   r
  zAsyncClient._historical_klines  s     !=E %  -X6	 "),#'#E#E+$ N 8^4H  (h6X#5"ll'!" +  I y( !S%5%=)&51* # y>S^e%;  !}Q')3H (f, 	 1HCQw!|mmA&&&K F 's5   9DC?AD?D A9D9D:DDDr5   c                 8   K   | j                  ||||||      S wr  )_historical_klines_generatorr  s          r1   get_historical_klines_generatorz+AsyncClient.get_historical_klines_generator_  s2      00# 1 
 	
s   c                  K   t        |      }t        |      }|'| j                  |||       d {   }	t        ||	      }t        |      }
|
r|r|
|k  ry d}	 | j	                  ||||||
       d {   }|r|D ]  }| 	 t        |      rt        |      |k  ry |d   d   |z   }|
r||
k\  ry |dz  }|dz  dk(  rt        j                  d       d {    7 7 l7 	w)Nr   r  r   r   r  r  )r/   r   r  r   r	  r  r   r  r   r  r   r  r  os                 r1   r  z(AsyncClient._historical_klines_generatoru  s2     -X6	 "), #'#E#E+$ N 8^4H  (h6X#5 $'!" !- ! K $ AG
 {#s;'7%'? #2q)I5H (f, 1HCQw!|mmA&&&A < 's5   /C%CAC%4C!5A$C%C#C%!C%#C%c                 D   K   | j                  d|       d {   S 7 w)NavgPricer   r   r   s     r1   get_avg_pricezAsyncClient.get_avg_price  s+     YYV  
 
 	
 
r   c                 D   K   | j                  d|       d {   S 7 w)Nticker/24hrr   r   r   s     r1   
get_tickerzAsyncClient.get_ticker  s+     YY  
 
 	
 
r   c                 D   K   | j                  d|       d {   S 7 w)Nr   r   r   r   s     r1   get_symbol_tickerzAsyncClient.get_symbol_ticker  s+     YY  
 
 	
 
r   c                 D   K   | j                  d|       d {   S 7 w)Ntickerr   r   r   s     r1   get_symbol_ticker_windowz$AsyncClient.get_symbol_ticker_window  r   r   c                 D   K   | j                  d|       d {   S 7 w)Nr   r   r   r   s     r1   get_orderbook_tickerz AsyncClient.get_orderbook_ticker  s+     YYf  
 
 	
 
r   c                    K   d|vr | j                   | j                         z   |d<   | j                  dd|       d {   S 7 w)NnewClientOrderIdorderTr   SPOT_ORDER_PREFIXuuid22r   r   s     r1   create_orderzAsyncClient.create_order  sE     V+)-)?)?$++-)OF%&ZZFZ;;;;   <AAAc                 ~   K   |j                  | j                  |d        | j                  di | d {   S 7 w)NtypetimeInForcerC   )r,   ORDER_TYPE_LIMITr1  r/   r6  rX   s      r1   order_limitzAsyncClient.order_limit  s9     t44[QR&T&&00000   4=;=c                    K   |j                  d| j                  i        | j                  dd|i| d {   S 7 wNsider6  rC   )r,   SIDE_BUYr9  r8  s      r1   order_limit_buyzAsyncClient.order_limit_buy  sC     DMM
 	 &T%%H+HHHHH   5><>c                    K   |j                  d| j                  i        | j                  dd|i| d {   S 7 wr<  )r,   	SIDE_SELLr9  r8  s      r1   order_limit_sellzAsyncClient.order_limit_sell  s>      	vt~~./%T%%H+HHHHHr@  c                 |   K   |j                  d| j                  i        | j                  di | d {   S 7 w)Nr5  rC   )r,   ORDER_TYPE_MARKETr1  r   s     r1   order_marketzAsyncClient.order_market  s9     vt5567&T&&00000   3<:<c                 |   K   |j                  d| j                  i        | j                  di | d {   S 7 wNr=  rC   )r,   r>  rF  r   s     r1   order_market_buyzAsyncClient.order_market_buy  s7     vt}}-.&T&&00000rG  c                 |   K   |j                  d| j                  i        | j                  di | d {   S 7 wrI  )r,   rB  rF  r   s     r1   order_market_sellzAsyncClient.order_market_sell  s7     vt~~./&T&&00000rG  c                 |   K   |j                  d| j                  i        | j                  di | d {   S 7 wrI  )r,   r>  create_oco_orderr   s     r1   order_oco_buyzAsyncClient.order_oco_buy  s7     vt}}-.*T**4V4444rG  c                 |   K   |j                  d| j                  i        | j                  di | d {   S 7 wrI  )r,   rB  rN  r   s     r1   order_oco_sellzAsyncClient.order_oco_sell  s7     vt~~./*T**4V4444rG  c                 F   K   | j                  dd|       d {   S 7 w)N
order/testTr   r   r   s     r1   create_test_orderzAsyncClient.create_test_order  s!     ZZdZ@@@@   !!c                 F   K   | j                  dd|       d {   S 7 wNr-  Tr   r   r   s     r1   	get_orderzAsyncClient.get_order  s!     YYw6Y::::rV  c                 F   K   | j                  dd|       d {   S 7 w)N	allOrdersTr   r   r   s     r1   get_all_orderszAsyncClient.get_all_orders  s!     YY{DvY>>>>rV  c                 F   K   | j                  dd|       d {   S 7 wrX  r   r   s     r1   cancel_orderzAsyncClient.cancel_order"  s!     \\'4f\====rV  c                 F   K   | j                  dd|       d {   S 7 wN
openOrdersTr   r   r   s     r1   get_open_orderszAsyncClient.get_open_orders'  s!     YY|TY????rV  c                 F   K   | j                  dd|       d {   S 7 w)NopenOrderListTr   r   r   s     r1   get_open_oco_orderszAsyncClient.get_open_oco_orders,  !     YY6YBBBBrV  c                 F   K   | j                  dd|       d {   S 7 w)NaccountTr   r   r   s     r1   get_accountzAsyncClient.get_account2  s!     YYy$VY<<<<rV  c                    K    | j                   di | d {   }d|v r:|r3|d   D ]*  }|d   j                         |j                         k(  s(|c S  y |d   S y 7 Cw)NbalancesassetrC   )rj  lower)r/   rm  rX   r>   bals        r1   get_asset_balancezAsyncClient.get_asset_balance7  su     $D$$.v..z? #C7|))+u{{}<"
#
  :& /s   AA6AAc                 F   K   | j                  dd|       d {   S 7 w)NmyTradesTr   r   r   s     r1   get_my_tradeszAsyncClient.get_my_tradesE  s!     YYz4fY====rV  c                 F   K   | j                  dd|       d {   S 7 w)NrateLimit/orderTr   r   r   s     r1   get_current_order_countz#AsyncClient.get_current_order_countJ  s"     YY0$VYDDDDrV  c                 F   K   | j                  dd|       d {   S 7 w)NmyPreventedMatchesTr   r   r   s     r1   get_prevented_matchesz!AsyncClient.get_prevented_matchesO  s"     YY3TYGGGGrV  c                 F   K   | j                  dd|       d {   S 7 w)NmyAllocationsTr   r   r   s     r1   get_allocationszAsyncClient.get_allocationsT  rg  rV  c                 B   K   | j                  dd       d {   S 7 w)NrW   zsystem/statusr   rN   s    r1   get_system_statuszAsyncClient.get_system_statusY  s     --e_EEEE   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zaccount/statusTr   r~  r   s     r1   get_account_statuszAsyncClient.get_account_status^  2     --#T . 
 
 	
 
   " "c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zaccount/apiTradingStatusTr   r~  r   s     r1   get_account_api_trading_statusz*AsyncClient.get_account_api_trading_statuse  2     ---t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zaccount/apiRestrictionsTr   r~  r   s     r1   get_account_api_permissionsz'AsyncClient.get_account_api_permissionsn  2     --,d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zasset/dust-btcTr   r~  r   s     r1   get_dust_assetszAsyncClient.get_dust_assetsu  s2     --$d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zasset/dribbletTr   r~  r   s     r1   get_dust_logzAsyncClient.get_dust_log|  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   z
asset/dustTr   r~  r   s     r1   transfer_dustzAsyncClient.transfer_dust  s&     --flDv-VVVVr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zasset/assetDividendTr   r~  r   s     r1   get_asset_dividend_historyz&AsyncClient.get_asset_dividend_history  2     --($V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wNr   asset/transferTrP   rV   r~  r   s     r1   make_universal_transferz#AsyncClient.make_universal_transfer  2     --$T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r~  r   s     r1    query_universal_transfer_historyz,AsyncClient.query_universal_transfer_history  s2     --#Dv . 
 
 	
 
r  c                 p   K   | j                   dk(  rd}nd}| j                  d|d|       d {   S 7 w)Nuszasset/query/trading-feezasset/tradeFeerW   Tr   )r   r   )r/   rX   endpoints      r1   get_trade_feezAsyncClient.get_trade_fee  s<     88t0H'H--eXt&-QQQQs   -646c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zasset/assetDetailTr   r~  r   s     r1   get_asset_detailszAsyncClient.get_asset_details  s2     --&6 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z/spot/delist-scheduleTr  r~  r   s     r1   get_spot_delist_schedulez$AsyncClient.get_spot_delist_schedule  s2     --*4f . 
 
 	
 
r  c                 h   K   d|v rd|vr|d   |d<   | j                  ddd|       d {   S 7 w)Ncoinnamer   zcapital/withdraw/applyTr   r~  r   s     r1   withdrawzAsyncClient.withdraw  sN     Vf 4#F^F6N--,d . 
 
 	
 
   )202c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcapital/deposit/hisrecTr   r~  r   s     r1   get_deposit_historyzAsyncClient.get_deposit_history  2     --+T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcapital/withdraw/historyTr   r~  r   s     r1   get_withdraw_historyz AsyncClient.get_withdraw_history  r  r  c                    K    | j                   di | d {   }|D ]  }d|v s|d   |k(  s|c S  t        d|      7 (w)Nidz"There is no entry with withdraw idrC   )r  r;   )r/   withdraw_idrX   resultentrys        r1   get_withdraw_history_idz#AsyncClient.get_withdraw_history_id  sY     0t00:6:: 	Eu}t!;	 <fEE ;s   AAAAAr  networkc                 `   K   ||d<   |r||d<   | j                  ddd|       d {   S 7 w)Nr  r  rW   zcapital/deposit/addressTr   r~  )r/   r  r  rX   s       r1   get_deposit_addresszAsyncClient.get_deposit_address  sJ      v 'F9--,d . 
 
 	
 
s   %.,.c                 P   K   | j                  ddi        d {   }|d   S 7 	w)NuserDataStreamFr   	listenKeyrT  r/   r>   s     r1   stream_get_listen_keyz!AsyncClient.stream_get_listen_key  s/     JJ/RJ@@; As   &$
&c                 N   K   d|i}| j                  dd|       d {   S 7 wNr  r  Fr   )r   r/   r  rX   s      r1   stream_keepalivezAsyncClient.stream_keepalive  s,     y)YY/VYDDDD   %#%c                 N   K   d|i}| j                  dd|       d {   S 7 wr  r^  r  s      r1   stream_closezAsyncClient.stream_close  s,     y)\\"2E\GGGGr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/accountTr   r~  r   s     r1   get_margin_accountzAsyncClient.get_margin_account  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/isolated/accountTr   r~  r   s     r1   get_isolated_margin_accountz'AsyncClient.get_isolated_margin_account  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr   r~  r   s     r1   enable_isolated_margin_accountz*AsyncClient.enable_isolated_margin_account
  2     ---t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr   r~  r   s     r1   disable_isolated_margin_accountz+AsyncClient.disable_isolated_margin_account  s2     --/F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/isolated/accountLimitTr   r~  r   s     r1   )get_enabled_isolated_margin_account_limitz5AsyncClient.get_enabled_isolated_margin_account_limit  2     --14f . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/dribbletTr   r~  r   s     r1   get_margin_dustlogzAsyncClient.get_margin_dustlog%  2     --$d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/dustTr   r~  r   s     r1   get_margin_dust_assetsz"AsyncClient.get_margin_dust_assets,  s&     --e]Dv-VVVVr  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr   r~  r   s     r1   transfer_margin_dustz AsyncClient.transfer_margin_dust1  s'     --fmTPV-WWWWr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z!margin/crossMarginCollateralRatioTr   r~  r   s     r1   !get_cross_margin_collateral_ratioz-AsyncClient.get_cross_margin_collateral_ratio6  2     --66 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/exchange-small-liabilityTr   r~  r   s     r1   #get_small_liability_exchange_assetsz/AsyncClient.get_small_liability_exchange_assets?  2     --4d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr   r~  r   s     r1   exchange_small_liability_assetsz+AsyncClient.exchange_small_liability_assetsH  s2     --5t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z'margin/exchange-small-liability-historyTr   r~  r   s     r1   $get_small_liability_exchange_historyz0AsyncClient.get_small_liability_exchange_historyQ  s2     --<d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW    margin/next-hourly-interest-rateTr   r~  r   s     r1   get_future_hourly_interest_ratez+AsyncClient.get_future_hourly_interest_rateZ  2     --5t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/capital-flowTr   r~  r   s     r1   get_margin_capital_flowz#AsyncClient.get_margin_capital_flowc  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/delist-scheduleTr   r~  r   s     r1   get_margin_delist_schedulez&AsyncClient.get_margin_delist_schedulej  r  r  c                 F   K   | j                  dd|       d {   S 7 w)NrW   zmargin/assetr   r~  r   s     r1   get_margin_assetzAsyncClient.get_margin_assetq  s$     --e^&-QQQQrV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   zmargin/pairr   r~  r   s     r1   get_margin_symbolzAsyncClient.get_margin_symbolv  s$     --e]-PPPPrV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   zmargin/allAssetsr   r~  r   s     r1   get_margin_all_assetsz!AsyncClient.get_margin_all_assets{  s%     --e5Gf-UUUUrV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   zmargin/allPairsr   r~  r   s     r1   get_margin_all_pairsz AsyncClient.get_margin_all_pairs  s%     --e5FV-TTTTrV  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zmargin/isolated/createTr  r~  r   s     r1   create_isolated_margin_accountz*AsyncClient.create_isolated_margin_account  2     --,T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/isolated/pairTr  r~  r   s     r1   get_isolated_margin_symbolz&AsyncClient.get_isolated_margin_symbol  2     --)$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/isolated/allPairsTr  r~  r   s     r1   get_all_isolated_margin_symbolsz+AsyncClient.get_all_isolated_margin_symbols  s2     ---d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/isolatedMarginDataTr   r~  r   s     r1   get_isolated_margin_fee_dataz(AsyncClient.get_isolated_margin_fee_data  2     --.6 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/isolatedMarginTierTr   r~  r   s     r1   get_isolated_margin_tier_dataz)AsyncClient.get_isolated_margin_tier_data  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/manual-liquidationTr   r~  r   s     r1   margin_manual_liquidationz%AsyncClient.margin_manual_liquidation  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   bnbBurnTr  r~  r   s     r1   toggle_bnb_burn_spot_marginz'AsyncClient.toggle_bnb_burn_spot_margin  s1     --Id . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r~  r   s     r1   get_bnb_burn_spot_marginz$AsyncClient.get_bnb_burn_spot_margin  s1     --9T . 
 
 	
 
r  c                 F   K   | j                  dd|       d {   S 7 w)NrW   zmargin/priceIndexr   r~  r   s     r1   get_margin_price_indexz"AsyncClient.get_margin_price_index  s%     --e5Hv-VVVVrV  c                 R   K   d|d<   | j                  ddd|       d {   S 7 w)N   r5  r   margin/transferTr  r~  r   s     r1   transfer_margin_to_spotz#AsyncClient.transfer_margin_to_spot  ;     v--%d . 
 
 	
 
   '%'c                 R   K   d|d<   | j                  ddd|       d {   S 7 w)Nr   r5  r   r  Tr  r~  r   s     r1   transfer_spot_to_marginz#AsyncClient.transfer_spot_to_margin  r  r  c                 \   K   d|d<   d|d<   | j                  ddd|       d {   S 7 w)	NISOLATED_MARGIN	transFromr   transTor   margin/isolated/transferTr  r~  r   s     r1    transfer_isolated_margin_to_spotz,AsyncClient.transfer_isolated_margin_to_spot  sF     /{"y--.t& . 
 
 	
 
   #,*,c                 \   K   d|d<   d|d<   | j                  ddd|       d {   S 7 w)	Nr   r  r  r  r   r  Tr  r~  r   s     r1    transfer_spot_to_isolated_marginz,AsyncClient.transfer_spot_to_isolated_margin  sF     ${-y--.t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   margin/loanTr  r~  r   s     r1   create_margin_loanzAsyncClient.create_margin_loan  s1     --M$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   margin/repayTr  r~  r   s     r1   repay_margin_loanzAsyncClient.repay_margin_loan  s1     --N4f . 
 
 	
 
r  c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d {   S 7 w)Nr,  r   margin/orderTr  )r/  r0  r   r   s     r1   create_margin_orderzAsyncClient.create_margin_order  sU     V+)-)?)?$++-)OF%&--N4f . 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r"  Tr  r~  r   s     r1   cancel_margin_orderzAsyncClient.cancel_margin_order  s1     --nT . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   margin/openOrdersTr  r~  r   s     r1   cancel_all_open_margin_ordersz)AsyncClient.cancel_all_open_margin_orders
  s2     --)$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zmargin/max-leverageTr  r~  r   s     r1   set_margin_max_leveragez#AsyncClient.set_margin_max_leverage  2     --)$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r~  r   s     r1   get_margin_transfer_historyz'AsyncClient.get_margin_transfer_history  2     --$T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r~  r   s     r1   get_margin_loan_detailsz#AsyncClient.get_margin_loan_details  1     --=F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r~  r   s     r1   get_margin_repay_detailsz$AsyncClient.get_margin_repay_details&  1     -->$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/crossMarginDataTr  r~  r   s     r1   get_cross_margin_dataz!AsyncClient.get_cross_margin_data-  2     --+Dv . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wNrW   zmargin/interestHistoryTr  r~  r   s     r1   get_margin_interest_historyz'AsyncClient.get_margin_interest_history4  r7  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/forceLiquidationRecTr  r~  r   s     r1    get_margin_force_liquidation_recz,AsyncClient.get_margin_force_liquidation_rec;  2     --/6 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r"  Tr  r~  r   s     r1   get_margin_orderzAsyncClient.get_margin_orderB  r4  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r'  Tr  r~  r   s     r1   get_open_margin_ordersz"AsyncClient.get_open_margin_ordersI  2     --&t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/allOrdersTr  r~  r   s     r1   get_all_margin_ordersz!AsyncClient.get_all_margin_ordersP  2     --%d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/myTradesTr  r~  r   s     r1   get_margin_tradeszAsyncClient.get_margin_tradesW  r.  r  c                 H   K   | j                  ddd|       d {   S 7 wNrW   zmargin/maxBorrowableTr  r~  r   s     r1   get_max_margin_loanzAsyncClient.get_max_margin_loan^  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/maxTransferableTr  r~  r   s     r1   get_max_margin_transferz#AsyncClient.get_max_margin_transfere  r7  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   margin/order/ocoTr  r~  r   s     r1   create_margin_oco_orderz#AsyncClient.create_margin_oco_ordern  2     --&t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   margin/orderListTr  r~  r   s     r1   cancel_margin_oco_orderz#AsyncClient.cancel_margin_oco_orderu  s2     --(F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   rT  Tr  r~  r   s     r1   get_margin_oco_orderz AsyncClient.get_margin_oco_order|  rF  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   margin/openOrderListTr  r~  r   s     r1   get_open_margin_oco_ordersz&AsyncClient.get_open_margin_oco_orders  r  r  c                    K   t        j                  dt        d       | j                  dddi        d {   }|d   S 7 	w)	Na/  POST /sapi/v1/userDataStream is deprecated and will be removed on 2026-02-20. Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken, then subscribe with userDataStream.subscribe.listenToken). The margin_socket() method now uses WebSocket API by default.r  
stacklevelr   r  Fr  r  warningswarnDeprecationWarningr   r  s     r1   margin_stream_get_listen_keyz(AsyncClient.margin_stream_get_listen_key  sX     L 	
 ,,$U - 
 
 ;
s   5AA
Ac                    K   t        j                  dt        d       d|i}| j                  ddd|       d {   S 7 w)	Na.  PUT /sapi/v1/userDataStream is deprecated and will be removed on 2026-02-20. Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken, then subscribe with userDataStream.subscribe.listenToken). The margin_socket() method now uses WebSocket API by default.r  r\  r  r   r  Fr  r^  r  s      r1   margin_stream_keepalivez#AsyncClient.margin_stream_keepalive  sX     L 	
 y)--#E . 
 
 	
 
   9AA Ac                    K   t        j                  dt        d       d|i}| j                  ddd|       d {   S 7 w)	Na1  DELETE /sapi/v1/userDataStream is deprecated and will be removed on 2026-02-20. Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken, then subscribe with userDataStream.subscribe.listenToken). The margin_socket() method now uses WebSocket API by default.r  r\  r  r   r  Fr  r^  r  s      r1   margin_stream_closezAsyncClient.margin_stream_close  sX     L 	
 y)--&u6 . 
 
 	
 
re  is_isolatedvalidityc                    K   i }|r|st        d      ||d<   d|d<   |||d<   | j                  ddd	|
       d{   S 7 w)a  Create a listenToken for margin account user data stream

        https://developers.binance.com/docs/margin_trading/trade-data-stream/Create-Margin-Account-listenToken

        :param symbol: Trading pair symbol (required when is_isolated=True)
        :type symbol: str
        :param is_isolated: Whether it is isolated margin (default: False for cross-margin)
        :type is_isolated: bool
        :param validity: Validity in milliseconds (default: 24 hours, max: 24 hours)
        :type validity: int
        :returns: API response with token and expirationTime

        .. code-block:: python

            {
                "token": "6xXxePXwZRjVSHKhzUCCGnmN3fkvMTXru+pYJS8RwijXk9Vcyr3rkwfVOTcP2OkONqciYA",
                "expirationTime": 1758792204196
            }
        z(symbol is required when is_isolated=Truer   true
isIsolatedNri  r   userListenTokenTr  )ry   r   )r/   r   rh  ri  rX   s        r1   margin_create_listen_tokenz&AsyncClient.margin_create_listen_token  so     (  !KLL%F8#)F< !)F:--%d . 
 
 	
 
   ;AAAc                    K   t        j                  dt        d       d|i}| j                  ddd|       d {   }|d	   S 7 	w)
NaV  POST /sapi/v1/userDataStream/isolated is deprecated and will be removed on 2026-02-20. Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken with isIsolated=true, then subscribe with userDataStream.subscribe.listenToken). The isolated_margin_socket() method now uses WebSocket API by default.r  r\  r   r   userDataStream/isolatedFr  r  r^  )r/   r   rX   r>   s       r1   %isolated_margin_stream_get_listen_keyz1AsyncClient.isolated_margin_stream_get_listen_key  sb     U 	
 F#,,-e& - 
 
 ;
s   9AA
Ac                    K   t        j                  dt        d       ||d}| j                  ddd|       d {   S 7 w)	NaU  PUT /sapi/v1/userDataStream/isolated is deprecated and will be removed on 2026-02-20. Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken with isIsolated=true, then subscribe with userDataStream.subscribe.listenToken). The isolated_margin_socket() method now uses WebSocket API by default.r  r\  r   r  r   rq  Fr  r^  r/   r   r  rX   s       r1    isolated_margin_stream_keepalivez,AsyncClient.isolated_margin_stream_keepalive  sX     U 	
 #;--,U . 
 
 	
 
   :AAAc                    K   t        j                  dt        d       ||d}| j                  ddd|       d {   S 7 w)	NaX  DELETE /sapi/v1/userDataStream/isolated is deprecated and will be removed on 2026-02-20. Use the WebSocket API subscription method instead (create listenToken via POST /sapi/v1/userListenToken with isIsolated=true, then subscribe with userDataStream.subscribe.listenToken). The isolated_margin_socket() method now uses WebSocket API by default.r  r\  rt  r   rq  Fr  r^  ru  s       r1   isolated_margin_stream_closez(AsyncClient.isolated_margin_stream_close   sX     U 	
 #;--/F . 
 
 	
 
rw  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsimple-earn/flexible/listTr  r~  r   s     r1   %get_simple_earn_flexible_product_listz1AsyncClient.get_simple_earn_flexible_product_list  2     --.t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsimple-earn/locked/listTr  r~  r   s     r1   #get_simple_earn_locked_product_listz/AsyncClient.get_simple_earn_locked_product_list  s2     --,T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsimple-earn/flexible/subscribeTr  r~  r   s     r1   &subscribe_simple_earn_flexible_productz2AsyncClient.subscribe_simple_earn_flexible_product$  s2     --4T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsimple-earn/locked/subscribeTr  r~  r   s     r1   $subscribe_simple_earn_locked_productz0AsyncClient.subscribe_simple_earn_locked_product-  s2     --24f . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsimple-earn/flexible/redeemTr  r~  r   s     r1   #redeem_simple_earn_flexible_productz/AsyncClient.redeem_simple_earn_flexible_product6  s2     --1$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsimple-earn/locked/redeemTr  r~  r   s     r1   !redeem_simple_earn_locked_productz-AsyncClient.redeem_simple_earn_locked_product?  s2     --/6 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsimple-earn/flexible/positionTr  r~  r   s     r1   )get_simple_earn_flexible_product_positionz5AsyncClient.get_simple_earn_flexible_product_positionH  s2     --24f . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsimple-earn/locked/positionTr  r~  r   s     r1   'get_simple_earn_locked_product_positionz3AsyncClient.get_simple_earn_locked_product_positionQ  s2     --0F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsimple-earn/accountTr  r~  r   s     r1   get_simple_earn_accountz#AsyncClient.get_simple_earn_accountZ  2     --(F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zlending/project/listTr  r~  r   s     r1   get_fixed_activity_project_listz+AsyncClient.get_fixed_activity_project_listc  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zlending/positionChangedTr  r~  r   s     r1   'change_fixed_activity_to_daily_positionz3AsyncClient.change_fixed_activity_to_daily_positionj  s2     ---d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zstaking/productListTr  r~  r   s     r1   get_staking_product_listz$AsyncClient.get_staking_product_lists  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zstaking/purchaseTr  r~  r   s     r1   purchase_staking_productz$AsyncClient.purchase_staking_productz  rR  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zstaking/redeemTr  r~  r   s     r1   redeem_staking_productz"AsyncClient.redeem_staking_product  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zstaking/positionTr  r~  r   s     r1   get_staking_positionz AsyncClient.get_staking_position  rF  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zstaking/purchaseRecordTr  r~  r   s     r1   get_staking_purchase_historyz(AsyncClient.get_staking_purchase_history  r7  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zstaking/setAutoStakingTr  r~  r   s     r1   set_auto_stakingzAsyncClient.set_auto_staking  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zstaking/personalLeftQuotaTr  r~  r   s     r1   get_personal_left_quotaz#AsyncClient.get_personal_left_quota  r|  r  c                 l   K   | j                  dd       | j                  ddd|       d {   S 7 w)Nr  get_staking_asset_usrW   zstaking/assetTr   _require_tldr   r   s     r1   r  z AsyncClient.get_staking_asset_us  s8     $ 67--e_dQW-XXXX   +424c                 l   K   | j                  dd       | j                  ddd|       d {   S 7 w)Nr  stake_asset_usr   zstaking/stakeTr   r  r   s     r1   r  zAsyncClient.stake_asset_us  sB     $ 01--OT . 
 
 	
 
r  c                 l   K   | j                  dd       | j                  ddd|       d {   S 7 w)Nr  unstake_asset_usr   zstaking/unstakeTr   r  r   s     r1   r  zAsyncClient.unstake_asset_us  sC     $ 23--%t& . 
 
 	
 
r  c                 l   K   | j                  dd       | j                  ddd|       d {   S 7 w)Nr  get_staking_balance_usrW   zstaking/stakingBalanceTr   r  r   s     r1   r  z"AsyncClient.get_staking_balance_us  sC     $ 89--+T . 
 
 	
 
r  c                 l   K   | j                  dd       | j                  ddd|       d {   S 7 w)Nr  get_staking_history_usrW   zstaking/historyTr   r  r   s     r1   r  z"AsyncClient.get_staking_history_us  sC     $ 89--$d . 
 
 	
 
r  c                 l   K   | j                  dd       | j                  ddd|       d {   S 7 w)Nr  get_staking_rewards_history_usrW   zstaking/stakingRewardsHistoryTr   r  r   s     r1   r  z*AsyncClient.get_staking_rewards_history_us  sC     $ @A--2Dv . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsub-account/listTr   r~  r   s     r1   get_sub_account_listz AsyncClient.get_sub_account_list  2     --%t& . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z sub-account/sub/transfer/historyTr   r~  r   s     r1    get_sub_account_transfer_historyz,AsyncClient.get_sub_account_transfer_history  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   $sub-account/futures/internalTransferTr   r~  r   s     r1   (get_sub_account_futures_transfer_historyz4AsyncClient.get_sub_account_futures_transfer_history  s2     --94f . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr   r~  r   s     r1   #create_sub_account_futures_transferz/AsyncClient.create_sub_account_futures_transfer  s2     --:Dv . 
 
 	
 
r  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zsub-account/assetsT   rV   r   r~  r   s     r1   get_sub_account_assetsz"AsyncClient.get_sub_account_assets  s4     --'FA . 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsub-account/spotSummaryTr   r~  r   s     r1   query_subaccount_spot_summaryz)AsyncClient.query_subaccount_spot_summary  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcapital/deposit/subAddressTr   r~  r   s     r1   get_subaccount_deposit_addressz*AsyncClient.get_subaccount_deposit_address  2     --/F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcapital/deposit/subHisrecTr   r~  r   s     r1   get_subaccount_deposit_historyz*AsyncClient.get_subaccount_deposit_history	  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsub-account/statusTr   r~  r   s     r1   $get_subaccount_futures_margin_statusz0AsyncClient.get_subaccount_futures_margin_status  s2     --'F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsub-account/margin/enableTr   r~  r   s     r1   enable_subaccount_marginz$AsyncClient.enable_subaccount_margin  2     --/F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zsub-account/margin/accountTr   r~  r   s     r1   get_subaccount_margin_detailsz)AsyncClient.get_subaccount_margin_details  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z!sub-account/margin/accountSummaryTr   r~  r   s     r1   get_subaccount_margin_summaryz)AsyncClient.get_subaccount_margin_summary%  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsub-account/futures/enableTr   r~  r   s     r1   enable_subaccount_futuresz%AsyncClient.enable_subaccount_futures,  s2     --0$V . 
 
 	
 
r  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zsub-account/futures/accountTr  r  r~  r   s     r1   get_subaccount_futures_detailsz*AsyncClient.get_subaccount_futures_details3  s4     --0$VQ . 
 
 	
 
r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"sub-account/futures/accountSummaryTr  r  r~  r   s     r1   get_subaccount_futures_summaryz*AsyncClient.get_subaccount_futures_summary:  s5     --7FTU . 
 
 	
 
r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z sub-account/futures/positionRiskTr  r  r~  r   s     r1   #get_subaccount_futures_positionriskz/AsyncClient.get_subaccount_futures_positionriskA  s5     --5t&RS . 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsub-account/futures/transferTr   r~  r   s     r1    make_subaccount_futures_transferz,AsyncClient.make_subaccount_futures_transferH  s2     --2Dv . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsub-account/margin/transferTr   r~  r   s     r1   make_subaccount_margin_transferz+AsyncClient.make_subaccount_margin_transferO  s2     --14f . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zsub-account/transfer/subToSubTr   r~  r   s     r1   &make_subaccount_to_subaccount_transferz2AsyncClient.make_subaccount_to_subaccount_transferV  2     --3T . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   z sub-account/transfer/subToMasterTr   r~  r   s     r1   "make_subaccount_to_master_transferz.AsyncClient.make_subaccount_to_master_transfer]  s2     --66 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z#sub-account/transfer/subUserHistoryTr   r~  r   s     r1   get_subaccount_transfer_historyz+AsyncClient.get_subaccount_transfer_historyd  s2     --8$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   sub-account/universalTransferTr   r~  r   s     r1   "make_subaccount_universal_transferz.AsyncClient.make_subaccount_universal_transferk  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr   r~  r   s     r1   get_universal_transfer_historyz*AsyncClient.get_universal_transfer_historyr  s2     --2Dv . 
 
 	
 
r  c                 B   K   | j                  dd       d {   S 7 wNrW   r6   r   rN   s    r1   futures_pingzAsyncClient.futures_ping{       ..uf====r  c                 B   K   | j                  dd       d {   S 7 wNrW   r9   r  rN   s    r1   futures_timezAsyncClient.futures_time  r  r  c                 B   K   | j                  dd       d {   S 7 wNrW   r   r  rN   s    r1   futures_exchange_infoz!AsyncClient.futures_exchange_info       ..unEEEEr  c                 F   K   | j                  dd|       d {   S 7 wNrW   r   r   r  r   s     r1   futures_order_bookzAsyncClient.futures_order_book  $     ..ugF.KKKKrV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   rpiDepthr   r  r   s     r1   futures_rpi_depthzAsyncClient.futures_rpi_depth  s$     ..ujv.NNNNrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   r   r   r  r   s     r1   futures_recent_tradesz!AsyncClient.futures_recent_trades  $     ..uhV.LLLLrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   r   r   r  r   s     r1   futures_historical_tradesz%AsyncClient.futures_historical_trades  %     ..u6Hv.VVVVrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   r   r   r  r   s     r1   futures_aggregate_tradesz$AsyncClient.futures_aggregate_trades  $     ..uk.OOOOrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   r   r   r  r   s     r1   r   zAsyncClient.futures_klines  r  rV  c                 F   K   | j                  dd|       d {   S 7 wNrW   markPriceKlinesr   r  r   s     r1   r   z%AsyncClient.futures_mark_price_klines  s%     ..u6Gf.UUUUrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   indexPriceKlinesr   r  r   s     r1   r   z&AsyncClient.futures_index_price_klines  r  rV  c                 F   K   | j                  dd|       d {   S 7 wNrW   premiumIndexKlinesr   r  r   s     r1   futures_premium_index_klinesz(AsyncClient.futures_premium_index_klines  s&     ..u6JQW.XXXXrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   continuousKlinesr   r  r   s     r1   futures_continuous_klinesz%AsyncClient.futures_continuous_klines  r  rV  r  c                 h   K   | j                  |||||t        j                         d {   S 7 wr  )r
  r   r   )r/   r   r  r   r	  r  s         r1   futures_historical_klinesz%AsyncClient.futures_historical_klines  sB      ,,,44 - 
 
 	
 
r  c                 R   K   | j                  ||||t        j                        S w)N)r	  r   )r  r   r   )r/   r   r  r   r	  s        r1   #futures_historical_klines_generatorz/AsyncClient.futures_historical_klines_generator  s5      00,44 1 
 	
s   %'c                 F   K   | j                  dd|       d {   S 7 wNrW   premiumIndexr   r  r   s     r1   futures_mark_pricezAsyncClient.futures_mark_price  $     ..un6.RRRRrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   fundingRater   r  r   s     r1   futures_funding_ratez AsyncClient.futures_funding_rate  $     ..um&.QQQQrV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   topLongShortAccountRatior   r   r   s     r1   #futures_top_longshort_account_ratioz/AsyncClient.futures_top_longshort_account_ratio  s0     33-F 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   topLongShortPositionRatior   r$  r   s     r1   $futures_top_longshort_position_ratioz0AsyncClient.futures_top_longshort_position_ratio  s0     33.V 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   globalLongShortAccountRatior   r$  r   s     r1   futures_global_longshort_ratioz*AsyncClient.futures_global_longshort_ratio  s0     330v 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   takerlongshortRatior   r$  r   s     r1   futures_taker_longshort_ratioz)AsyncClient.futures_taker_longshort_ratio  s0     33(v 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 wNrW   r"  r   r  r   s     r1   futures_tickerzAsyncClient.futures_ticker  r!  rV  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r   r  r   rV   r  r   s     r1   futures_symbol_tickerz!AsyncClient.futures_symbol_ticker  s'     ..unaV\.]]]]r  c                 F   K   | j                  dd|       d {   S 7 wNrW   r   r   r  r   s     r1   futures_orderbook_tickerz$AsyncClient.futures_orderbook_ticker	  s&     ..u6IPV.WWWWrV  c                 F   K   | j                  dd|       d {   S 7 wNrW   constituentsr   r  r   s     r1    futures_index_price_constituentsz,AsyncClient.futures_index_price_constituents  r  rV  c                 H   K   | j                  ddd|       d {   S 7 wNrW   forceOrdersTr  r  r   s     r1   futures_liquidation_ordersz&AsyncClient.futures_liquidation_orders  1     ..=F / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   apiTradingStatusTr  r  r   s     r1   futures_api_trading_statusz&AsyncClient.futures_api_trading_status  s2     ..%d / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   commissionRateTr  r  r   s     r1   futures_commission_ratez#AsyncClient.futures_commission_rate#  s2     ..#Dv / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   adlQuantileTr  r  r   s     r1   futures_adl_quantile_estimatez)AsyncClient.futures_adl_quantile_estimate*  r@  r  c                 F   K   | j                  dd|       d {   S 7 wNrW   openInterestr   r  r   s     r1   futures_open_interestz!AsyncClient.futures_open_interest1  r  rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   	indexInfor   r  r   s     r1   futures_index_infozAsyncClient.futures_index_info6  r  rV  c                 F   K   | j                  dd|       d {   S 7 wNrW   openInterestHistr   r$  r   s     r1   futures_open_interest_histz&AsyncClient.futures_open_interest_hist;  0     33%F 4 
 
 	
 
rV  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   leverageBracketTr   r  r   s     r1   futures_leverage_bracketz$AsyncClient.futures_leverage_bracketB  s2     ..$d / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   futures/transferTr   r~  r   s     r1   futures_account_transferz$AsyncClient.futures_account_transferI  s2     --&6 . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   rZ  Tr   r~  r   s     r1   transfer_historyzAsyncClient.transfer_historyP  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfutures/loan/borrow/historyTr   r~  r   s     r1   futures_loan_borrow_historyz'AsyncClient.futures_loan_borrow_historyW  s2     --0$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfutures/loan/repay/historyTr   r~  r   s     r1   futures_loan_repay_historyz&AsyncClient.futures_loan_repay_history^  r  r  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zfutures/loan/walletTr  r  r~  r   s     r1   futures_loan_walletzAsyncClient.futures_loan_wallete  s4     --($VQ . 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z%futures/loan/adjustCollateral/historyTr   r~  r   s     r1   'futures_cross_collateral_adjust_historyz3AsyncClient.futures_cross_collateral_adjust_historyl  s2     --:Dv . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfutures/loan/liquidationHistoryTr   r~  r   s     r1   ,futures_cross_collateral_liquidation_historyz8AsyncClient.futures_cross_collateral_liquidation_historys  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfutures/loan/interestHistoryTr   r~  r   s     r1   futures_loan_interest_historyz)AsyncClient.futures_loan_interest_historyz  r  r  c                   K   |j                  dd      j                         }g d}||v rtd|vr | j                  | j                         z   |d<   |j	                  dd        d|d<   d|v rd	|vr|j	                  d      |d	<   | j                  d
dd|       d {   S d|vr | j                  | j                         z   |d<   | j                  d
dd|       d {   S 7 E7 w)Nr5  ru   STOPSTOP_MARKETTAKE_PROFITTAKE_PROFIT_MARKETTRAILING_STOP_MARKETclientAlgoIdr,  CONDITIONALalgoType	stopPricetriggerPricer   	algoOrderTr   r-  )rW   r]   CONTRACT_ORDER_PREFIXr0  r_   r   r/   rX   
order_typeconditional_typess       r1   futures_create_orderz AsyncClient.futures_create_order  s     ZZ+113

 **V+)-)C)Cdkkm)S~&JJ)40!.F:f$v)E)/K)@~&226;SY2ZZZ "/-1-G-G$++--W)*2267Dv2VVV [
 Ws%   BC$C A C$C"C$"C$c                    K   d|vr | j                   | j                         z   |d<   d|d<   | j                  ddd|       d{   S 7 w)	zSend in a new futures limit order.

        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api

        r,  LIMITr5  r   r-  Tr   Nrw  r0  r   r   s     r1   futures_limit_orderzAsyncClient.futures_limit_order  sU      V+)-)C)Cdkkm)SF%& v..vw6.RRRR   AAA	Ac                    K   d|vr | j                   | j                         z   |d<   d|d<   | j                  ddd|       d{   S 7 w)	zSend in a new futures market order.

        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api

        r,  MARKETr5  r   r-  Tr   Nr~  r   s     r1   futures_market_orderz AsyncClient.futures_market_order  sU      V+)-)C)Cdkkm)SF%&!v..vw6.RRRRr  c                    K   d|vr | j                   | j                         z   |d<   d|d<   d|d<   | j                  ddd|	       d
{   S 7 w)zSend in a new futures limit buy order.

        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api

        r,  BUYr=  r}  r5  r   r-  Tr   Nr~  r   s     r1   futures_limit_buy_orderz#AsyncClient.futures_limit_buy_order  s^      V+)-)C)Cdkkm)SF%&v v..vw6.RRRR   AA	A
Ac                    K   d|vr | j                   | j                         z   |d<   d|d<   d|d<   | j                  ddd|	       d
{   S 7 w)zSend in a new futures limit sell order.

        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api

        r,  SELLr=  r}  r5  r   r-  Tr   Nr~  r   s     r1   futures_limit_sell_orderz$AsyncClient.futures_limit_sell_order  s^      V+)-)C)Cdkkm)SF%&v v..vw6.RRRRr  c                    K   d|vr | j                   | j                         z   |d<   d|d<   d|d<   | j                  ddd|	       d
{   S 7 w)zSend in a new futures market buy order.

        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api

        r,  r  r=  r  r5  r   r-  Tr   Nr~  r   s     r1   futures_market_buy_orderz$AsyncClient.futures_market_buy_order  s^      V+)-)C)Cdkkm)SF%&v!v..vw6.RRRRr  c                    K   d|vr | j                   | j                         z   |d<   d|d<   d|d<   | j                  ddd|	       d
{   S 7 w)zSend in a new futures market sell order.

        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/rest-api

        r,  r  r=  r  r5  r   r-  Tr   Nr~  r   s     r1   futures_market_sell_orderz%AsyncClient.futures_market_sell_order  s^      V+)-)C)Cdkkm)SF%&v!v..vw6.RRRRr  c                 H   K   | j                  ddd|       d{   S 7 w)zModify an existing order. Currently only LIMIT order modification is supported.

        https://binance-docs.github.io/apidocs/futures/en/#modify-order-trade

        r   r-  Tr   Nr  r   s     r1   futures_modify_orderz AsyncClient.futures_modify_order  s(      ..ugt&.QQQQr  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   rS  Tr   r  r   s     r1   futures_create_test_orderz%AsyncClient.futures_create_test_order  '     ..v|TPV.WWWWr  c                 0  K   |d   D ]8  }d|vs| j                   | j                         z   |d<   | j                  |      }: t        |      j	                  dd      j	                  dd      }|dd  |d<   | j                  ddd	|d	
       d {   S 7 w)NbatchOrdersr,  z%40@%27%22   r   TrV   rQ   )rw  r0  _order_paramsr	   replacer   r/   rX   r-  query_strings       r1   futures_place_batch_orderz%AsyncClient.futures_place_batch_order  s     M* 	2E!.,0,F,F,V()**51	2 !(00<DDUER ,RS 1}..M4f4 / 
 
 	
 
s   BA?BBBc                    K   |j                  dd      }d|v sd|v rd}|r| j                  ddd|       d {   S | j                  dd	d|       d {   S 7 !7 w)
NconditionalFalgoIdrq  TrW   rv  r   r-  r_   r   r/   rX   is_conditionals      r1   futures_get_orderzAsyncClient.futures_get_order	  sr     M59v6!9!N225+tRX2YYY225'4f2UUU ZU!   7AAAAAAc                    K   |j                  dd      }|r| j                  ddd|       d {   S | j                  ddd|       d {   S 7 !7 w)Nr  FrW   openAlgoOrdersTr   rb  r  r  s      r1   futures_get_open_ordersz#AsyncClient.futures_get_open_orders	  s`     M59225:JDW]2^^^225,SY2ZZZ _Z!   -AAAAAAc                    K   |j                  dd      }|r| j                  ddd|       d {   S | j                  ddd|       d {   S 7 !7 w)Nr  FrW   allAlgoOrdersTr   r[  r  r  s      r1   futures_get_all_ordersz"AsyncClient.futures_get_all_orders	  s_     M59225/4V\2]]]225+tRX2YYY ^Yr  c                    K   |j                  dd      }d|v sd|v rd}|r| j                  ddd|       d {   S | j                  dd	d|       d {   S 7 !7 w)
Nr  Fr  rq  Tr   rv  r   r-  r  r  s      r1   futures_cancel_orderz AsyncClient.futures_cancel_order%	  ss     M59v6!9!N228[$U[2\\\228WdQW2XXX ]Xr  c                    K   |j                  dd      }|r| j                  ddd|       d {   S | j                  ddd|       d {   S 7 !7 w)Nr  Fr   algoOpenOrdersTr   allOpenOrdersr  r  s      r1   futures_cancel_all_open_ordersz*AsyncClient.futures_cancel_all_open_orders3	  ss     M5922*Dv 3    22/4f 3   	r  c                    K   |j                  d      rt        t        |d               |d<   |j                  d      rt        t        |d               |d<   | j                  ddd|d       d {   S 7 w)Norderidlistorigclientorderidlistr   r  Tr  )rW   r
   r   r   r   s     r1   futures_cancel_ordersz!AsyncClient.futures_cancel_ordersA	  s     ::m$$)*6-+@A%F=! ::-..3*62I+JK/F*+ ..mTT / 
 
 	
 
s   A0A92A73A9c                 H   K   | j                  ddd|       d {   S 7 w)Nr   countdownCancelAllTr   r  r   s     r1   futures_countdown_cancel_allz(AsyncClient.futures_countdown_cancel_allP	  s2     ..($V / 
 
 	
 
r  c                    K   d|vr | j                   | j                         z   |d<   d|vrd|d<   | j                  ddd|       d {   S 7 w)Nrq  rs  rr  r   rv  Tr   r~  r   s     r1   futures_create_algo_orderz%AsyncClient.futures_create_algo_orderY	  s[     '%)%?%?$++-%OF>"V#!.F:..v{Dv.VVVVs   AAA	Ac                 H   K   | j                  ddd|       d {   S 7 w)Nr   rv  Tr   r  r   s     r1   futures_cancel_algo_orderz%AsyncClient.futures_cancel_algo_orderb	  s'     ..xdQW.XXXXr  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr   r  r   s     r1   #futures_cancel_all_algo_open_ordersz/AsyncClient.futures_cancel_all_algo_open_ordersg	  s2     ..&6 / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   rv  Tr   r  r   s     r1   futures_get_algo_orderz"AsyncClient.futures_get_algo_ordern	  s&     ..uk4f.UUUUr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr   r  r   s     r1   futures_get_open_algo_ordersz(AsyncClient.futures_get_open_algo_orderss	  s(     ..u6FSY.ZZZZr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr   r  r   s     r1   futures_get_all_algo_ordersz'AsyncClient.futures_get_all_algo_ordersx	  '     ..uotRX.YYYYr  c                 J   K   | j                  dddd|       d {   S 7 w)NrW   balanceTr  r3  r  r   s     r1   futures_account_balancez#AsyncClient.futures_account_balance}	  3     ..9dAF / 
 
 	
 
r   c                 J   K   | j                  dddd|       d {   S 7 w)NrW   ri  Tr  r3  r  r   s     r1   futures_accountzAsyncClient.futures_account	  r  r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   symbolAdlRiskTr   r  r   s     r1   futures_symbol_adl_riskz#AsyncClient.futures_symbol_adl_risk	  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   leverageTr   r  r   s     r1   futures_change_leveragez#AsyncClient.futures_change_leverage	  s&     ..vz4f.UUUUr  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   
marginTypeTr   r  r   s     r1   futures_change_margin_typez&AsyncClient.futures_change_margin_type	  r  r  c                 H   K   | j                  ddd|       d {   S 7 wNr   positionMarginTr   r  r   s     r1   futures_change_position_marginz*AsyncClient.futures_change_position_margin	  s2     ..$d / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wNrW   zpositionMargin/historyTr   r  r   s     r1   futures_position_margin_historyz+AsyncClient.futures_position_margin_history	  s2     ..+T / 
 
 	
 
r  c                 J   K   | j                  dddd|       d {   S 7 w)NrW   positionRiskTr  r3  r  r   s     r1   futures_position_informationz(AsyncClient.futures_position_information	  s3     ..>4 / 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 wNrW   
userTradesTr   r  r   s     r1   futures_account_tradesz"AsyncClient.futures_account_trades	  s&     ..ulDv.VVVVr  c                 H   K   | j                  ddd|       d {   S 7 wNrW   incomeTr   r  r   s     r1   futures_income_historyz"AsyncClient.futures_income_history	  s&     ..uh6.RRRRr  c                 H   K   | j                  ddd|       d {   S 7 wNr   positionSide/dualTr   r  r   s     r1   futures_change_position_modez(AsyncClient.futures_change_position_mode	  s2     ..'F / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wNrW   r  Tr   r  r   s     r1   futures_get_position_modez%AsyncClient.futures_get_position_mode	  s2     ..&6 / 
 
 	
 
r  multiAssetsMarginc                 X   K   d|rdndi}| j                  ddd|       d {   S 7 w)Nr  rk  falser   Tr   r  )r/   r  rX   s      r1    futures_change_multi_assets_modez,AsyncClient.futures_change_multi_assets_mode	  sA     %1BvP..'F / 
 
 	
 
s   !*(*c                 H   K   | j                  dddi        d {   S 7 w)NrW   r  Tr   r  rN   s    r1   futures_get_multi_assets_modez)AsyncClient.futures_get_multi_assets_mode	  s2     ..&2 / 
 
 	
 
r  c                 R   K   | j                  dddi        d {   }|d   S 7 	wNr   r  Fr  r  r  s     r1   futures_stream_get_listen_keyz)AsyncClient.futures_stream_get_listen_key	  s;     --KB . 
 
 ;
   '%
'c                 P   K   d|i}| j                  ddd|       d {   S 7 wNr  r   Fr  r  r  s      r1   futures_stream_keepalivez$AsyncClient.futures_stream_keepalive	  s;     y)..;u6 / 
 
 	
 
   &$&c                 P   K   d|i}| j                  ddd|       d {   S 7 wNr  r   Fr  r  r  s      r1   futures_stream_closez AsyncClient.futures_stream_close	  s;     y)..k%f / 
 
 	
 
r  c                 J   K   | j                  dddd|       d {   S 7 w)NrW   accountConfigTr   rP   r   rV   r  r   s     r1   futures_account_configz"AsyncClient.futures_account_config	  s3     ..?4 / 
 
 	
 
r   c                 J   K   | j                  dddd|       d {   S 7 w)NrW   symbolConfigTr   r  r  r   s     r1   futures_symbol_configz!AsyncClient.futures_symbol_config	  s3     ..>$ / 
 
 	
 
r   c                 B   K   | j                  dd       d {   S 7 wr  r   rN   s    r1   futures_coin_pingzAsyncClient.futures_coin_ping	       33E6BBBBr  c                 B   K   | j                  dd       d {   S 7 wr  r
  rN   s    r1   futures_coin_timezAsyncClient.futures_coin_time
  r  r  c                 B   K   | j                  dd       d {   S 7 wr  r
  rN   s    r1   futures_coin_exchange_infoz&AsyncClient.futures_coin_exchange_info	
  s     33E>JJJJr  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_order_bookz#AsyncClient.futures_coin_order_book
  s$     33E73PPPPrV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_recent_tradesz&AsyncClient.futures_coin_recent_trades
  $     33E8&3QQQQrV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_historical_tradesz*AsyncClient.futures_coin_historical_trades
  rU  rV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_aggregate_tradesz)AsyncClient.futures_coin_aggregate_trades
  s$     33E;V3TTTTrV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   r   zAsyncClient.futures_coin_klines$
  r  rV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_continous_klinesz)AsyncClient.futures_coin_continous_klines)
  rU  rV  c                 F   K   | j                  dd|       d {   S 7 wr
  r
  r   s     r1   r   z+AsyncClient.futures_coin_index_price_klines0
  rU  rV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   r   z*AsyncClient.futures_coin_mark_price_klines7
  s0     33$6 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   !futures_coin_premium_index_klinesz-AsyncClient.futures_coin_premium_index_klines>
  s0     33'f 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_mark_pricez#AsyncClient.futures_coin_mark_priceG
  %     33E>PV3WWWWrV  c                 F   K   | j                  dd|       d {   S 7 wr  r
  r   s     r1   futures_coin_funding_ratez%AsyncClient.futures_coin_funding_rateL
  $     33E=v3VVVVrV  c                 F   K   | j                  dd|       d {   S 7 wr0  r
  r   s     r1   futures_coin_tickerzAsyncClient.futures_coin_tickerQ
  r&  rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   r   r   r
  r   s     r1   futures_coin_symbol_tickerz&AsyncClient.futures_coin_symbol_tickerV
  r#  rV  c                 F   K   | j                  dd|       d {   S 7 wr6  r
  r   s     r1   futures_coin_orderbook_tickerz)AsyncClient.futures_coin_orderbook_ticker[
  s0     33&V 4 
 
 	
 
rV  c                 F   K   | j                  dd|       d {   S 7 wr9  r
  r   s     r1   %futures_coin_index_price_constituentsz1AsyncClient.futures_coin_index_price_constituentsb
  r#  rV  c                 H   K   | j                  ddd|       d {   S 7 wr=  r
  r   s     r1   futures_coin_liquidation_ordersz+AsyncClient.futures_coin_liquidation_ordersi
  s1     33=F 4 
 
 	
 
r  c                 F   K   | j                  dd|       d {   S 7 wrK  r
  r   s     r1   futures_coin_open_interestz&AsyncClient.futures_coin_open_interestp
  r#  rV  c                 F   K   | j                  dd|       d {   S 7 wrR  )r   r   s     r1   futures_coin_open_interest_histz+AsyncClient.futures_coin_open_interest_histu
  s0     88%F 9 
 
 	
 
rV  c                 J   K   | j                  dddd|       d {   S 7 w)NrW   rW  r  Tr   rP   rV   r
  r   s     r1   futures_coin_leverage_bracketz)AsyncClient.futures_coin_leverage_bracket|
  s4     33$a6 4 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr   r~  r   s     r1   new_transfer_historyz AsyncClient.new_transfer_history
  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zasset/get-funding-assetTr   r~  r   s     r1   funding_walletzAsyncClient.funding_wallet
  r  r  c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zasset/getUserAssetTr  r  r~  r   s     r1   get_user_assetzAsyncClient.get_user_asset
  s4     --($VQ . 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 wr  r~  r   s     r1   universal_transferzAsyncClient.universal_transfer
  r  r  c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d {   S 7 w)Nr,  r   r-  Tr   )rw  r0  r   r   s     r1   futures_coin_create_orderz%AsyncClient.futures_coin_create_order
  sK     V+)-)C)Cdkkm)SF%&33FGTPV3WWWWr   c                    K   |d   D ]'  }d|vs| j                   | j                         z   |d<   ) t        |      }|j                  dd      }|dd  |d<   | j	                  ddd|       d {   S 7 w)	Nr  r,  r  r  r  r   Tr   )rw  r0  r	   r  r   r  s       r1   futures_coin_place_batch_orderz*AsyncClient.futures_coin_place_batch_order
  s     M* 	WE!.,0,F,F,V()	W !(#++E59 ,RS 1}33M4f 4 
 
 	
 
s   A6AA6/A40A6c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r-  Tr   r
  r   s     r1   futures_coin_get_orderz"AsyncClient.futures_coin_get_order
  s&     33E7Dv3VVVVr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   rb  Tr   r
  r   s     r1   futures_coin_get_open_ordersz(AsyncClient.futures_coin_get_open_orders
  1     33<F 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r[  Tr  r
  r   s     r1   futures_coin_get_all_ordersz'AsyncClient.futures_coin_get_all_orders
  s1     33;t& 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wNr   r-  Tr  r
  r   s     r1   futures_coin_cancel_orderz%AsyncClient.futures_coin_cancel_order
  s1     33gd 4 
 
 	
 
r  c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  T)rP   rV   rQ   r
  r   s     r1   #futures_coin_cancel_all_open_ordersz/AsyncClient.futures_coin_cancel_all_open_orders
  s3     33odd 4 
 
 	
 
r   c                    K   |j                  d      rt        t        |d               |d<   |j                  d      rt        t        |d               |d<   | j                  ddd|       d {   S 7 w)Nr  r  r   r  Tr   )rW   r
   r   r   r   s     r1   futures_coin_cancel_ordersz&AsyncClient.futures_coin_cancel_orders
  s     ::m$$)*6-+@A%F=! ::-..3*62I+JK/F*+ 33mT 4 
 
 	
 
s   A/A81A62A8c                 H   K   | j                  ddd|       d {   S 7 wNrW   r  Tr  r
  r   s     r1   futures_coin_account_balancez(AsyncClient.futures_coin_account_balance
  1     339T 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wNrW   ri  Tr  r
  r   s     r1   futures_coin_accountz AsyncClient.futures_coin_account
  rU  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr  r
  r   s     r1   futures_coin_change_leveragez(AsyncClient.futures_coin_change_leverage
  s1     33Jt& 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr  r
  r   s     r1   futures_coin_change_margin_typez+AsyncClient.futures_coin_change_margin_type
  s1     33LF 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wr  r
  r   s     r1   #futures_coin_change_position_marginz/AsyncClient.futures_coin_change_position_margin   s2     33$d 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wr  r
  r   s     r1   $futures_coin_position_margin_historyz0AsyncClient.futures_coin_position_margin_history  s2     33+T 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr   r
  r   s     r1   !futures_coin_position_informationz-AsyncClient.futures_coin_position_information  s1     33>4f 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wr  r
  r   s     r1   futures_coin_account_tradesz'AsyncClient.futures_coin_account_trades  rH  r  c                 H   K   | j                  ddd|       d {   S 7 wr  r
  r   s     r1   futures_coin_income_historyz'AsyncClient.futures_coin_income_history  s'     33E8TPV3WWWWr  c                 H   K   | j                  ddd|       d {   S 7 wr  r
  r   s     r1   !futures_coin_change_position_modez-AsyncClient.futures_coin_change_position_mode!  s2     33'F 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wr  r
  r   s     r1   futures_coin_get_position_modez*AsyncClient.futures_coin_get_position_mode(  s2     33&6 4 
 
 	
 
r  c                 R   K   | j                  dddi        d {   }|d   S 7 	wr  r
  r  s     r1   "futures_coin_stream_get_listen_keyz.AsyncClient.futures_coin_stream_get_listen_key/  s;     22KB 3 
 
 ;
r  c                 P   K   d|i}| j                  ddd|       d {   S 7 wr  r
  r  s      r1   futures_coin_stream_keepalivez)AsyncClient.futures_coin_stream_keepalive7  s;     y)33;u6 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   
order/asynTr   r
  r   s     r1   +futures_coin_account_order_history_downloadz7AsyncClient.futures_coin_account_order_history_download?  rH  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   order/asyn/idTr   r
  r   s     r1   0futures_coin_account_order_history_download_linkz<AsyncClient.futures_coin_account_order_history_download_linkH  1     33?Dv 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   
trade/asynTr   r
  r   s     r1   +futures_coin_account_trade_history_downloadz7AsyncClient.futures_coin_account_trade_history_downloadQ  rH  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   trade/asyn/idTr   r
  r   s     r1   0futures_coin_account_trade_history_download_linkz<AsyncClient.futures_coin_account_trade_history_download_linkZ  ru  r  c                 P   K   d|i}| j                  ddd|       d {   S 7 wr   r
  r  s      r1   futures_coin_stream_closez%AsyncClient.futures_coin_stream_closec  s;     y)33k%f 4 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcapital/config/getallTr   r~  r   s     r1   get_all_coins_infozAsyncClient.get_all_coins_infok  s2     --*Dv . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   accountSnapshotTr   r~  r   s     r1   get_account_snapshotz AsyncClient.get_account_snapshotr  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   disableFastWithdrawSwitchTr   r~  r   s     r1   disable_fast_withdraw_switchz(AsyncClient.disable_fast_withdraw_switchy  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   enableFastWithdrawSwitchTr   r~  r   s     r1   enable_fast_withdraw_switchz'AsyncClient.enable_fast_withdraw_switch  s2     --.6 . 
 
 	
 
r  c                 B   K   | j                  dd       d {   S 7 wr  r   rN   s    r1   options_pingzAsyncClient.options_ping  r  r  c                 B   K   | j                  dd       d {   S 7 wr  r  rN   s    r1   options_timezAsyncClient.options_time  r  r  c                 B   K   | j                  dd       d {   S 7 w)NrW   
optionInfor  rN   s    r1   options_infozAsyncClient.options_info  s     ..ulCCCCr  c                 B   K   | j                  dd       d {   S 7 wr  r  rN   s    r1   options_exchange_infoz!AsyncClient.options_exchange_info  r  r  c                 F   K   | j                  dd|       d {   S 7 w)NrW   indexr   r  r   s     r1   options_index_pricezAsyncClient.options_index_price  r  rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   r'  r   r  r   s     r1   options_pricezAsyncClient.options_price  r  rV  c                 F   K   | j                  dd|       d {   S 7 w)NrW   markr   r  r   s     r1   options_mark_pricezAsyncClient.options_mark_price  s$     ..uf6.JJJJrV  c                 F   K   | j                  dd|       d {   S 7 wr  r  r   s     r1   options_order_bookzAsyncClient.options_order_book  r  rV  c                 F   K   | j                  dd|       d {   S 7 wr  r  r   s     r1   options_klineszAsyncClient.options_klines  r  rV  c                 F   K   | j                  dd|       d {   S 7 wr  r  r   s     r1   options_recent_tradesz!AsyncClient.options_recent_trades  r  rV  c                 F   K   | j                  dd|       d {   S 7 wr  r  r   s     r1   options_historical_tradesz%AsyncClient.options_historical_trades  r  rV  c                 H   K   | j                  ddd|       d {   S 7 wrW  r  r   s     r1   options_account_infoz AsyncClient.options_account_info  s1     ..9T / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   transferTr  r  r   s     r1   options_funds_transferz"AsyncClient.options_funds_transfer  s1     ..Jt& / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   positionTr  r  r   s     r1   options_positionszAsyncClient.options_positions  s1     ..:d / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   billTr  r  r   s     r1   options_billzAsyncClient.options_bill  s'     ..vvdQW.XXXXr  c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d {   S 7 w)NclientOrderIdr   r-  Tr  rw  r0  r   r   s     r1   options_place_orderzAsyncClient.options_place_order  sT     &(&*&@&@4;;=&PF?#..GDv / 
 
 	
 
r   c                    K   |d   D ]'  }d|vs| j                   | j                         z   |d<   ) | j                  ddd|       d {   S 7 w)Nr  r,  r   Tr  r  )r/   rX   r-  s      r1   options_place_batch_orderz%AsyncClient.options_place_batch_order  sm     M* 	WE!.,0,F,F,V()	W ..M$V / 
 
 	
 
s   A:A
AAc                 H   K   | j                  ddd|       d {   S 7 wrL  r  r   s     r1   options_cancel_orderz AsyncClient.options_cancel_order  s1     ..gd / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr  r  r   s     r1   options_cancel_batch_orderz&AsyncClient.options_cancel_batch_order  s1     ..mDv / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr  r  r   s     r1   options_cancel_all_ordersz%AsyncClient.options_cancel_all_orders  s1     ..od / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r-  Tr  r  r   s     r1   options_query_orderzAsyncClient.options_query_order
  s'     ..ugdQW.XXXXr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   rb  Tr  r  r   s     r1   options_query_pending_ordersz(AsyncClient.options_query_pending_orders  1     ..<6 / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   historyOrdersTr  r  r   s     r1   options_query_order_historyz'AsyncClient.options_query_order_history  s1     ..?4f / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r  r   s     r1   options_user_tradeszAsyncClient.options_user_trades  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfiat/ordersTr  r~  r   s     r1   !get_fiat_deposit_withdraw_historyz-AsyncClient.get_fiat_deposit_withdraw_history&  r1  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfiat/paymentsTr  r~  r   s     r1   get_fiat_payments_historyz%AsyncClient.get_fiat_payments_history-  s1     --?4f . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z#c2c/orderMatch/listUserOrderHistoryTr  r~  r   s     r1   get_c2c_trade_historyz!AsyncClient.get_c2c_trade_history6  s2     --8F . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zpay/transactionsTr  r~  r   s     r1   get_pay_trade_historyz!AsyncClient.get_pay_trade_history?  rF  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zconvert/tradeFlowTr  r~  r   s     r1   get_convert_trade_historyz%AsyncClient.get_convert_trade_historyH  rB  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   convert/getQuoteTr  r~  r   s     r1   convert_request_quotez!AsyncClient.convert_request_quoteO  rR  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   convert/acceptQuoteTr  r~  r   s     r1   convert_accept_quotez AsyncClient.convert_accept_quoteV  r+  r  c                 R   K   | j                  dddi        d {   }|d   S 7 	wr  r   r  s     r1   papi_stream_get_listen_keyz&AsyncClient.papi_stream_get_listen_keyc  s4     **6;uSU*VV; Wr  c                 P   K   d|i}| j                  ddd|       d {   S 7 wr  r  r  s      r1   papi_stream_keepalivez!AsyncClient.papi_stream_keepalivei  s;     y)++;u6 , 
 
 	
 
r  c                 P   K   d|i}| j                  ddd|       d {   S 7 wr   r  r  s      r1   papi_stream_closezAsyncClient.papi_stream_closeq  s;     y)++k%f , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wrS  r  r   s     r1   papi_get_balancezAsyncClient.papi_get_balancey  '     ++E9TPV+WWWWr  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   ru  Tr  r  r   s     r1   papi_get_rate_limitzAsyncClient.papi_get_rate_limit}  s(     ++E3DTX^+____r  c                 H   K   | j                  ddd|       d {   S 7 wrW  r  r   s     r1   papi_get_accountzAsyncClient.papi_get_account  r  r  c                 H   K   | j                  ddd|       d {   S 7 wrK  r  r   s     r1   papi_get_margin_max_borrowablez*AsyncClient.papi_get_margin_max_borrowable  2     ++)$V , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/maxWithdrawTr  r  r   s     r1   papi_get_margin_max_withdrawz(AsyncClient.papi_get_margin_max_withdraw  2     ++'6 , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/positionRiskTr  r  r   s     r1   papi_get_um_position_riskz%AsyncClient.papi_get_um_position_risk  2     ++$T , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcm/positionRiskTr  r  r   s     r1   papi_get_cm_position_riskz%AsyncClient.papi_get_cm_position_risk  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zum/leverageTr  r  r   s     r1   papi_set_um_leveragez AsyncClient.papi_set_um_leverage  1     ++M$V , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zcm/leverageTr  r  r   s     r1   papi_set_cm_leveragez AsyncClient.papi_set_cm_leverage  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   um/positionSide/dualTr  r  r   s     r1   !papi_change_um_position_side_dualz-AsyncClient.papi_change_um_position_side_dual  2     ++*4f , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r  r   s     r1   papi_get_um_position_side_dualz*AsyncClient.papi_get_um_position_side_dual  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcm/positionSide/dualTr  r  r   s     r1   papi_get_cm_position_side_dualz*AsyncClient.papi_get_cm_position_side_dual  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/leverageBracketTr  r  r   s     r1   papi_get_um_leverage_bracketz(AsyncClient.papi_get_um_leverage_bracket  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcm/leverageBracketTr  r  r   s     r1   papi_get_cm_leverage_bracketz(AsyncClient.papi_get_cm_leverage_bracket  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/apiTradingStatusTr  r  r   s     r1   papi_get_um_api_trading_statusz*AsyncClient.papi_get_um_api_trading_status  s2     ++(F , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/commissionRateTr  r  r   s     r1   papi_get_um_comission_ratez&AsyncClient.papi_get_um_comission_rate  2     ++&t& , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zcm/commissionRateTr  r  r   s     r1   papi_get_cm_comission_ratez&AsyncClient.papi_get_cm_comission_rate  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/marginLoanTr  r  r   s     r1   papi_get_margin_margin_loanz'AsyncClient.papi_get_margin_margin_loan  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/repayLoanTr  r  r   s     r1   papi_get_margin_repay_loanz&AsyncClient.papi_get_margin_repay_loan  2     ++%d , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   repay-futures-switchTr  r  r   s     r1   papi_get_repay_futures_switchz)AsyncClient.papi_get_repay_futures_switch  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr  r  r   s     r1   papi_repay_futures_switchz%AsyncClient.papi_repay_futures_switch  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/marginInterestHistoryTr  r  r   s     r1    papi_get_margin_interest_historyz,AsyncClient.papi_get_margin_interest_history  s2     ++1$V , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zrepay-futures-negative-balanceTr  r  r   s     r1   #papi_repay_futures_negative_balancez/AsyncClient.papi_repay_futures_negative_balance  s2     ++4T , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zportfolio/interest-historyTr  r  r   s     r1   #papi_get_portfolio_interest_historyz/AsyncClient.papi_get_portfolio_interest_history  s2     ++/6 , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z*portfolio/negative-balance-exchange-recordTr  r  r   s     r1   3papi_get_portfolio_negative_balance_exchange_recordz?AsyncClient.papi_get_portfolio_negative_balance_exchange_record  s3     ++?SY , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zauto-collectionTr  r  r   s     r1   papi_fund_auto_collectionz%AsyncClient.papi_fund_auto_collection   s2     ++%d , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zasset-collectionTr  r  r   s     r1   papi_fund_asset_collectionz&AsyncClient.papi_fund_asset_collection'  s2     ++&t& , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zbnb-transferTr  r  r   s     r1   papi_bnb_transferzAsyncClient.papi_bnb_transfer.  s1     ++N4f , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z	um/incomeTr  r  r   s     r1   papi_get_um_income_historyz&AsyncClient.papi_get_um_income_history5  1     ++;t& , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z	cm/incomeTr  r  r   s     r1   papi_get_cm_income_historyz&AsyncClient.papi_get_cm_income_history<  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   
um/accountTr  r  r   s     r1   papi_get_um_accountzAsyncClient.papi_get_um_accountC  1     ++<6 , 
 
 	
 
r  c                 J   K   | j                  dddd|       d {   S 7 w)NrW   r#  r  Tr6  r  r   s     r1   papi_get_um_account_v2z"AsyncClient.papi_get_um_account_v2J  s3     ++<4f , 
 
 	
 
r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z
cm/accountTr  r  r   s     r1   papi_get_cm_accountzAsyncClient.papi_get_cm_accountQ  r%  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/accountConfigTr  r  r   s     r1   papi_get_um_account_configz&AsyncClient.papi_get_um_account_configX  r	  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/symbolConfigTr  r  r   s     r1   papi_get_um_symbol_configz%AsyncClient.papi_get_um_symbol_config_  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/trade/asynTr  r  r   s     r1   papi_get_um_trade_asynz"AsyncClient.papi_get_um_trade_asynf  1     ++?4f , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/trade/asyn/idTr  r  r   s     r1   papi_get_um_trade_asyn_idz%AsyncClient.papi_get_um_trade_asyn_idm  r	  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/order/asynTr  r  r   s     r1   papi_get_um_order_asynz"AsyncClient.papi_get_um_order_asynt  r0  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/order/asyn/idTr  r  r   s     r1   papi_get_um_order_asyn_idz%AsyncClient.papi_get_um_order_asyn_id{  r	  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/income/asynTr  r  r   s     r1   papi_get_um_income_asynz#AsyncClient.papi_get_um_income_asyn  s2     ++#Dv , 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zum/income/asyn/idTr  r  r   s     r1   papi_get_um_income_asyn_idz&AsyncClient.papi_get_um_income_asyn_id  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r6   Fr  r  r   s     r1   	papi_pingzAsyncClient.papi_ping  s&     ++E6%f+UUUUr  c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d{   S 7 w)zPlace new UM order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade

        :returns: API response

        r,  r   um/orderTr  Nrw  r0  r   r   s     r1   papi_create_um_orderz AsyncClient.papi_create_um_order  W      V+)-)C)Cdkkm)SF%&++Jt& , 
 
 	
 
r   c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d{   S 7 w)zPlace new UM Conditional order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-UM-Conditional-Order

        :returns: API response

        r,  r   um/conditional/orderTr  Nr?  r   s     r1    papi_create_um_conditional_orderz,AsyncClient.papi_create_um_conditional_order  X      V+)-)C)Cdkkm)SF%&++*4f , 
 
 	
 
r   c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d{   S 7 w)zPlace new CM order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Order

        :returns: API response

        r,  r   cm/orderTr  Nr?  r   s     r1   papi_create_cm_orderz AsyncClient.papi_create_cm_order  rA  r   c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d{   S 7 w)zPlace new CM Conditional order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-CM-Conditional-Order

        :returns: API response

        r,  r   cm/conditional/orderTr  Nr?  r   s     r1    papi_create_cm_conditional_orderz,AsyncClient.papi_create_cm_conditional_order  rE  r   c                    K   d|vr | j                   | j                         z   |d<   | j                  ddd|       d{   S 7 w)zNew Margin Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/New-Margin-Order

        :returns: API response

        r,  r   r"  Tr  Nr?  r   s     r1   papi_create_margin_orderz$AsyncClient.papi_create_margin_order  sW      V+)-)C)Cdkkm)SF%&++N4f , 
 
 	
 
r   c                 H   K   | j                  ddd|       d{   S 7 w)zApply for a margin loan.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Borrow

        :returns: API response

        r   
marginLoanTr  Nr  r   s     r1   papi_margin_loanzAsyncClient.papi_margin_loan  3      ++LF , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zRepay for a margin loan.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Repay

        :returns: API response

        r   	repayLoanTr  Nr  r   s     r1   papi_repay_loanzAsyncClient.papi_repay_loan  s3      ++K6 , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zSend in a new OCO for a margin account.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-New-OCO

        :returns: API response

        r   rP  Tr  Nr  r   s     r1   papi_margin_order_ocoz!AsyncClient.papi_margin_order_oco  s4      ++&t& , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel an active UM LIMIT order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Order

        :returns: API response

        r   r>  Tr  Nr  r   s     r1   papi_cancel_um_orderz AsyncClient.papi_cancel_um_order  3      ++jF , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel an active UM LIMIT order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Orders

        :returns: API response

        r   zum/allOpenOrdersTr  Nr  r   s     r1   papi_cancel_um_all_open_ordersz*AsyncClient.papi_cancel_um_all_open_orders  4      ++(F , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel UM Conditional Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-UM-Conditional-Order

        :returns: API response

        r   rC  Tr  Nr  r   s     r1    papi_cancel_um_conditional_orderz,AsyncClient.papi_cancel_um_conditional_order  4      ++,T , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel All UM Open Conditional Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-UM-Open-Conditional-Orders

        :returns: API response

        r   zum/conditional/allOpenOrdersTr  Nr  r   s     r1   *papi_cancel_um_conditional_all_open_ordersz6AsyncClient.papi_cancel_um_conditional_all_open_orders%  4      ++4T , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel an active CM LIMIT order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Order

        :returns: API response

        r   rG  Tr  Nr  r   s     r1   papi_cancel_cm_orderz AsyncClient.papi_cancel_cm_order1  rY  r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel an active CM LIMIT order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Orders

        :returns: API response

        r   zcm/allOpenOrdersTr  Nr  r   s     r1   papi_cancel_cm_all_open_ordersz*AsyncClient.papi_cancel_cm_all_open_orders=  r\  r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel CM Conditional Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-CM-Conditional-Order

        :returns: API response

        r   rJ  Tr  Nr  r   s     r1    papi_cancel_cm_conditional_orderz,AsyncClient.papi_cancel_cm_conditional_orderI  r_  r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel All CM Open Conditional Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-All-CM-Open-Conditional-Orders

        :returns: API response

        r   zcm/conditional/allOpenOrdersTr  Nr  r   s     r1   *papi_cancel_cm_conditional_all_open_ordersz6AsyncClient.papi_cancel_cm_conditional_all_open_ordersU  rb  r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel Margin Account Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-Order

        :returns: API response

        r   r"  Tr  Nr  r   s     r1   papi_cancel_margin_orderz$AsyncClient.papi_cancel_margin_ordera  s3      ++nT , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel Margin Account OCO Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-OCO-Orders

        :returns: API response

        r   rT  Tr  Nr  r   s     r1   papi_cancel_margin_order_listz)AsyncClient.papi_cancel_margin_order_listm  r\  r  c                 H   K   | j                  ddd|       d{   S 7 w)zCancel Margin Account All Open Orders on a Symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Cancel-Margin-Account-All-Open-Orders-on-a-Symbol

        :returns: API response

        r   zmargin/allOpenOrdersTr  Nr  r   s     r1   "papi_cancel_margin_all_open_ordersz.AsyncClient.papi_cancel_margin_all_open_ordersy  r_  r  c                 H   K   | j                  ddd|       d{   S 7 w)a  Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-UM-Order

        :returns: API response

        r   r>  Tr  Nr  r   s     r1   papi_modify_um_orderz AsyncClient.papi_modify_um_order  )      ++E:dQW+XXXXr  c                 H   K   | j                  ddd|       d{   S 7 w)a  Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Modify-CM-Order

        :returns: API response

        r   rG  Tr  Nr  r   s     r1   papi_modify_cm_orderz AsyncClient.papi_modify_cm_order  rs  r  c                 H   K   | j                  ddd|       d{   S 7 w)zCheck an UM order's status.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order

        :returns: API response

        rW   r>  Tr  Nr  r   s     r1   papi_get_um_orderzAsyncClient.papi_get_um_order  rs  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all account UM orders; active, canceled, or filled.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Order

        :returns: API response

        rW   zum/allOrdersTr  Nr  r   s     r1   papi_get_um_all_ordersz"AsyncClient.papi_get_um_all_orders  3      ++>$V , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery current UM open order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Order

        :returns: API response

        rW   zum/openOrderTr  Nr  r   s     r1   papi_get_um_open_orderz"AsyncClient.papi_get_um_open_order  rz  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all open orders on a symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Orders

        :returns: API response

        rW   zum/openOrdersTr  Nr  r   s     r1   papi_get_um_open_ordersz#AsyncClient.papi_get_um_open_orders  3      ++?4f , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery All UM Conditional Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-UM-Conditional-Orders

        :returns: API response

        rW   zum/conditional/allOrdersTr  Nr  r   s     r1   "papi_get_um_conditional_all_ordersz.AsyncClient.papi_get_um_conditional_all_orders  4      ++-d , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all open conditional orders on a symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-UM-Open-Conditional-Orders

        :returns: API response

        rW   zum/conditional/openOrdersTr  Nr  r   s     r1   #papi_get_um_conditional_open_ordersz/AsyncClient.papi_get_um_conditional_open_orders  4      ++.t& , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery Current UM Open Conditional Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-UM-Open-Conditional-Order

        :returns: API response

        rW   zum/conditional/openOrderTr  Nr  r   s     r1   "papi_get_um_conditional_open_orderz.AsyncClient.papi_get_um_conditional_open_order  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all open conditional orders on a symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Conditional-Order-History

        :returns: API response

        rW   zum/conditional/orderHistoryTr  Nr  r   s     r1   %papi_get_um_conditional_order_historyz1AsyncClient.papi_get_um_conditional_order_history  4      ++0F , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zCheck an CM order's status.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order

        :returns: API response

        rW   rG  Tr  Nr  r   s     r1   papi_get_cm_orderzAsyncClient.papi_get_cm_order  rs  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all account CM orders; active, canceled, or filled.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Order

        :returns: API response

        rW   zcm/allOrdersTr  Nr  r   s     r1   papi_get_cm_all_ordersz"AsyncClient.papi_get_cm_all_orders  rz  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery current CM open order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Order

        :returns: API response

        rW   zcm/openOrderTr  Nr  r   s     r1   papi_get_cm_open_orderz"AsyncClient.papi_get_cm_open_order  rz  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all open orders on a symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Orders

        :returns: API response

        rW   zcm/openOrdersTr  Nr  r   s     r1   papi_get_cm_open_ordersz#AsyncClient.papi_get_cm_open_orders  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery All CM Conditional Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-CM-Conditional-Orders

        :returns: API response

        rW   zcm/conditional/allOrdersTr  Nr  r   s     r1   "papi_get_cm_conditional_all_ordersz.AsyncClient.papi_get_cm_conditional_all_orders%  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all open conditional orders on a symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Current-CM-Open-Conditional-Orders

        :returns: API response

        rW   zcm/conditional/openOrdersTr  Nr  r   s     r1   #papi_get_cm_conditional_open_ordersz/AsyncClient.papi_get_cm_conditional_open_orders1  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery Current UM Open Conditional Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Current-CM-Open-Conditional-Order

        :returns: API response

        rW   zcm/conditional/openOrderTr  Nr  r   s     r1   "papi_get_cm_conditional_open_orderz.AsyncClient.papi_get_cm_conditional_open_order=  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet all open conditional orders on a symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Conditional-Order-History

        :returns: API response

        rW   zcm/conditional/orderHistoryTr  Nr  r   s     r1   %papi_get_cm_conditional_order_historyz1AsyncClient.papi_get_cm_conditional_order_historyI  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery User's UM Force Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-UM-Force-Orders

        :returns: API response

        rW   zum/forceOrdersTr  Nr  r   s     r1   papi_get_um_force_ordersz$AsyncClient.papi_get_um_force_ordersU  4      ++#Dv , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery User's CM Force Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-CM-Force-Orders

        :returns: API response

        rW   zcm/forceOrdersTr  Nr  r   s     r1   papi_get_cm_force_ordersz$AsyncClient.papi_get_cm_force_ordersa  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet order modification history.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-UM-Modify-Order-History

        :returns: API response

        rW   zum/orderAmendmentTr  Nr  r   s     r1   papi_get_um_order_amendmentz'AsyncClient.papi_get_um_order_amendmentm  4      ++&t& , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet order modification history.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-CM-Modify-Order-History

        :returns: API response

        rW   zcm/orderAmendmentTr  Nr  r   s     r1   papi_get_cm_order_amendmentz'AsyncClient.papi_get_cm_order_amendmenty  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery user's margin force orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Users-Margin-Force-Orders

        :returns: API response

        rW   zmargin/forceOrdersTr  Nr  r   s     r1   papi_get_margin_force_ordersz(AsyncClient.papi_get_margin_force_orders  s4      ++'6 , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet trades for a specific account and UM symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Account-Trade-List

        :returns: API response

        rW   zum/userTradesTr  Nr  r   s     r1   papi_get_um_user_tradesz#AsyncClient.papi_get_um_user_trades  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet trades for a specific account and CM symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Account-Trade-List

        :returns: API response

        rW   zcm/userTradesTr  Nr  r   s     r1   papi_get_cm_user_tradesz#AsyncClient.papi_get_cm_user_trades  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery UM Position ADL Quantile Estimation.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/UM-Position-ADL-Quantile-Estimation

        :returns: API response

        rW   zum/adlQuantileTr  Nr  r   s     r1   papi_get_um_adl_quantilez$AsyncClient.papi_get_um_adl_quantile  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery CM Position ADL Quantile Estimation.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/CM-Position-ADL-Quantile-Estimation

        :returns: API response

        rW   zcm/adlQuantileTr  Nr  r   s     r1   papi_get_cm_adl_quantilez$AsyncClient.papi_get_cm_adl_quantile  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)a  Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on EVERY symbol.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Toggle-BNB-Burn-On-UM-Futures-Trade

        :returns: API response

        r   
um/feeBurnTr  Nr  r   s     r1   papi_set_um_fee_burnz AsyncClient.papi_set_um_fee_burn  rQ  r  c                 H   K   | j                  ddd|       d{   S 7 w)zGet user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off).

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Get-UM-Futures-BNB-Burn-Status

        :returns: API response

        rW   r  Tr  Nr  r   s     r1   papi_get_um_fee_burnz AsyncClient.papi_get_um_fee_burn  s3      ++<6 , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery Margin Account Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Order

        :returns: API response

        rW   r"  Tr  Nr  r   s     r1   papi_get_margin_orderz!AsyncClient.papi_get_margin_order  rz  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery Current Margin Open Order.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Order

        :returns: API response

        rW   r'  Tr  Nr  r   s     r1   papi_get_margin_open_ordersz'AsyncClient.papi_get_margin_open_orders  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery All Margin Account Orders.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-All-Margin-Account-Orders

        :returns: API response

        rW   rD  Tr  Nr  r   s     r1   papi_get_margin_all_ordersz&AsyncClient.papi_get_margin_all_orders  4      ++%d , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zRetrieves a specific OCO based on provided optional parameters.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-OCO

        :returns: API response

        rW   rT  Tr  Nr  r   s     r1   papi_get_margin_order_listz&AsyncClient.papi_get_margin_order_list  r  r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery all OCO for a specific margin account based on provided optional parameters.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-all-OCO

        :returns: API response

        rW   margin/allOrderListTr  Nr  r   s     r1   papi_get_margin_all_order_listz*AsyncClient.papi_get_margin_all_order_list	  s4      ++(F , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zQuery Margin Account's Open OCO.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Query-Margin-Account-Open-OCO

        :returns: API response

        rW   rY  Tr  Nr  r   s     r1   papi_get_margin_open_order_listz+AsyncClient.papi_get_margin_open_order_list  s4      ++)$V , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zMargin Account Trade List.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Trade-List

        :returns: API response

        rW   rH  Tr  Nr  r   s     r1   papi_get_margin_my_tradesz%AsyncClient.papi_get_margin_my_trades!  s4      ++$T , 
 
 	
 
r  c                 H   K   | j                  ddd|       d{   S 7 w)zRepay debt for a margin loan.

        https://developers.binance.com/docs/derivatives/portfolio-margin/trade/Margin-Account-Trade-List

        :returns: API response

        r   zmargin/repay-debtTr  Nr  r   s     r1   papi_get_margin_repay_debtz&AsyncClient.papi_get_margin_repay_debt-  s4      ++'6 , 
 
 	
 
r  c                    K   d|vr | j                   | j                         z   |d<   | j                  dd|       d {   S 7 w)NlistClientOrderIdorderList/ocoTr   r.  r   s     r1   rN  zAsyncClient.create_oco_order9  sE     f,*.*@*@4;;=*PF&'ZZFZCCCCr2  c                    K   d|vr | j                   | j                         z   |d<   | j                  dd|       d{   S 7 w)ap  Test new order creation and signature/recvWindow long. Creates and validates a new order but does not send it into the matching engine.
        https://binance-docs.github.io/apidocs/websocket_api/en/#test-new-order-trade
        :param symbol: required
        :type symbol: str
        :param side: required
        :type side: str
        :param type: required
        :type type: str
        :param timeInForce: required if limit order
        :type timeInForce: str
        :param quantity: required
        :type quantity: decimal
        :param price: required
        :type price: str
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param icebergQty: Used with iceberg orders
        :type icebergQty: decimal
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: The number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        .. code-block:: python
            {}
        r,  z
order.testTNr/  r0  _ws_api_requestr   s     r1   ws_create_test_orderz AsyncClient.ws_create_test_orderD  sG     6 V+)-)?)?$++-)OF%&)),fEEEEro  c                    K   d|vr | j                   | j                         z   |d<   | j                  dd|       d{   S 7 w)a  Create an order via WebSocket.
        https://binance-docs.github.io/apidocs/websocket_api/en/#place-new-order-trade
        :param id: The request ID to be used. By default uuid22() is used.
        :param symbol: The symbol to create an order for
        :param side: BUY or SELL
        :param type: Order type (e.g., LIMIT, MARKET)
        :param quantity: The amount to buy or sell
        :param kwargs: Additional order parameters
        r,  order.placeTNr  r   s     r1   ws_create_orderzAsyncClient.ws_create_orderd  sG      V+)-)?)?$++-)OF%&))-vFFFFro  c                 ~   K   |j                  | j                  |d        | j                  di | d{   S 7 w)a  Send in a new limit order
        Any order with an icebergQty MUST have timeInForce set to GTC.
        :param symbol: required
        :type symbol: str
        :param side: required
        :type side: str
        :param quantity: required
        :type quantity: decimal
        :param price: required
        :type price: str
        :param timeInForce: default Good till cancelled
        :type timeInForce: str
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param icebergQty: Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
        :type icebergQty: decimal
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        See order endpoint for full response options
        r4  NrC   )r,   r7  r  r8  s      r1   ws_order_limitzAsyncClient.ws_order_limits  sC     0 	))&
 	 *T))3F3333r:  c                    K   |j                  d| j                  i        | j                  dd|i| d{   S 7 w)a  Send in a new limit buy order
        Any order with an icebergQty MUST have timeInForce set to GTC.
        :param symbol: required
        :type symbol: str
        :param quantity: required
        :type quantity: decimal
        :param price: required
        :type price: str
        :param timeInForce: default Good till cancelled
        :type timeInForce: str
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param stopPrice: Used with stop orders
        :type stopPrice: decimal
        :param icebergQty: Used with iceberg orders
        :type icebergQty: decimal
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        See order endpoint for full response options
        r=  r6  NrC   )r,   r>  r  r8  s      r1   ws_order_limit_buyzAsyncClient.ws_order_limit_buy  sE     4 	DMM
 	 )T((K[KFKKKKr@  c                    K   |j                  d| j                  i        | j                  dd|i| d{   S 7 w)a  Send in a new limit sell order
        :param symbol: required
        :type symbol: str
        :param quantity: required
        :type quantity: decimal
        :param price: required
        :type price: str
        :param timeInForce: default Good till cancelled
        :type timeInForce: str
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param stopPrice: Used with stop orders
        :type stopPrice: decimal
        :param icebergQty: Used with iceberg orders
        :type icebergQty: decimal
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        See order endpoint for full response options
        r=  r6  NrC   )r,   rB  r  r8  s      r1   ws_order_limit_sellzAsyncClient.ws_order_limit_sell  s>     2 	vt~~./(T((K[KFKKKKr@  c                 |   K   |j                  d| j                  i        | j                  di | d{   S 7 w)aF  Send in a new market order
        :param symbol: required
        :type symbol: str
        :param side: required
        :type side: str
        :param quantity: required
        :type quantity: decimal
        :param quoteOrderQty: amount the user wants to spend (when buying) or receive (when selling)
            of the quote asset
        :type quoteOrderQty: decimal
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        See order endpoint for full response options
        r5  NrC   )r,   rE  r  r   s     r1   ws_order_marketzAsyncClient.ws_order_market  s;     ( 	vt5567)T))3F3333rG  c                 |   K   |j                  d| j                  i        | j                  di | d{   S 7 w)a  Send in a new market buy order
        :param symbol: required
        :type symbol: str
        :param quantity: required
        :type quantity: decimal
        :param quoteOrderQty: the amount the user wants to spend of the quote asset
        :type quoteOrderQty: decimal
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        See order endpoint for full response options
        r=  NrC   )r,   r>  r  r   s     r1   ws_order_market_buyzAsyncClient.ws_order_market_buy  s9     " 	vt}}-.)T))3F3333rG  c                 |   K   |j                  d| j                  i        | j                  di | d{   S 7 w)a  Send in a new market sell order
        :param symbol: required
        :type symbol: str
        :param quantity: required
        :type quantity: decimal
        :param quoteOrderQty: the amount the user wants to receive of the quote asset
        :type quoteOrderQty: decimal
        :param newClientOrderId: A unique id for the order. Automatically generated if not sent.
        :type newClientOrderId: str
        :param newOrderRespType: Set the response JSON. ACK, RESULT, or FULL; default: RESULT.
        :type newOrderRespType: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        :returns: WS response
        See order endpoint for full response options
        r=  NrC   )r,   rB  r  r   s     r1   ws_order_market_sellz AsyncClient.ws_order_market_sell  s9     " 	vt~~./)T))3F3333rG  c                 D   K   | j                  dd|       d{   S 7 w)a  Check an order's status. Either orderId or origClientOrderId must be sent.
        https://binance-docs.github.io/apidocs/websocket_api/en/#query-order-user_data
        :param symbol: required
        :type symbol: str
        :param orderId: The unique order id
        :type orderId: int
        :param origClientOrderId: optional
        :type origClientOrderId: str
        :param recvWindow: the number of milliseconds the request is valid for
        :type recvWindow: int
        order.statusTNr  r   s     r1   ws_get_orderzAsyncClient.ws_get_order  s#      )).$GGGGr   c                 D   K   | j                  dd|       d {   S 7 w)Norder.cancelTr  r   s     r1   ws_cancel_orderzAsyncClient.ws_cancel_order  s!     )).$GGGGr   c                 F   K   | j                  dd|       d {   S 7 wra  r^  r   s     r1   cancel_all_open_ordersz"AsyncClient.cancel_all_open_orders  s!     \\,6\BBBBrV  c                    K   d|vr | j                   | j                         z   |d<   | j                  dd|       d {   S 7 w)Nr,  order/cancelReplaceTr  r.  r   s     r1   cancel_replace_orderz AsyncClient.cancel_replace_order$  sF     V+)-)?)?$++-)OF%&ZZ 5dZPPPPr2  c                 D   K   | j                  dd|       d {   S 7 w)Nzorder.cancelReplaceTr  r   s     r1   ws_cancel_and_replace_orderz'AsyncClient.ws_cancel_and_replace_order+  "     ))*?vNNNNr   c                 D   K   | j                  dd|       d {   S 7 w)NzopenOrders.statusTr  r   s     r1   ws_get_open_orderszAsyncClient.ws_get_open_orders0  s"     ))*=tVLLLLr   c                 D   K   | j                  dd|       d {   S 7 w)NzopenOrders.cancelAllTr  r   s     r1   ws_cancel_all_open_ordersz%AsyncClient.ws_cancel_all_open_orders5  s"     ))*@$OOOOr   c                 D   K   | j                  dd|       d {   S 7 w)NzorderList.place.ocoTr  r   s     r1   ws_create_oco_orderzAsyncClient.ws_create_oco_order:  r  r   c                 D   K   | j                  dd|       d {   S 7 w)NzorderList.place.otoTr  r   s     r1   ws_create_oto_orderzAsyncClient.ws_create_oto_order?  r  r   c                 D   K   | j                  dd|       d {   S 7 w)NzorderList.place.otocoTr  r   s     r1   ws_create_otoco_orderz!AsyncClient.ws_create_otoco_orderD  "     ))*A4PPPPr   c                 D   K   | j                  dd|       d {   S 7 w)NzorderList.statusTr  r   s     r1   ws_get_oco_orderzAsyncClient.ws_get_oco_orderI  "     ))*<dFKKKKr   c                 D   K   | j                  dd|       d {   S 7 w)NzorderList.cancelTr  r   s     r1   ws_cancel_oco_orderzAsyncClient.ws_cancel_oco_orderN  r  r   c                 D   K   | j                  dd|       d {   S 7 w)NzopenOrderLists.statusTr  r   s     r1   ws_get_oco_open_ordersz"AsyncClient.ws_get_oco_open_ordersS  r  r   c                 D   K   | j                  dd|       d {   S 7 w)Nzsor.order.placeTr  r   s     r1   ws_create_sor_orderzAsyncClient.ws_create_sor_orderX  s"     ))*;T6JJJJr   c                 D   K   | j                  dd|       d {   S 7 w)Nzsor.order.testTr  r   s     r1   ws_create_test_sor_orderz$AsyncClient.ws_create_test_sor_order]  "     ))*:D&IIIIr   c                 D   K   | j                  dd|       d {   S 7 w)Naccount.statusTr  r   s     r1   ws_get_accountzAsyncClient.ws_get_accountb  r  r   c                 D   K   | j                  dd|       d {   S 7 w)Nzaccount.rateLimits.ordersTr  r   s     r1   !ws_get_account_rate_limits_ordersz-AsyncClient.ws_get_account_rate_limits_ordersg  s"     ))*EtVTTTTr   c                 D   K   | j                  dd|       d {   S 7 w)Nr[  Tr  r   s     r1   ws_get_all_orderszAsyncClient.ws_get_all_ordersl  s!     ))+tVDDDDr   c                 D   K   | j                  dd|       d {   S 7 w)Nrr  Tr  r   s     r1   ws_get_my_tradeszAsyncClient.ws_get_my_tradesq  s!     ))*dFCCCCr   c                 D   K   | j                  dd|       d {   S 7 w)Nrx  Tr  r   s     r1   ws_get_prevented_matchesz$AsyncClient.ws_get_prevented_matchesv  "     ))*>fMMMMr   c                 D   K   | j                  dd|       d {   S 7 w)Nr{  Tr  r   s     r1   ws_get_allocationszAsyncClient.ws_get_allocations{  s!     ))/4HHHHr   c                 D   K   | j                  dd|       d {   S 7 w)Nzaccount.commissionTr  r   s     r1   ws_get_commission_ratesz#AsyncClient.ws_get_commission_rates  r  r   c                 D   K   | j                  dd|       d {   S 7 w)Nr   Fr  r   s     r1   ws_get_order_bookzAsyncClient.ws_get_order_book  s!     ))'5&AAAAr   c                 D   K   | j                  dd|       d {   S 7 w)Nztrades.recentFr  r   s     r1   ws_get_recent_tradesz AsyncClient.ws_get_recent_trades  s!     ))/5&IIIIr   c                 D   K   | j                  dd|       d {   S 7 w)Nztrades.historicalFr  r   s     r1   ws_get_historical_tradesz$AsyncClient.ws_get_historical_trades  "     ))*=ufMMMMr   c                 D   K   | j                  dd|       d {   S 7 w)Nztrades.aggregateFr  r   s     r1   ws_get_aggregate_tradesz#AsyncClient.ws_get_aggregate_trades  s"     ))*<eVLLLLr   c                 D   K   | j                  dd|       d {   S 7 w)Nr   Fr  r   s     r1   ws_get_klineszAsyncClient.ws_get_klines  !     ))(E6BBBBr   c                 D   K   | j                  dd|       d {   S 7 w)Nr   Fr  r   s     r1   ws_get_uiKlineszAsyncClient.ws_get_uiKlines  !     ))*eVDDDDr   c                 D   K   | j                  dd|       d {   S 7 w)Nr  Fr  r   s     r1   ws_get_avg_pricezAsyncClient.ws_get_avg_price  r   r   c                 D   K   | j                  dd|       d {   S 7 w)Nzticker.24hrFr  r   s     r1   ws_get_tickerzAsyncClient.ws_get_ticker  !     ))-GGGGr   c                 D   K   | j                  dd|       d {   S 7 w)Nzticker.tradingDayFr  r   s     r1   ws_get_trading_day_tickerz%AsyncClient.ws_get_trading_day_ticker  r  r   c                 D   K   | j                  dd|       d {   S 7 w)Nr'  Fr  r   s     r1   ws_get_symbol_ticker_windowz'AsyncClient.ws_get_symbol_ticker_window  r  r   c                 D   K   | j                  dd|       d {   S 7 w)Nticker.priceFr  r   s     r1   ws_get_symbol_tickerz AsyncClient.ws_get_symbol_ticker  !     )).%HHHHr   c                 D   K   | j                  dd|       d {   S 7 w)Nticker.bookFr  r   s     r1   ws_get_orderbook_tickerz#AsyncClient.ws_get_orderbook_ticker  r%  r   c                 D   K   | j                  dd|       d {   S 7 w)Nr6   Fr  r   s     r1   ws_pingzAsyncClient.ws_ping  !     ))&%@@@@r   c                 D   K   | j                  dd|       d {   S 7 w)Nr9   Fr  r   s     r1   ws_get_timezAsyncClient.ws_get_time  r3  r   c                 D   K   | j                  dd|       d {   S 7 w)Nr   Fr  r   s     r1   ws_get_exchange_infoz AsyncClient.ws_get_exchange_info  r-  r   c                 D   K   | j                  dd|       d{   S 7 w)z
        Get the order book for a symbol
        https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api
        r   FN_ws_futures_api_requestr   s     r1   ws_futures_get_order_bookz%AsyncClient.ws_futures_get_order_book  s#     
 11'5&IIIIr   c                 D   K   | j                  dd|       d{   S 7 w)z
        Latest price for a symbol or symbols
        https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Symbol-Price-Ticker
        r+  FNr9  r   s     r1   ws_futures_get_all_tickersz&AsyncClient.ws_futures_get_all_tickers  s#     
 11.%PPPPr   c                 D   K   | j                  dd|       d{   S 7 w)z
        Best price/qty on the order book for a symbol or symbols.
        https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Symbol-Order-Book-Ticker
        r/  FNr9  r   s     r1    ws_futures_get_order_book_tickerz,AsyncClient.ws_futures_get_order_book_ticker  s#     
 11-OOOOr   c                   K   |j                  dd      j                         }g d}||v rvd|vr | j                  | j                         z   |d<   |j	                  dd       d|vrd|d<   d	|v rd
|vr|j	                  d	      |d
<   | j                  dd|       d{   S d|vr | j                  | j                         z   |d<   | j                  dd|       d{   S 7 C7 w)z
        Send in a new order
        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api
        r5  ru   rk  rq  r,  Nrs  rr  rt  ru  algoOrder.placeTr  )rW   r]   rw  r0  r_   r:  rx  s       r1   ws_futures_create_orderz#AsyncClient.ws_futures_create_order  s      ZZ+113

 **V+)-)C)Cdkkm)S~&JJ)40'%2z"f$v)E)/K)@~&556GvVVV "/-1-G-G$++--W)*55mT6RRR W
 Ss$   BC$C >C$C"C$"C$c                 D   K   | j                  dd|       d{   S 7 w)z
        Edit an order
        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
        zorder.modifyTNr9  r   s     r1   ws_futures_edit_orderz!AsyncClient.ws_futures_edit_order	  s#     
 11.$OOOOr   c                    K   d}d|v sd|v rd}|r| j                  dd|       d{   S | j                  dd|       d{   S 7 7 w)z
        cancel an order
        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
        Fr  rq  TalgoOrder.cancelNr  r9  r  s      r1   ws_futures_cancel_orderz#AsyncClient.ws_futures_cancel_order  s`     
 v6!9!N556H$PVWWW55ndFSSS XSs!   %AAAA	A	Ac                 D   K   | j                  dd|       d{   S 7 w)z
        Get an order
        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order

        Note: Algo/conditional orders cannot be queried via websocket API
        r  TNr9  r   s     r1   ws_futures_get_orderz AsyncClient.ws_futures_get_order  s#      11.$OOOOr   c                 D   K   | j                  dd|       d{   S 7 w)z
        Get current position information(only symbol that has position or open orders will be return awaited).
        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Info-V2
        zv2/account.positionTNr9  r   s     r1   ws_futures_v2_account_positionz*AsyncClient.ws_futures_v2_account_position'  s$     
 112GvVVVVr   c                 D   K   | j                  dd|       d{   S 7 w)z
        Get current position information.
        https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Position-Information
        zaccount.positionTNr9  r   s     r1   ws_futures_account_positionz'AsyncClient.ws_futures_account_position.  s$     
 112DdFSSSSr   c                 D   K   | j                  dd|       d{   S 7 w)z
        Get current account information.
        https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api#api-description
        zv2/account.balanceTNr9  r   s     r1   ws_futures_v2_account_balancez)AsyncClient.ws_futures_v2_account_balance5  s$     
 112FfUUUUr   c                 D   K   | j                  dd|       d{   S 7 w)z
        Get current account information.
        https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-Account-Balance
        zaccount.balanceTNr9  r   s     r1   ws_futures_account_balancez&AsyncClient.ws_futures_account_balance<  s$     
 112CT6RRRRr   c                 D   K   | j                  dd|       d{   S 7 w)a  
        Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
        https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Account-Information-V2
        zv2/account.statusTNr9  r   s     r1   ws_futures_v2_account_statusz(AsyncClient.ws_futures_v2_account_statusC  s$     
 112EtVTTTTr   c                 D   K   | j                  dd|       d{   S 7 w)a  
        Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.
        https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Account-Information
        r  TNr9  r   s     r1   ws_futures_account_statusz%AsyncClient.ws_futures_account_statusJ  s$     
 112BD&QQQQr   c                    K   d|vr | j                   | j                         z   |d<   | j                  dd|       d {   S 7 w)Nrq  rA  T)rw  r0  r:  r   s     r1   ws_futures_create_algo_orderz(AsyncClient.ws_futures_create_algo_orderQ  sE     '%)%?%?$++-%OF>"112CT6RRRRro  c                 D   K   | j                  dd|       d {   S 7 w)NrF  Tr9  r   s     r1   ws_futures_cancel_algo_orderz(AsyncClient.ws_futures_cancel_algo_orderW  s"     112DdFSSSSr   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zgiftcard/buyCode/token-limitTr  r~  r   s     r1   gift_card_fetch_token_limitz'AsyncClient.gift_card_fetch_token_limit`  s2     --1$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   z$giftcard/cryptography/rsa-public-keyTr  r~  r   s     r1   gift_card_fetch_rsa_public_keyz*AsyncClient.gift_card_fetch_rsa_public_keyg  s2     --9$V . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zgiftcard/verifyTr  r~  r   s     r1   gift_card_verifyzAsyncClient.gift_card_verifyp  r.  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zgiftcard/redeemCodeTr  r~  r   s     r1   gift_card_redeemzAsyncClient.gift_card_redeemw  r+  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zgiftcard/createCodeTr  r~  r   s     r1   gift_card_createzAsyncClient.gift_card_create~  r+  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   zgiftcard/buyCodeTr  r~  r   s     r1   gift_card_create_dual_tokenz'AsyncClient.gift_card_create_dual_token  rR  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   block/order/createTr  r  r   s     r1    options_create_block_trade_orderz,AsyncClient.options_create_block_trade_order  s2     ..(F / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   rg  Tr  r  r   s     r1    options_cancel_block_trade_orderz,AsyncClient.options_cancel_block_trade_order  s2     ..*4f / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   rg  Tr  r  r   s     r1    options_extend_block_trade_orderz,AsyncClient.options_extend_block_trade_order  2     ..'6 / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zblock/order/ordersTr  r  r   s     r1   options_get_block_trade_ordersz*AsyncClient.options_get_block_trade_orders  rm  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   block/order/executeTr  r  r   s     r1    options_accept_block_trade_orderz,AsyncClient.options_accept_block_trade_order  s2     ..)$V / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   rq  Tr  r  r   s     r1   options_get_block_trade_orderz)AsyncClient.options_get_block_trade_order  s2     ..(F / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zblock/user-tradesTr  r  r   s     r1    options_account_get_block_tradesz,AsyncClient.options_account_get_block_trades  s2     ..&t& / 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r~  r   s     r1    margin_next_hourly_interest_ratez,AsyncClient.margin_next_hourly_interest_rate  s2     --5d . 
 
 	
 
r  c                 H   K   | j                  ddd|       d {   S 7 wr9  r~  r   s     r1   margin_interest_historyz#AsyncClient.margin_interest_history  r7  r  c                 H   K   | j                  ddd|       d {   S 7 w)Nr   margin/borrow-repayTr  r~  r   s     r1   margin_borrow_repayzAsyncClient.margin_borrow_repay  r+  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r|  Tr  r~  r   s     r1   margin_get_borrow_repay_recordsz+AsyncClient.margin_get_borrow_repay_records  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zmargin/interestRateHistoryTr  r~  r   s     r1   margin_interest_rate_historyz(AsyncClient.margin_interest_rate_history  r=  r  c                 H   K   | j                  ddd|       d {   S 7 wrK  r~  r   s     r1   margin_max_borrowablez!AsyncClient.margin_max_borrowable  r  r  c                 H   K   | j                  ddd|       d {   S 7 w)NrW   zfutures/data/histDataLinkTr  r~  r   s     r1   futures_historical_data_linkz(AsyncClient.futures_historical_data_link  s)     --e5PY]dj-kkkkr  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/vip/ongoing/ordersTr   rP   rV   r   r~  r   s     r1   %margin_v1_get_loan_vip_ongoing_ordersz1AsyncClient.margin_v1_get_loan_vip_ongoing_orders  ,     --e5NW[bhrs-ttttr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/payment/otherTr   r  r~  r   s     r1   "margin_v1_get_mining_payment_otherz.AsyncClient.margin_v1_get_mining_payment_other	  ,     --e5KTX_eop-qqqqr   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   income/asyn/idTr   r  r
  r   s     r1   "futures_coin_v1_get_income_asyn_idz.AsyncClient.futures_coin_v1_get_income_asyn_id  ,     33E;KTX_eop3qqqqr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z/simple-earn/flexible/history/subscriptionRecordTr   r  r~  r   s     r1   >margin_v1_get_simple_earn_flexible_history_subscription_recordzJAsyncClient.margin_v1_get_simple_earn_flexible_history_subscription_record  s@     --e5fos  {A  KL-  M  M  	M  Mr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zlending/auto-invest/one-offTr   r  r~  r   s     r1   *margin_v1_post_lending_auto_invest_one_offz6AsyncClient.margin_v1_post_lending_auto_invest_one_off  ,     --f6S\`gmwx-yyyyr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   +broker/subAccountApi/commission/coinFuturesTr   r  r~  r   s     r1   =margin_v1_post_broker_sub_account_api_commission_coin_futureszIAsyncClient.margin_v1_post_broker_sub_account_api_commission_coin_futures  s<     --f6clpw}  HI-  J  J  	J  Jr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zorderList/otocoTv3r  r   r   s     r1   v3_post_order_list_otocoz$AsyncClient.v3_post_order_list_otoco"  s+     &&v/@TZdh&iiiir   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rp  Tr   r  r  r   s     r1   futures_v1_get_order_asynz%AsyncClient.futures_v1_get_order_asyn'  *     ..ul4V\fg.hhhhr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zasset/custody/transfer-historyTr   r  r~  r   s     r1   ,margin_v1_get_asset_custody_transfer_historyz8AsyncClient.margin_v1_get_asset_custody_transfer_history,  ,     --e5U^bioyz-{{{{r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zbroker/subAccount/blvtTr   r  r~  r   s     r1   &margin_v1_post_broker_sub_account_blvtz2AsyncClient.margin_v1_post_broker_sub_account_blvt1  ,     --f6NW[bhrs-ttttr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsol-staking/sol/redeemTr   r  r~  r   s     r1   %margin_v1_post_sol_staking_sol_redeemz1AsyncClient.margin_v1_post_sol_staking_sol_redeem6  r  r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r  r   s     r1   #options_v1_get_countdown_cancel_allz/AsyncClient.options_v1_get_countdown_cancel_all;  s)     ..u6JSW^d.eeeer  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmargin/tradeCoeffTr   r  r~  r   s     r1    margin_v1_get_margin_trade_coeffz,AsyncClient.margin_v1_get_margin_trade_coeff@  ,     --e5HQU\blm-nnnnr   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   orderAmendmentTr   r  r
  r   s     r1   #futures_coin_v1_get_order_amendmentz/AsyncClient.futures_coin_v1_get_order_amendmentE  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmargin/available-inventoryTr   r  r~  r   s     r1   (margin_v1_get_margin_available_inventoryz4AsyncClient.margin_v1_get_margin_available_inventoryJ  ,     --e5QZ^ekuv-wwwwr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   ,account/apiRestrictions/ipRestriction/ipListTr   r  r~  r   s     r1   >margin_v1_post_account_api_restrictions_ip_restriction_ip_listzJAsyncClient.margin_v1_post_account_api_restrictions_ip_restriction_ip_listO  s<     --f6dmqx~  IJ-  K  K  	K  Kr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zeth-staking/accountTr  r  r~  r   s     r1   !margin_v2_get_eth_staking_accountz-AsyncClient.margin_v2_get_eth_staking_accountT  ,     --e5JSW^dno-ppppr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/incomeTr   r  r~  r   s     r1   margin_v1_get_loan_incomez%AsyncClient.margin_v1_get_loan_incomeY  s*     --e]4V\fg-hhhhr   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   pmAccountInfoTr   r  r
  r   s     r1   #futures_coin_v1_get_pm_account_infoz/AsyncClient.futures_coin_v1_get_pm_account_info^  s+     33E?SW^dno3ppppr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z+managed-subaccount/queryTransLogForInvestorTr   r  r~  r   s     r1   =margin_v1_get_managed_subaccount_query_trans_log_for_investorzIAsyncClient.margin_v1_get_managed_subaccount_query_trans_log_for_investorc  <     --e5bkov|  GH-  I  I  	I  Ir   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z%dci/product/auto_compound/edit-statusTr   r  r~  r   s     r1   4margin_v1_post_dci_product_auto_compound_edit_statusz@AsyncClient.margin_v1_post_dci_product_auto_compound_edit_statush  <     --f6]fjqw  BC-  D  D  	D  Dr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rw  Tr   r  r  r   s     r1   futures_v1_get_trade_asynz%AsyncClient.futures_v1_get_trade_asynm  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/vip/request/interestRateTr   r  r~  r   s     r1   ,margin_v1_get_loan_vip_request_interest_ratez8AsyncClient.margin_v1_get_loan_vip_request_interest_rater  ,     --e5T]ahnxy-zzzzr   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   fundingInfoFr   r  r  r   s     r1   futures_v1_get_funding_infoz'AsyncClient.futures_v1_get_funding_infow  s*     ..umEX^hi.jjjjr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r[  Tr  r  r   r   s     r1   v3_get_all_orderszAsyncClient.v3_get_all_orders|  )     &&uk$V]a&bbbbr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/flexible/repay/rateTr  r  r~  r   s     r1   &margin_v2_get_loan_flexible_repay_ratez2AsyncClient.margin_v2_get_loan_flexible_repay_rate  ,     --e5OX\cist-uuuur   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zlending/auto-invest/plan/idTr   r  r~  r   s     r1   )margin_v1_get_lending_auto_invest_plan_idz5AsyncClient.margin_v1_get_lending_auto_invest_plan_id  ,     --e5R[_flvw-xxxxr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/adjust/ltvTr   r  r~  r   s     r1   margin_v1_post_loan_adjust_ltvz*AsyncClient.margin_v1_post_loan_adjust_ltv  ,     --f6GPT[akl-mmmmr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/statistics/user/statusTr   r  r~  r   s     r1   +margin_v1_get_mining_statistics_user_statusz7AsyncClient.margin_v1_get_mining_statistics_user_status  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   broker/transfer/futuresTr   r  r~  r   s     r1   %margin_v1_get_broker_transfer_futuresz1AsyncClient.margin_v1_get_broker_transfer_futures  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zalgo/spot/newOrderTwapTr   r  r~  r   s     r1   'margin_v1_post_algo_spot_new_order_twapz3AsyncClient.margin_v1_post_algo_spot_new_order_twap  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z%lending/auto-invest/target-asset/listTr   r  r~  r   s     r1   3margin_v1_get_lending_auto_invest_target_asset_listz?AsyncClient.margin_v1_get_lending_auto_invest_target_asset_list  <     --e5\eipv  AB-  C  C  	C  Cr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zcapital/deposit/address/listTr   r  r~  r   s     r1   *margin_v1_get_capital_deposit_address_listz6AsyncClient.margin_v1_get_capital_deposit_address_list  ,     --e5S\`gmwx-yyyyr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z(broker/subAccount/bnbBurn/marginInterestTr   r  r~  r   s     r1   :margin_v1_post_broker_sub_account_bnb_burn_margin_interestzFAsyncClient.margin_v1_post_broker_sub_account_bnb_burn_margin_interest  s<     --f6`imtz  EF-  G  G  	G  Gr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/flexible/repayTr  r  r~  r   s     r1   "margin_v2_post_loan_flexible_repayz.AsyncClient.margin_v2_post_loan_flexible_repay  s,     --f6KTX_eop-qqqqr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/flexible/loanable/dataTr  r  r~  r   s     r1   )margin_v2_get_loan_flexible_loanable_dataz5AsyncClient.margin_v2_get_loan_flexible_loanable_data  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zbroker/subAccountApi/permissionTr   r  r~  r   s     r1   0margin_v1_post_broker_sub_account_api_permissionz<AsyncClient.margin_v1_post_broker_sub_account_api_permission  ,     --f6W`dkq{|-}}}}r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   broker/subAccountApiTr   r  r~  r   s     r1   %margin_v1_post_broker_sub_account_apiz1AsyncClient.margin_v1_post_broker_sub_account_api  ,     --f6LUY`fpq-rrrrr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zdci/product/positionsTr   r  r~  r   s     r1   #margin_v1_get_dci_product_positionsz/AsyncClient.margin_v1_get_dci_product_positions  ,     --e5LUY`fpq-rrrrr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zconvert/limit/cancelOrderTr   r  r~  r   s     r1   )margin_v1_post_convert_limit_cancel_orderz5AsyncClient.margin_v1_post_convert_limit_cancel_order  ,     --f6QZ^ekuv-wwwwr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zorderList/otoTr  r  r   r   s     r1   v3_post_order_list_otoz"AsyncClient.v3_post_order_list_oto  *     &&vtRXbf&ggggr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z(mining/hash-transfer/config/details/listTr   r  r~  r   s     r1   6margin_v1_get_mining_hash_transfer_config_details_listzBAsyncClient.margin_v1_get_mining_hash_transfer_config_details_list  <     --e5_hlsy  DE-  F  F  	F  Fr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z#mining/hash-transfer/profit/detailsTr   r  r~  r   s     r1   1margin_v1_get_mining_hash_transfer_profit_detailsz=AsyncClient.margin_v1_get_mining_hash_transfer_profit_details  8     --e5Zcgnt~-  A  A  	A  Ar   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   broker/subAccountTr   r  r~  r   s     r1    margin_v1_get_broker_sub_accountz,AsyncClient.margin_v1_get_broker_sub_account  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zportfolio/balanceTr   r  r~  r   s     r1   margin_v1_get_portfolio_balancez+AsyncClient.margin_v1_get_portfolio_balance  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsub-account/eoptions/enableTr   r  r~  r   s     r1   *margin_v1_post_sub_account_eoptions_enablez6AsyncClient.margin_v1_post_sub_account_eoptions_enable  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r6   Tr   r  r  r   s     r1   papi_v1_post_pingzAsyncClient.papi_v1_post_ping  s)     ++FF4f^_+````r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/loanable/dataTr   r  r~  r   s     r1    margin_v1_get_loan_loanable_dataz,AsyncClient.margin_v1_get_loan_loanable_data  ,     --e5IRV]cmn-oooor   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zeth-staking/wbeth/unwrapTr   r  r~  r   s     r1   'margin_v1_post_eth_staking_wbeth_unwrapz3AsyncClient.margin_v1_post_eth_staking_wbeth_unwrap  ,     --f6PY]djtu-vvvvr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z&eth-staking/eth/history/stakingHistoryTr   r  r~  r   s     r1   5margin_v1_get_eth_staking_eth_history_staking_historyzAAsyncClient.margin_v1_get_eth_staking_eth_history_staking_history  <     --e5]fjqw  BC-  D  D  	D  Dr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zstaking/stakingRecordTr   r  r~  r   s     r1   $margin_v1_get_staking_staking_recordz0AsyncClient.margin_v1_get_staking_staking_record  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zbroker/rebate/recentRecordTr   r  r~  r   s     r1   )margin_v1_get_broker_rebate_recent_recordz5AsyncClient.margin_v1_get_broker_rebate_recent_record  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr  r  r   r   s     r1   v3_delete_user_data_streamz&AsyncClient.v3_delete_user_data_stream  s+     &&x1A$U[ei&jjjjr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   re  Tr  r  r   r   s     r1   v3_get_open_order_listz"AsyncClient.v3_get_open_order_list	  *     &&uodQWae&ffffr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/vip/collateral/accountTr   r  r~  r   s     r1   )margin_v1_get_loan_vip_collateral_accountz5AsyncClient.margin_v1_get_loan_vip_collateral_account  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zalgo/spot/openOrdersTr   r  r~  r   s     r1   #margin_v1_get_algo_spot_open_ordersz/AsyncClient.margin_v1_get_algo_spot_open_orders  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z
loan/repayTr   r  r~  r   s     r1   margin_v1_post_loan_repayz%AsyncClient.margin_v1_post_loan_repay  s*     --fl4V\fg-hhhhr   c                 J   K   | j                  ddd|d       d {   S 7 wr  r
  r   s     r1    futures_coin_v1_get_funding_infoz,AsyncClient.futures_coin_v1_get_funding_info  s+     33E=QV]cmn3oooor   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmargin/leverageBracketTr   r  r~  r   s     r1   %margin_v1_get_margin_leverage_bracketz1AsyncClient.margin_v1_get_margin_leverage_bracket   ,     --e5MVZagqr-ssssr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zportfolio/collateralRateTr  r  r~  r   s     r1   'margin_v2_get_portfolio_collateral_ratez3AsyncClient.margin_v2_get_portfolio_collateral_rate%  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/flexible/adjust/ltvTr  r  r~  r   s     r1   'margin_v2_post_loan_flexible_adjust_ltvz3AsyncClient.margin_v2_post_loan_flexible_adjust_ltv*  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   zconvert/orderStatusTr   r  r~  r   s     r1   "margin_v1_get_convert_order_statusz.AsyncClient.margin_v1_get_convert_order_status/  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   "broker/subAccountApi/ipRestrictionTr   r  r~  r   s     r1   3margin_v1_get_broker_sub_account_api_ip_restrictionz?AsyncClient.margin_v1_get_broker_sub_account_api_ip_restriction4  ,     --e5Ybfms}~-r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zdci/product/subscribeTr   r  r~  r   s     r1   $margin_v1_post_dci_product_subscribez0AsyncClient.margin_v1_post_dci_product_subscribe9  ,     --f6MVZagqr-ssssr   c                 J   K   | j                  ddd|d       d {   S 7 wr  r  r   s     r1   futures_v1_get_income_asyn_idz)AsyncClient.futures_v1_get_income_asyn_id>  +     ..u6FtZ`jk.llllr   c                 H   K   | j                  ddd|       d {   S 7 w)Nr   r  Tr  r  r   s     r1   $options_v1_post_countdown_cancel_allz0AsyncClient.options_v1_post_countdown_cancel_allC  s)     ..v7KTX_e.ffffr  c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z"mining/hash-transfer/config/cancelTr   r  r~  r   s     r1   1margin_v1_post_mining_hash_transfer_config_cancelz=AsyncClient.margin_v1_post_mining_hash_transfer_config_cancelH  8     --f6Zcgnt~-  A  A  	A  Ar   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zbroker/subAccount/depositHistTr   r  r~  r   s     r1   -margin_v1_get_broker_sub_account_deposit_histz9AsyncClient.margin_v1_get_broker_sub_account_deposit_histM  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/payment/listTr   r  r~  r   s     r1   !margin_v1_get_mining_payment_listz-AsyncClient.margin_v1_get_mining_payment_listR  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wr  r  r   s     r1   futures_v1_get_pm_account_infoz*AsyncClient.futures_v1_get_pm_account_infoW  *     ..uodY_ij.kkkkr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rH  Tr   r  r
  r   s     r1    futures_coin_v1_get_adl_quantilez,AsyncClient.futures_coin_v1_get_adl_quantile\  +     33E=QU\blm3nnnnr   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r  r   s     r1   options_v1_get_income_asyn_idz)AsyncClient.options_v1_get_income_asyn_ida  s(     ..u6FtZ`.aaaar  c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   cancelReplaceTr  r  r   r   s     r1   v3_post_cancel_replacez"AsyncClient.v3_post_cancel_replacef  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   rS  Tr  r  r   r   s     r1   v3_post_order_testzAsyncClient.v3_post_order_testk  s)     &&v|Dv_c&ddddr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z account/enableFastWithdrawSwitchTr   r  r~  r   s     r1   2margin_v1_post_account_enable_fast_withdraw_switchz>AsyncClient.margin_v1_post_account_enable_fast_withdraw_switchn  ,     --f6Xaelr|}-~~~~r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   &margin_v1_post_broker_transfer_futuresz2AsyncClient.margin_v1_post_broker_transfer_futuress  ,     --f6OX\cist-uuuur   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r  Tr   r  r~  r   s     r1   &margin_v1_get_margin_isolated_transferz2AsyncClient.margin_v1_get_margin_isolated_transferx  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr  r  r   r   s     r1   v3_post_order_cancel_replacez(AsyncClient.v3_post_order_cancel_replace{  s+     &&v/DTX^hl&mmmmr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsol-staking/sol/stakeTr   r  r~  r   s     r1   $margin_v1_post_sol_staking_sol_stakez0AsyncClient.margin_v1_post_sol_staking_sol_stake~  r7  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/borrowTr   r  r~  r   s     r1   margin_v1_post_loan_borrowz&AsyncClient.margin_v1_post_loan_borrow  s*     --fmDW]gh-iiiir   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmanaged-subaccount/infoTr   r  r~  r   s     r1   %margin_v1_get_managed_subaccount_infoz1AsyncClient.margin_v1_get_managed_subaccount_info  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z$lending/auto-invest/plan/edit-statusTr   r  r~  r   s     r1   3margin_v1_post_lending_auto_invest_plan_edit_statusz?AsyncClient.margin_v1_post_lending_auto_invest_plan_edit_status  s<     --f6\eipv  AB-  C  C  	C  Cr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z(sol-staking/sol/history/unclaimedRewardsTr   r  r~  r   s     r1   7margin_v1_get_sol_staking_sol_history_unclaimed_rewardszCAsyncClient.margin_v1_get_sol_staking_sol_history_unclaimed_rewards  r   r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z"asset/convert-transfer/queryByPageTr   r  r~  r   s     r1   3margin_v1_post_asset_convert_transfer_query_by_pagez?AsyncClient.margin_v1_post_asset_convert_transfer_query_by_page  r?  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z+sol-staking/sol/history/boostRewardsHistoryTr   r  r~  r   s     r1   ;margin_v1_get_sol_staking_sol_history_boost_rewards_historyzGAsyncClient.margin_v1_get_sol_staking_sol_history_boost_rewards_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"lending/auto-invest/one-off/statusTr   r  r~  r   s     r1   0margin_v1_get_lending_auto_invest_one_off_statusz<AsyncClient.margin_v1_get_lending_auto_invest_one_off_status  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   !margin_v1_post_broker_sub_accountz-AsyncClient.margin_v1_post_broker_sub_account  s,     --f6IRV]cmn-oooor   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z.asset/ledger-transfer/cloud-mining/queryByPageTr   r  r~  r   s     r1   >margin_v1_get_asset_ledger_transfer_cloud_mining_query_by_pagezJAsyncClient.margin_v1_get_asset_ledger_transfer_cloud_mining_query_by_page  <     --e5enry  JK-  L  L  	L  Lr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/pub/coinListTr   r  r~  r   s     r1   "margin_v1_get_mining_pub_coin_listz.AsyncClient.margin_v1_get_mining_pub_coin_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   loan/flexible/repay/historyTr  r  r~  r   s     r1   )margin_v2_get_loan_flexible_repay_historyz5AsyncClient.margin_v2_get_loan_flexible_repay_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z	sor/orderTr  r  r   r   s     r1   v3_post_sor_orderzAsyncClient.v3_post_sor_order  s)     &&v{4f^b&ccccr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zcapital/deposit/credit-applyTr   r  r~  r   s     r1   +margin_v1_post_capital_deposit_credit_applyz7AsyncClient.margin_v1_post_capital_deposit_credit_apply  ,     --f6T]ahnxy-zzzzr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   
batchOrderTr   r  r  r   s     r1   futures_v1_put_batch_orderz&AsyncClient.futures_v1_put_batch_order  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rx  Tr  r  r   r   s     r1   v3_get_my_prevented_matchesz'AsyncClient.v3_get_my_prevented_matches  +     &&u.B4V\fj&kkkkr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/statistics/user/listTr   r  r~  r   s     r1   )margin_v1_get_mining_statistics_user_listz5AsyncClient.margin_v1_get_mining_statistics_user_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r{  Tr   r  r  r   s     r1   futures_v1_post_batch_orderz'AsyncClient.futures_v1_post_batch_order  s*     ..v|DW]gh.iiiir   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zticker/tradingDayFr  r  r   r   s     r1   v3_get_ticker_trading_dayz%AsyncClient.v3_get_ticker_trading_day  s+     &&u.A%V\fj&kkkkr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/worker/detailTr   r  r~  r   s     r1   "margin_v1_get_mining_worker_detailz.AsyncClient.margin_v1_get_mining_worker_detail  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z%managed-subaccount/fetch-future-assetTr   r  r~  r   s     r1   3margin_v1_get_managed_subaccount_fetch_future_assetz?AsyncClient.margin_v1_get_managed_subaccount_fetch_future_asset  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmargin/rateLimit/orderTr   r  r~  r   s     r1   %margin_v1_get_margin_rate_limit_orderz1AsyncClient.margin_v1_get_margin_rate_limit_order  r)  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zlocalentity/vaspTr   r  r~  r   s     r1   margin_v1_get_localentity_vaspz*AsyncClient.margin_v1_get_localentity_vasp  ,     --e5GPT[akl-mmmmr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z#sol-staking/sol/history/rateHistoryTr   r  r~  r   s     r1   2margin_v1_get_sol_staking_sol_history_rate_historyz>AsyncClient.margin_v1_get_sol_staking_sol_history_rate_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r2  Tr   r  r~  r   s     r1   4margin_v1_post_broker_sub_account_api_ip_restrictionz@AsyncClient.margin_v1_post_broker_sub_account_api_ip_restriction  r?  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   broker/transferTr   r  r~  r   s     r1   margin_v1_get_broker_transferz)AsyncClient.margin_v1_get_broker_transfer  s+     --e5FtZ`jk-llllr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zsol-staking/accountTr   r  r~  r   s     r1   !margin_v1_get_sol_staking_accountz-AsyncClient.margin_v1_get_sol_staking_account  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zaccount/infoTr   r  r~  r   s     r1   margin_v1_get_account_infoz&AsyncClient.margin_v1_get_account_info  s*     --e^DW]gh-iiiir   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zportfolio/repay-futures-switchTr   r  r~  r   s     r1   -margin_v1_post_portfolio_repay_futures_switchz9AsyncClient.margin_v1_post_portfolio_repay_futures_switch  ,     --f6V_cjpz{-||||r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/vip/borrowTr   r  r~  r   s     r1   margin_v1_post_loan_vip_borrowz*AsyncClient.margin_v1_post_loan_vip_borrow  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z$loan/flexible/ltv/adjustment/historyTr  r  r~  r   s     r1   2margin_v2_get_loan_flexible_ltv_adjustment_historyz>AsyncClient.margin_v2_get_loan_flexible_ltv_adjustment_history  s<     --e5[dhou  @A-  B  B  	B  Br   c                 H   K   | j                  ddd|       d {   S 7 w)Nr   allOpenOrdersByUnderlyingTr  r  r   s     r1   /options_v1_delete_all_open_orders_by_underlyingz;AsyncClient.options_v1_delete_all_open_orders_by_underlying  s)     ..x9T]ahn.oooor  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW    broker/subAccount/futuresSummaryTr   r  r~  r   s     r1   0margin_v1_get_broker_sub_account_futures_summaryz<AsyncClient.margin_v1_get_broker_sub_account_futures_summary  ,     --e5W`dkq{|-}}}}r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zbroker/subAccount/spotSummaryTr   r  r~  r   s     r1   -margin_v1_get_broker_sub_account_spot_summaryz9AsyncClient.margin_v1_get_broker_sub_account_spot_summary!  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsub-account/blvt/enableTr   r  r~  r   s     r1   &margin_v1_post_sub_account_blvt_enablez2AsyncClient.margin_v1_post_sub_account_blvt_enable&  rV  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zalgo/spot/historicalOrdersTr   r  r~  r   s     r1   )margin_v1_get_algo_spot_historical_ordersz5AsyncClient.margin_v1_get_algo_spot_historical_orders+  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/vip/repay/historyTr   r  r~  r   s     r1   $margin_v1_get_loan_vip_repay_historyz0AsyncClient.margin_v1_get_loan_vip_repay_history0  r)  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/borrow/historyTr   r  r~  r   s     r1   !margin_v1_get_loan_borrow_historyz-AsyncClient.margin_v1_get_loan_borrow_history5  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zlending/auto-invest/redeemTr   r  r~  r   s     r1   )margin_v1_post_lending_auto_invest_redeemz5AsyncClient.margin_v1_post_lending_auto_invest_redeem:  ,     --f6R[_flvw-xxxxr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   ri  Tr  r  r   r   s     r1   v3_get_accountzAsyncClient.v3_get_account?  s)     &&ui6[_&````r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r-  Tr  r  r   r   s     r1   v3_delete_orderzAsyncClient.v3_delete_orderB  s)     &&xF\`&aaaar   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   income/asynTr   r  r
  r   s     r1   futures_coin_v1_get_income_asynz+AsyncClient.futures_coin_v1_get_income_asynE  rI  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zmanaged-subaccount/depositTr   r  r~  r   s     r1   )margin_v1_post_managed_subaccount_depositz5AsyncClient.margin_v1_post_managed_subaccount_depositJ  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zlending/daily/purchaseTr   r  r~  r   s     r1   %margin_v1_post_lending_daily_purchasez1AsyncClient.margin_v1_post_lending_daily_purchaseO  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rz  Tr   r  r  r   s     r1   futures_v1_get_trade_asyn_idz(AsyncClient.futures_v1_get_trade_asyn_idT  rF  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   .sub-account/subAccountApi/ipRestriction/ipListTr   r  r~  r   s     r1   Cmargin_v1_delete_sub_account_sub_account_api_ip_restriction_ip_listzOAsyncClient.margin_v1_delete_sub_account_sub_account_api_ip_restriction_ip_listY  s@     --h8hqu  }C  MN-  O  O  	O  Or   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zcopyTrading/futures/userStatusTr   r  r~  r   s     r1   .margin_v1_get_copy_trading_futures_user_statusz:AsyncClient.margin_v1_get_copy_trading_futures_user_status^  r  r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   marginAccountTr  r  r   s     r1   options_v1_get_margin_accountz)AsyncClient.options_v1_get_margin_accountc  s'     ..uodY_.````r  c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zlocalentity/withdraw/applyTr   r  r~  r   s     r1   )margin_v1_post_localentity_withdraw_applyz5AsyncClient.margin_v1_post_localentity_withdraw_applyh  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr  r  r   r   s     r1   v3_put_user_data_streamz#AsyncClient.v3_put_user_data_streamm  s+     &&u.>tRXbf&ggggr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zasset/wallet/balanceTr   r  r~  r   s     r1   "margin_v1_get_asset_wallet_balancez.AsyncClient.margin_v1_get_asset_wallet_balancep  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   margin_v1_post_broker_transferz*AsyncClient.margin_v1_post_broker_transferu  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z lending/customizedFixed/purchaseTr   r  r~  r   s     r1   0margin_v1_post_lending_customized_fixed_purchasez<AsyncClient.margin_v1_post_lending_customized_fixed_purchasez  rS  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zalgo/futures/newOrderTwapTr   r  r~  r   s     r1   *margin_v1_post_algo_futures_new_order_twapz6AsyncClient.margin_v1_post_algo_futures_new_order_twap  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zeth-staking/eth/stakeTr  r  r~  r   s     r1   $margin_v2_post_eth_staking_eth_stakez0AsyncClient.margin_v2_post_eth_staking_eth_stake  r7  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   rs  Tr   r  r~  r   s     r1   *margin_v1_post_loan_flexible_repay_historyz6AsyncClient.margin_v1_post_loan_flexible_repay_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr  r  r   r   s     r1   v3_post_user_data_streamz$AsyncClient.v3_post_user_data_stream  +     &&v/?SYcg&hhhhr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zlending/auto-invest/index/infoTr   r  r~  r   s     r1   ,margin_v1_get_lending_auto_invest_index_infoz8AsyncClient.margin_v1_get_lending_auto_invest_index_info  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z)sol-staking/sol/history/redemptionHistoryTr   r  r~  r   s     r1   8margin_v1_get_sol_staking_sol_history_redemption_historyzDAsyncClient.margin_v1_get_sol_staking_sol_history_redemption_history  <     --e5`imtz  EF-  G  G  	G  Gr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"broker/rebate/futures/recentRecordTr   r  r~  r   s     r1   1margin_v1_get_broker_rebate_futures_recent_recordz=AsyncClient.margin_v1_get_broker_rebate_futures_recent_record  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r  Tr  r  r~  r   s     r1   0margin_v3_get_broker_sub_account_futures_summaryz<AsyncClient.margin_v3_get_broker_sub_account_futures_summary  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   (margin_v1_post_margin_manual_liquidationz4AsyncClient.margin_v1_post_margin_manual_liquidation  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z)lending/auto-invest/target-asset/roi/listTr   r  r~  r   s     r1   7margin_v1_get_lending_auto_invest_target_asset_roi_listzCAsyncClient.margin_v1_get_lending_auto_invest_target_asset_roi_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   broker/universalTransferTr   r  r~  r   s     r1   'margin_v1_get_broker_universal_transferz3AsyncClient.margin_v1_get_broker_universal_transfer  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wNr   r  Tr   r  r  r   s     r1   futures_v1_put_batch_ordersz'AsyncClient.futures_v1_put_batch_orders  *     ..umDW]gh.iiiir   c                 H   K   | j                  ddd|       d {   S 7 w)Nr   countdownCancelAllHeartBeatTr  r  r   s     r1   /options_v1_post_countdown_cancel_all_heart_beatz;AsyncClient.options_v1_post_countdown_cancel_all_heart_beat  s)     ..v7T]ahn.oooor  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/collateral/dataTr   r  r~  r   s     r1   "margin_v1_get_loan_collateral_dataz.AsyncClient.margin_v1_get_loan_collateral_data  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/repay/historyTr   r  r~  r   s     r1    margin_v1_get_loan_repay_historyz,AsyncClient.margin_v1_get_loan_repay_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zconvert/limit/placeOrderTr   r  r~  r   s     r1   (margin_v1_post_convert_limit_place_orderz4AsyncClient.margin_v1_post_convert_limit_place_order  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wNrW   zconvert/exchangeInfoFr   r  r  r   s     r1   $futures_v1_get_convert_exchange_infoz0AsyncClient.futures_v1_get_convert_exchange_info  s,     ..u6LUZagqr.ssssr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   allOrderListTr  r  r   r   s     r1   v3_get_all_order_listz!AsyncClient.v3_get_all_order_list  s*     &&unTPV`d&eeeer   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   )broker/subAccountApi/ipRestriction/ipListTr   r  r~  r   s     r1   >margin_v1_delete_broker_sub_account_api_ip_restriction_ip_listzJAsyncClient.margin_v1_delete_broker_sub_account_api_ip_restriction_ip_list  s<     --h8clpw}  HI-  J  J  	J  Jr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsub-account/virtualSubAccountTr   r  r~  r   s     r1   .margin_v1_post_sub_account_virtual_sub_accountz:AsyncClient.margin_v1_post_sub_account_virtual_sub_account  s,     --f6U^bioyz-{{{{r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z localentity/deposit/provide-infoTr   r  r~  r   s     r1   .margin_v1_put_localentity_deposit_provide_infoz:AsyncClient.margin_v1_put_localentity_deposit_provide_info  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zportfolio/mintTr   r  r~  r   s     r1   margin_v1_post_portfolio_mintz)AsyncClient.margin_v1_post_portfolio_mint  +     --f6FtZ`jk-llllr   c                 J   K   | j                  ddd|d       d {   S 7 wr  r  r   s     r1   futures_v1_get_order_amendmentz*AsyncClient.futures_v1_get_order_amendment  r:  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsol-staking/sol/claimTr   r  r~  r   s     r1   $margin_v1_post_sol_staking_sol_claimz0AsyncClient.margin_v1_post_sol_staking_sol_claim  r7  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zlending/daily/redeemTr   r  r~  r   s     r1   #margin_v1_post_lending_daily_redeemz/AsyncClient.margin_v1_post_lending_daily_redeem  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zmining/hash-transfer/configTr   r  r~  r   s     r1   *margin_v1_post_mining_hash_transfer_configz6AsyncClient.margin_v1_post_mining_hash_transfer_config  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z%lending/auto-invest/rebalance/historyTr   r  r~  r   s     r1   3margin_v1_get_lending_auto_invest_rebalance_historyz?AsyncClient.margin_v1_get_lending_auto_invest_rebalance_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/repay/collateral/rateTr   r  r~  r   s     r1   (margin_v1_get_loan_repay_collateral_ratez4AsyncClient.margin_v1_get_loan_repay_collateral_rate  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wr  r  r   s     r1   futures_v1_get_income_asynz&AsyncClient.futures_v1_get_income_asyn  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/payment/uidTr   r  r~  r   s     r1    margin_v1_get_mining_payment_uidz,AsyncClient.margin_v1_get_mining_payment_uid  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/flexible/borrow/historyTr  r  r~  r   s     r1   *margin_v2_get_loan_flexible_borrow_historyz6AsyncClient.margin_v2_get_loan_flexible_borrow_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r-  Tr  r  r   r   s     r1   v3_get_orderzAsyncClient.v3_get_order  s)     &&ugdY]&^^^^r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   "capital/contract/convertible-coinsTr   r  r~  r   s     r1   0margin_v1_get_capital_contract_convertible_coinsz<AsyncClient.margin_v1_get_capital_contract_convertible_coins  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z.broker/subAccountApi/permission/vanillaOptionsTr   r  r~  r   s     r1   @margin_v1_post_broker_sub_account_api_permission_vanilla_optionszLAsyncClient.margin_v1_post_broker_sub_account_api_permission_vanilla_options  @     --f6fos  {A  KL-  M  M  	M  Mr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"lending/auto-invest/redeem/historyTr   r  r~  r   s     r1   0margin_v1_get_lending_auto_invest_redeem_historyz<AsyncClient.margin_v1_get_lending_auto_invest_redeem_history#  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   localentity/withdraw/historyTr  r  r~  r   s     r1   *margin_v2_get_localentity_withdraw_historyz6AsyncClient.margin_v2_get_localentity_withdraw_history(  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z)eth-staking/eth/history/redemptionHistoryTr   r  r~  r   s     r1   8margin_v1_get_eth_staking_eth_history_redemption_historyzDAsyncClient.margin_v1_get_eth_staking_eth_history_redemption_history-  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   feeBurnTr   r  r  r   s     r1   futures_v1_get_fee_burnz#AsyncClient.futures_v1_get_fee_burn2  s*     ..uiSYcd.eeeer   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z&lending/auto-invest/index/user-summaryTr   r  r~  r   s     r1   4margin_v1_get_lending_auto_invest_index_user_summaryz@AsyncClient.margin_v1_get_lending_auto_invest_index_user_summary7  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/flexible/borrowTr  r  r~  r   s     r1   #margin_v2_post_loan_flexible_borrowz/AsyncClient.margin_v2_post_loan_flexible_borrow<  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/vip/repayTr   r  r~  r   s     r1   margin_v1_post_loan_vip_repayz)AsyncClient.margin_v1_post_loan_vip_repayA  r
  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rE  Tr   r  r
  r   s     r1   #futures_coin_v1_get_commission_ratez/AsyncClient.futures_coin_v1_get_commission_rateF  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zconvert/assetInfoTr   r  r~  r   s     r1    margin_v1_get_convert_asset_infoz,AsyncClient.margin_v1_get_convert_asset_infoK  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zsor/order/testTr  r  r   r   s     r1   v3_post_sor_order_testz"AsyncClient.v3_post_sor_order_testP  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   (margin_v1_post_broker_universal_transferz4AsyncClient.margin_v1_post_broker_universal_transferU  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z!account/disableFastWithdrawSwitchTr   r  r~  r   s     r1   3margin_v1_post_account_disable_fast_withdraw_switchz?AsyncClient.margin_v1_post_account_disable_fast_withdraw_switchZ  s,     --f6Ybfms}~-r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   
assetIndexFr   r  r  r   s     r1   futures_v1_get_asset_indexz&AsyncClient.futures_v1_get_asset_index_  s*     ..ul5W]gh.iiiir   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   ru  Tr  r  r   r   s     r1   v3_get_rate_limit_orderz#AsyncClient.v3_get_rate_limit_orderd  s+     &&u.?SYcg&hhhhr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   %account/apiRestrictions/ipRestrictionTr   r  r~  r   s     r1   5margin_v1_get_account_api_restrictions_ip_restrictionzAAsyncClient.margin_v1_get_account_api_restrictions_ip_restrictiong  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zbroker/subAccount/bnbBurn/spotTr   r  r~  r   s     r1   /margin_v1_post_broker_sub_account_bnb_burn_spotz;AsyncClient.margin_v1_post_broker_sub_account_bnb_burn_spotl  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wr  r
  r   s     r1    futures_coin_v1_put_batch_ordersz,AsyncClient.futures_coin_v1_put_batch_ordersq  rI  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   rb  Tr  r  r   r   s     r1   v3_delete_open_ordersz!AsyncClient.v3_delete_open_ordersv  s*     &&xdQWae&ffffr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z1broker/subAccountApi/permission/universalTransferTr   r  r~  r   s     r1   Cmargin_v1_post_broker_sub_account_api_permission_universal_transferzOAsyncClient.margin_v1_post_broker_sub_account_api_permission_universal_transfery  s@     --f6irv  ~D  NO-  P  P  	P  Pr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r{  Tr  r  r   r   s     r1   v3_get_my_allocationsz!AsyncClient.v3_get_my_allocations~  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/ltv/adjustment/historyTr   r  r~  r   s     r1   )margin_v1_get_loan_ltv_adjustment_historyz5AsyncClient.margin_v1_get_loan_ltv_adjustment_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r(  Tr   r  r~  r   s     r1   *margin_v1_get_localentity_withdraw_historyz6AsyncClient.margin_v1_get_localentity_withdraw_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   'sub-account/subAccountApi/ipRestrictionTr  r  r~  r   s     r1   9margin_v2_post_sub_account_sub_account_api_ip_restrictionzEAsyncClient.margin_v2_post_sub_account_sub_account_api_ip_restriction  <     --f6_hlsy  DE-  F  F  	F  Fr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   ru  Tr   r  r  r   s     r1   futures_v1_get_rate_limit_orderz+AsyncClient.futures_v1_get_rate_limit_order  s,     ..u6GPT[akl.mmmmr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   'broker/subAccountApi/commission/futuresTr   r  r~  r   s     r1   7margin_v1_get_broker_sub_account_api_commission_futureszCAsyncClient.margin_v1_get_broker_sub_account_api_commission_futures  <     --e5^gkrx  CD-  E  E  	E  Er   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z&sol-staking/sol/history/stakingHistoryTr   r  r~  r   s     r1   5margin_v1_get_sol_staking_sol_history_staking_historyzAAsyncClient.margin_v1_get_sol_staking_sol_history_staking_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   	openOrderTr   r  r  r   s     r1   futures_v1_get_open_orderz%AsyncClient.futures_v1_get_open_order  s*     ..uk$U[ef.ggggr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zalgo/spot/orderTr   r  r~  r   s     r1    margin_v1_delete_algo_spot_orderz,AsyncClient.margin_v1_delete_algo_spot_order  s,     --h8IRV]cmn-oooor   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r-  Tr  r  r   r   s     r1   v3_post_orderzAsyncClient.v3_post_order  s)     &&vwt&Z^&____r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   @margin_v1_delete_account_api_restrictions_ip_restriction_ip_listzLAsyncClient.margin_v1_delete_account_api_restrictions_ip_restriction_ip_list  s@     --h8fos  {A  KL-  M  M  	M  Mr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r   Tr   r  r~  r   s     r1   1margin_v1_post_capital_contract_convertible_coinsz=AsyncClient.margin_v1_post_capital_contract_convertible_coins  r?  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmanaged-subaccount/marginAssetTr   r  r~  r   s     r1   -margin_v1_get_managed_subaccount_margin_assetz9AsyncClient.margin_v1_get_managed_subaccount_margin_asset  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   	orderListTr  r  r   r   s     r1   v3_delete_order_listz AsyncClient.v3_delete_order_list  s*     &&xTPV`d&eeeer   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   Amargin_v1_post_sub_account_sub_account_api_ip_restriction_ip_listzMAsyncClient.margin_v1_post_sub_account_sub_account_api_ip_restriction_ip_list  r$  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zbroker/subAccountApi/commissionTr   r  r~  r   s     r1   0margin_v1_post_broker_sub_account_api_commissionz<AsyncClient.margin_v1_post_broker_sub_account_api_commission  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r-  Tr   r  r  r   s     r1   futures_v1_post_fee_burnz$AsyncClient.futures_v1_post_fee_burn  s*     ..vyTZde.ffffr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zbroker/subAccount/marginSummaryTr   r  r~  r   s     r1   /margin_v1_get_broker_sub_account_margin_summaryz;AsyncClient.margin_v1_get_broker_sub_account_margin_summary  s,     --e5V_cjpz{-||||r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zlending/auto-invest/plan/listTr   r  r~  r   s     r1   +margin_v1_get_lending_auto_invest_plan_listz7AsyncClient.margin_v1_get_lending_auto_invest_plan_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/vip/loanable/dataTr   r  r~  r   s     r1   $margin_v1_get_loan_vip_loanable_dataz0AsyncClient.margin_v1_get_loan_vip_loanable_data  r)  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/flexible/collateral/dataTr  r  r~  r   s     r1   +margin_v2_get_loan_flexible_collateral_dataz7AsyncClient.margin_v2_get_loan_flexible_collateral_data  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   'margin_v1_delete_broker_sub_account_apiz3AsyncClient.margin_v1_delete_broker_sub_account_api  s,     --h8NW[bhrs-ttttr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z+sol-staking/sol/history/bnsolRewardsHistoryTr   r  r~  r   s     r1   ;margin_v1_get_sol_staking_sol_history_bnsol_rewards_historyzGAsyncClient.margin_v1_get_sol_staking_sol_history_bnsol_rewards_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zconvert/limit/queryOpenOrdersTr   r  r~  r   s     r1   -margin_v1_get_convert_limit_query_open_ordersz9AsyncClient.margin_v1_get_convert_limit_query_open_orders  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zaccount/commissionTr  r  r   r   s     r1   v3_get_account_commissionz%AsyncClient.v3_get_account_commission  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr  r  r   r   s     r1   v3_post_order_list_ocoz"AsyncClient.v3_post_order_list_oco  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"managed-subaccount/query-trans-logTr   r  r~  r   s     r1   0margin_v1_get_managed_subaccount_query_trans_logz<AsyncClient.margin_v1_get_managed_subaccount_query_trans_log  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r2  Tr  r  r~  r   s     r1   4margin_v2_post_broker_sub_account_api_ip_restrictionz@AsyncClient.margin_v2_post_broker_sub_account_api_ip_restriction  r?  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zlending/auto-invest/all/assetTr   r  r~  r   s     r1   +margin_v1_get_lending_auto_invest_all_assetz7AsyncClient.margin_v1_get_lending_auto_invest_all_asset  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r  r   s     r1   $futures_v1_post_convert_accept_quotez0AsyncClient.futures_v1_post_convert_accept_quote	  s,     ..v7LUY`fpq.rrrrr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zspot/delist-scheduleTr   r  r~  r   s     r1   "margin_v1_get_spot_delist_schedulez.AsyncClient.margin_v1_get_spot_delist_schedule  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   rE  Tr   r  r~  r   s     r1   6margin_v1_post_account_api_restrictions_ip_restrictionzBAsyncClient.margin_v1_post_account_api_restrictions_ip_restriction  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zdci/product/accountsTr   r  r~  r   s     r1   "margin_v1_get_dci_product_accountsz.AsyncClient.margin_v1_get_dci_product_accounts  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rV  Tr   r  r~  r   s     r1   8margin_v1_get_sub_account_sub_account_api_ip_restrictionzDAsyncClient.margin_v1_get_sub_account_sub_account_api_ip_restriction  r^  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"sub-account/transaction-statisticsTr   r  r~  r   s     r1   0margin_v1_get_sub_account_transaction_statisticsz<AsyncClient.margin_v1_get_sub_account_transaction_statistics"  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"managed-subaccount/deposit/addressTr   r  r~  r   s     r1   0margin_v1_get_managed_subaccount_deposit_addressz<AsyncClient.margin_v1_get_managed_subaccount_deposit_address'  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zportfolio/accountTr  r  r~  r   s     r1   margin_v2_get_portfolio_accountz+AsyncClient.margin_v2_get_portfolio_account,  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z+simple-earn/locked/history/redemptionRecordTr   r  r~  r   s     r1   :margin_v1_get_simple_earn_locked_history_redemption_recordzFAsyncClient.margin_v1_get_simple_earn_locked_history_redemption_record1  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rs  Tr   r  r  r   s     r1   futures_v1_get_order_asyn_idz(AsyncClient.futures_v1_get_order_asyn_id6  rF  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zmanaged-subaccount/withdrawTr   r  r~  r   s     r1   *margin_v1_post_managed_subaccount_withdrawz6AsyncClient.margin_v1_post_managed_subaccount_withdraw;  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zlocalentity/deposit/historyTr   r  r~  r   s     r1   )margin_v1_get_localentity_deposit_historyz5AsyncClient.margin_v1_get_localentity_deposit_history@  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zeth-staking/wbeth/wrapTr   r  r~  r   s     r1   %margin_v1_post_eth_staking_wbeth_wrapz1AsyncClient.margin_v1_post_eth_staking_wbeth_wrapE  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   z"simple-earn/locked/setRedeemOptionTr   r  r~  r   s     r1   3margin_v1_post_simple_earn_locked_set_redeem_optionz?AsyncClient.margin_v1_post_simple_earn_locked_set_redeem_optionJ  r?  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r~  r   s     r1   <margin_v1_post_broker_sub_account_api_ip_restriction_ip_listzHAsyncClient.margin_v1_post_broker_sub_account_api_ip_restriction_ip_listO  s<     --f6ajnu{  FG-  H  H  	H  Hr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r\  Tr   r  r~  r   s     r1   8margin_v1_post_broker_sub_account_api_commission_futureszDAsyncClient.margin_v1_post_broker_sub_account_api_commission_futuresT  rX  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rb  Tr  r  r   r   s     r1   v3_get_open_orderszAsyncClient.v3_get_open_ordersY  s)     &&ul4f^b&ccccr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z lending/auto-invest/history/listTr   r  r~  r   s     r1   .margin_v1_get_lending_auto_invest_history_listz:AsyncClient.margin_v1_get_lending_auto_invest_history_list\  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/customize/margin_callTr   r  r~  r   s     r1   )margin_v1_post_loan_customize_margin_callz5AsyncClient.margin_v1_post_loan_customize_margin_calla  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z broker/subAccount/bnbBurn/statusTr   r  r~  r   s     r1   0margin_v1_get_broker_sub_account_bnb_burn_statusz<AsyncClient.margin_v1_get_broker_sub_account_bnb_burn_statusf  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z"managed-subaccount/accountSnapshotTr   r  r~  r   s     r1   1margin_v1_get_managed_subaccount_account_snapshotz=AsyncClient.margin_v1_get_managed_subaccount_account_snapshotk  r4  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zasset/convert-transferTr   r  r~  r   s     r1   %margin_v1_post_asset_convert_transferz1AsyncClient.margin_v1_post_asset_convert_transferp  r  r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   r  Tr  r  r   s     r1   options_v1_get_income_asynz&AsyncClient.options_v1_get_income_asynu  s'     ..umDW].^^^^r  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r  Tr   r  r~  r   s     r1   <margin_v1_get_broker_sub_account_api_commission_coin_futureszHAsyncClient.margin_v1_get_broker_sub_account_api_commission_coin_futuresz  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r  Tr  r  r~  r   s     r1   0margin_v2_get_broker_sub_account_futures_summaryz<AsyncClient.margin_v2_get_broker_sub_account_futures_summary  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/ongoing/ordersTr   r  r~  r   s     r1   !margin_v1_get_loan_ongoing_ordersz-AsyncClient.margin_v1_get_loan_ongoing_orders  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zloan/flexible/ongoing/ordersTr  r  r~  r   s     r1   *margin_v2_get_loan_flexible_ongoing_ordersz6AsyncClient.margin_v2_get_loan_flexible_ongoing_orders  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zalgo/futures/newOrderVpTr   r  r~  r   s     r1   (margin_v1_post_algo_futures_new_order_vpz4AsyncClient.margin_v1_post_algo_futures_new_order_vp  rV  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r  Tr   r  r  r   s     r1   !futures_v1_post_convert_get_quotez-AsyncClient.futures_v1_post_convert_get_quote  s,     ..v7IRV]cmn.oooor   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zalgo/spot/subOrdersTr   r  r~  r   s     r1   "margin_v1_get_algo_spot_sub_ordersz.AsyncClient.margin_v1_get_algo_spot_sub_orders  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zportfolio/redeemTr   r  r~  r   s     r1   margin_v1_post_portfolio_redeemz+AsyncClient.margin_v1_post_portfolio_redeem  s,     --f6HQU\blm-nnnnr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zlending/auto-invest/plan/addTr   r  r~  r   s     r1   +margin_v1_post_lending_auto_invest_plan_addz7AsyncClient.margin_v1_post_lending_auto_invest_plan_add  ry  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   ro  Tr  r  r   r   s     r1   v3_get_order_listzAsyncClient.v3_get_order_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   rr  Tr  r  r   r   s     r1   v3_get_my_tradeszAsyncClient.v3_get_my_trades  s)     &&ujF\`&aaaar   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z%lending/auto-invest/source-asset/listTr   r  r~  r   s     r1   3margin_v1_get_lending_auto_invest_source_asset_listz?AsyncClient.margin_v1_get_lending_auto_invest_source_asset_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r  Tr   r  r~  r   s     r1   #margin_v1_get_margin_all_order_listz/AsyncClient.margin_v1_get_margin_all_order_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zeth-staking/eth/redeemTr   r  r~  r   s     r1   %margin_v1_post_eth_staking_eth_redeemz1AsyncClient.margin_v1_post_eth_staking_eth_redeem  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zbroker/rebate/historicalRecordTr   r  r~  r   s     r1   -margin_v1_get_broker_rebate_historical_recordz9AsyncClient.margin_v1_get_broker_rebate_historical_record  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z-simple-earn/locked/history/subscriptionRecordTr   r  r~  r   s     r1   <margin_v1_get_simple_earn_locked_history_subscription_recordzHAsyncClient.margin_v1_get_simple_earn_locked_history_subscription_record  <     --e5dmqx~  IJ-  K  K  	K  Kr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r-  Tr   r  r
  r   s     r1   futures_coin_v1_put_orderz%AsyncClient.futures_coin_v1_put_order  s*     33E74V\fg3hhhhr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmanaged-subaccount/assetTr   r  r~  r   s     r1   &margin_v1_get_managed_subaccount_assetz2AsyncClient.margin_v1_get_managed_subaccount_asset  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zsol-staking/sol/quotaTr   r  r~  r   s     r1   #margin_v1_get_sol_staking_sol_quotaz/AsyncClient.margin_v1_get_sol_staking_sol_quota  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   zloan/vip/renewTr   r  r~  r   s     r1   margin_v1_post_loan_vip_renewz)AsyncClient.margin_v1_post_loan_vip_renew  r
  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z.managed-subaccount/queryTransLogForTradeParentTr   r  r~  r   s     r1   Amargin_v1_get_managed_subaccount_query_trans_log_for_trade_parentzMAsyncClient.margin_v1_get_managed_subaccount_query_trans_log_for_trade_parent  ro  r   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   rV  Tr   r  r~  r   s     r1   9margin_v1_post_sub_account_sub_account_api_ip_restrictionzEAsyncClient.margin_v1_post_sub_account_sub_account_api_ip_restriction  rX  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z-simple-earn/flexible/history/redemptionRecordTr   r  r~  r   s     r1   <margin_v1_get_simple_earn_flexible_history_redemption_recordzHAsyncClient.margin_v1_get_simple_earn_flexible_history_redemption_record  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   r  Tr   r  r~  r   s     r1   $margin_v1_get_broker_sub_account_apiz0AsyncClient.margin_v1_get_broker_sub_account_api  r  r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   exerciseHistoryFr  r  r   s     r1   options_v1_get_exercise_historyz+AsyncClient.options_v1_get_exercise_history  s)     ..u6GPU\b.ccccr  c                 J   K   | j                  ddd|d       d {   S 7 wr  r~  r   s     r1   #margin_v1_get_convert_exchange_infoz/AsyncClient.margin_v1_get_convert_exchange_info  s,     --e5KTY`fpq-rrrrr   c                 J   K   | j                  ddd|d       d {   S 7 w)Nr   r{  Tr   r  r  r   s     r1   futures_v1_delete_batch_orderz)AsyncClient.futures_v1_delete_batch_order  s*     ..xdY_ij.kkkkr   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   z+eth-staking/eth/history/wbethRewardsHistoryTr   r  r~  r   s     r1   ;margin_v1_get_eth_staking_eth_history_wbeth_rewards_historyzGAsyncClient.margin_v1_get_eth_staking_eth_history_wbeth_rewards_history  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/pub/algoListTr   r  r~  r   s     r1   "margin_v1_get_mining_pub_algo_listz.AsyncClient.margin_v1_get_mining_pub_algo_list  r  r   c                 H   K   | j                  ddd|       d {   S 7 w)NrW   blockTradesFr  r  r   s     r1   options_v1_get_block_tradesz'AsyncClient.options_v1_get_block_trades	  s'     ..umEX^.____r  c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zcopyTrading/futures/leadSymbolTr   r  r~  r   s     r1   .margin_v1_get_copy_trading_futures_lead_symbolz:AsyncClient.margin_v1_get_copy_trading_futures_lead_symbol  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zmining/worker/listTr   r  r~  r   s     r1    margin_v1_get_mining_worker_listz,AsyncClient.margin_v1_get_mining_worker_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 w)NrW   zdci/product/listTr   r  r~  r   s     r1   margin_v1_get_dci_product_listz*AsyncClient.margin_v1_get_dci_product_list  r  r   c                 J   K   | j                  ddd|d       d {   S 7 wr/  r  r   s     r1   #futures_v1_get_convert_order_statusz/AsyncClient.futures_v1_get_convert_order_status  s,     ..u6KTX_eop.qqqqr   )F)Fr   rJ   )NN)NFN(J  __name__
__module____qualname__r   BASE_ENDPOINT_DEFAULTr   rv   r   r   boolr   r   r.   classmethodr?   rD   rE   rH   r<   r   __doc__rr   ClientResponserk   PUBLIC_API_VERSIONr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   r7   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r
  r  r  r   r#  r%  r(  r*  r1  TIME_IN_FORCE_GTCr9  r?  rC  rF  rJ  rL  rO  rQ  rU  rY  r\  r_  rc  rf  rj  rp  rs  rv  ry  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r  r  r  r  r   r#  r%  r(  r*  r-  r0  r3  r6  r:  r<  r?  rA  rE  rI  rL  rN  rQ  rU  rW  rZ  rb  rd  rg  r8   rn  rr  rv  ry  r{  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r   r   r  r  r  r  r  r   r%  r(  r+  r.  r1  r4  r7  r;  r?  rC  rF  rI  rM  rP  rT  rX  r[  r]  r_  ra  rc  re  rg  ri  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r   r   r   r"  r%  r(  r*  r,  r.  r0  r2  r4  r7  r9  r;  r=  r?  rA  rC  rE  rG  rJ  rM  rO  rQ  rT  rX  rZ  r\  r^  r`  rb  rd  rf  rh  rj  rl  rn  rq  rt  /futures_coin_accout_order_history_download_linkrx  r{  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r$  r'  r)  r+  r-  r/  r2  r4  r6  r8  r:  r<  r@  rD  rH  rK  rM  rP  rT  rV  rX  r[  r^  ra  rd  rf  rh  rj  rl  rn  rp  rr  ru  rw  ry  r|  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rN  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r
  r  r  r  r  r  r  r  r  r  r"  r$  r'  r)  r,  r0  r2  r5  r7  r;  r=  r?  rB  rD  rG  rI  rK  rM  rO  rQ  rS  rU  rW  rY  r[  r]  r_  ra  rc  re  rh  rj  rl  ro  rr  rt  rv  rx  rz  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r  r  r  r  r  r  r  r   r"  r$  r&  r(  r+  r-  r0  r3  r6  r9  r<  r>  rA  rC  rE  rH  rK  rN  rP  rR  rU  rX  rZ  r\  r^  r`  rb  rd  rf  rh  rj  rl  rn  rq  rt  rv  rx  r|  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r	  r  r  r  r  r  r  r  r  r  r  r!  r#  r&  r)  r+  r.  r0  r2  r4  r6  r8  r:  r<  r>  rA  rC  rF  rH  rJ  rL  rN  rP  rR  rT  rW  rZ  r]  r`  rc  re  rg  ri  rk  rm  rp  rr  rt  rv  rx  rz  r|  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r	  __classcell__)r0   s   @r1   r   r      sdX    "&$(48'==3726*.%)#')
#)
 SM)
 "$sCx.1	)

 )
 )
 )
 )
 !c3h0)
 eCI./)
 #3-)
 c])
 C=)
 )
V  "&$(48'==3726*.%)#'/#/ SM/ "$sCx.1	/
 / / / / !c3h0/ eCI.// #3-/ c]/ C=/ / /bw44    &66>> DI?9?9(,?9<@?9BFw/E/E F, --
P 34P	P $)P	P 34P	P 34P	PPRV P 34P	P 34P	PBd B
 !**G*GO !**G*GP	P !**G*GO	O !**G*GR	RD  "..66L/ / !' 8 8 @ @x~  %44<<O'D ' ;;&&DL't ' %44<<O
 '+;sm;	d38n	; %44<<O
t 
 %+$@$@$H$H!5 5 $22::N64 6 !' 8 8 @ @
t 

 %+$@$@$H$H!
d 

 $*#>#>#F#F 3.j $*#>#>#F#F 8t 8 #0088M6D 6  **22J 3G2K2K7/7	7, nn,,GO -A,E,E	 *	  -3,P,P,X,X!) ,@,E,E
 *
$ %+$@$@$H$H! ,@,E,EI *IV "(!:!:!B!B ,@,E,E
 *
& 	..66 $+ ,@,E,E<' *<'| ,2+N+N+V+V (

 #0088M

  **22J

 !' 8 8 @ @6 (.'F'F'N'N$

 $*#>#>#F#F <
 "..66L,6,H,H 1 !,,44K0:0L0L I %44<<O %66I  &66>>1 "..66L1  &66>>1 !' 8 8 @ @5 #0088M5 $22::NA !' 8 8 @ @; ((00I? $22::N> "..66L@ %44<<OC #)"<"<"D"D= !,,44K
 !' 8 8 @ @> #0088ME '-&D&D&L&L#H %+$@$@$H$H!C %44<<OF !' 8 8 @ @

 "(!:!:!B!B
 	--55 #*

 +1*L*L*T*T'

 %44<<O

 "..66LW #0088M

 *0)J)J)R)R&

 '-&D&D&L&L#
 	//77 %,R #0088M

 !' 8 8 @ @

 (.'F'F'N'N$
 ..H

 #)"<"<"D"D

 $*#>#>#F#F F '-&D&D&L&L# 37

"*3-
 #)"<"<"D"D  %+$@$@$H$H!E  &66>>H "..66L

 "(!:!:!B!B

 +1*L*L*T*T'
 	--55 #*
 	..66 $+
 	88@@ .5

 "(!:!:!B!BW &,%B%B%J%J"X $*#>#>#F#F 
 	0088 &-
 	22:: (/
 	..66 $+
 	33;; )0
 	..66 $+

 '-&D&D&L&L#

 *0)J)J)R)R&R  &66>>Q !' 8 8 @ @V %+$@$@$H$H!U $*#>#>#F#F 
 	--55 #*

 *0)J)J)R)R&
 	..66 $+

 ,2+N+N+V+V (

 -3,P,P,X,X!)

 )/(H(H(P(P%

 +1*L*L*T*T'

 (.'F'F'N'N$W &,%B%B%J%J"
 '-&D&D&L&L#
 '-&D&D&L&L#
 	//77 %,
 	//77 %,

 "(!:!:!B!B

 !' 8 8 @ @
 #)"<"<"D"D

 #)"<"<"D"D

 -3,P,P,X,X!)

 '-&D&D&L&L#

 +1*L*L*T*T'

 '-&D&D&L&L#

 (.'F'F'N'N$

 %+$@$@$H$H!

 +1*L*L*T*T'

 06/V/V/^/^$,

  &66>>

 &,%B%B%J%J"

 %+$@$@$H$H!

 !' 8 8 @ @

 #)"<"<"D"D
 '-&D&D&L&L#

 '-&D&D&L&L#

 '-&D&D&L&L#

 $*#>#>#F#F 
 *0)J)J)R)R&  ,2+N+N+V+V (
 '-&D&D&L&L#

x} 
Z^ 
rz{~r 
F #)"<"<"D"D  5;4`4`4h4h)1
 06/V/V/^/^$,
  ,2+N+N+V+V (
 	44<< *1
 	22:: (/
 	55== +2
 	33;; )0
 	22:: (/
 	0088 &-
 	88@@ .5
 	66>> ,3

 '-&D&D&L&L#

 /5.T.T.\.\#+
 7=6d6d6l6l+3

 (.'F'F'N'N$

 (.'F'F'N'N$

 &,%B%B%J%J"

 $*#>#>#F#F 

 ,2+N+N+V+V (

  &66>>
 '-&D&D&L&L#Y $*#>#>#F#F 
 $22::N
  &66>>
 &,%B%B%J%J"
 &,%B%B%J%J"
 	--55 #*

 $*#>#>#F#F 

 06/V/V/^/^$,

 8>7f7f7n7n,4

 392\2\2d2d'/

 &,%B%B%J%J"

 -3,P,P,X,X!)

 .4-R-R-Z-Z"*

 .4-R-R-Z-Z"*

 4:3^3^3f3f(0

 (.'F'F'N'N$

 -3,P,P,X,X!)

 -3,P,P,X,X!)

 )/(H(H(P(P%

 .4-R-R-Z-Z"*

 .4-R-R-Z-Z"*

 392\2\2d2d'/

 06/V/V/^/^$,

 /5.T.T.\.\#+

 6<5b5b5j5j*2

 281Z1Z1b1b&.

 /5.T.T.\.\#+

 281Z1Z1b1b&.
 .4-R-R-Z-Z"*> "..66L> "..66LF %+$@$@$H$H!L "(!:!:!B!BO !' 8 8 @ @M %+$@$@$H$H!W )/(H(H(P(P%P (.'F'F'N'N$M $22::NV )/(H(H(P(P%W *0)J)J)R)R&Y ,2+L+L+T+T (W )/(H(H(P(P% JN



%(

 )/(H(H(P(P% 48	
 392\2\2d2d'/S "(!:!:!B!BR $*#>#>#F#F 

 392\2\2d2d'/

 4:3^3^3f3f(0

 .4-R-R-Z-Z"*

 -3,P,P,X,X!)R $22::N^ %+$@$@$H$H!$*$@$@$H$H!X (.'F'F'N'N$S 	//77 %,

 *0)J)J)R)R&

 *0)J)J)R)R&

 '-&D&D&L&L#

 -3,P,P,X,X!)S %+$@$@$H$H!P "(!:!:!B!B

 *0)J)J)R)R&

 (.'F'F'N'N$

 (.'F'F'N'N$

  &66>>

 +1*L*L*T*T'

 *0)J)J)R)R&

 #)"<"<"D"D

 7=6d6d6l6l+3

 <B;n;n;v;v08

 -3,P,P,X,X!)W8 $*#>#>#F#F 	S	S
S
S
S
SR $*#>#>#F#F X )/(H(H(P(P%

 )/(H(H(P(P%
V !' 8 8 @ @[ '-&D&D&L&L#Z &,%B%B%J%J"
Y $*#>#>#F#F 
 .4-R-R-Z-Z"*
 %+$@$@$H$H!
 ,2+N+N+V+V (W )/(H(H(P(P%Y )/(H(H(P(P%

 392\2\2d2d'/V &,%B%B%J%J"[ ,2+N+N+V+V (Z +1*L*L*T*T'

 '-&D&D&L&L#

 %44<<OZ '-&D&D&L&L#V '-&D&D&L&L#X *0)J)J)R)R&

 .4-R-R-Z-Z"*

 /5.T.T.\.\#+

 ,2+N+N+V+V (W &,%B%B%J%J"S &,%B%B%J%J"

 ,2+N+N+V+V (

 )/(H(H(P(P%
 
 06/V/V/^/^$,

 -3,P,P,X,X!)  -3,P,P,X,X!)
 (.'F'F'N'N$
 $*#>#>#F#F 

 &,%B%B%J%J"
 %+$@$@$H$H!C !' 8 8 @ @C !' 8 8 @ @K *0)J)J)R)R&Q '-&D&D&L&L#R *0)J)J)R)R&

 .4-R-R-Z-Z"*U -3,P,P,X,X!)R #)"<"<"D"D

 -3,P,P,X,X!)

 /5.T.T.\.\#+

 .4-M-M-U-U"*
 	++33 &-X '-&D&D&L&L#W )/(H(H(P(P%W #)"<"<"D"DX *0)J)J)R)R&

 -3,P,P,X,X!)X 	44<< *1

 /5.T.T.\.\#+X *0)J)J)R)R&

 /5.T.T.\.\#+

 -3,P,P,X,X!)

 $*#>#>#F#F 

 $22::N

 $22::N

 "(!:!:!B!BX
 )/(H(H(P(P%

 .4-R-R-Z-Z"*W &,%B%B%J%J"

 ,2+N+N+V+V (

 +1*L*L*T*T'

 )/(H(H(P(P%

 392\2\2d2d'/
 *0)J)J)R)R&

 ,2+N+N+V+V (

 $*#>#>#F#F 

 ,2+N+N+V+V (

 /5.T.T.\.\#+

 392\2\2d2d'/

 4:3^3^3f3f(0

 170X0X0`0`%-

 +1*L*L*T*T'X +1*L*L*T*T'

 170X0X0`0`%-

 .4-R-R-Z-Z"*  281Z1Z1b1b&.
 -3,P,P,X,X!)
 	::BB 07
 	>>FF 5<
 	::BB 07
 	??GG 5<
 )/(H(H(P(P%

 "(!:!:!B!B

 $*#>#>#F#F 

 ,2+N+N+V+V (

 +1*L*L*T*T'> "..66L> "..66LD "..66LF %+$@$@$H$H!L #)"<"<"D"DM #0088MK "(!:!:!B!BL "(!:!:!B!BM $22::NM %+$@$@$H$H!W
 )/(H(H(P(P%

 $*#>#>#F#F 

 &,%B%B%J%J"

 !' 8 8 @ @Y "..66L
 #)"<"<"D"D
 )/(H(H(P(P%

 $*#>#>#F#F 

 *0)J)J)R)R&

 )/(H(H(P(P%Y #)"<"<"D"D

 ,2+N+N+V+V (

 +1*L*L*T*T'
 #)"<"<"D"D

 170X0X0`0`%-
 )/(H(H(P(P%
 %+$@$@$H$H!

 %+$@$@$H$H!

 )/(H(H(P(P%

 %+$@$@$H$H!

 $*#>#>#F#F   *0)J)J)R)R&
 %+$@$@$H$H!
 !' 8 8 @ @X%66>>`"("<"<"D"DX  &66>>

 .4-R-R-Z-Z"*

 ,2+N+N+V+V (

 )/(H(H(P(P%

 )/(H(H(P(P%

 $*#>#>#F#F 

 $*#>#>#F#F 

 170X0X0`0`%-

 .4-R-R-Z-Z"*

 .4-R-R-Z-Z"*

 ,2+N+N+V+V (

 ,2+N+N+V+V (

 .4-R-R-Z-Z"*

 *0)J)J)R)R&

 *0)J)J)R)R&

 +1*L*L*T*T'

 *0)J)J)R)R&

 -3,P,P,X,X!)

 )/(H(H(P(P%

 06/V/V/^/^$,

 392\2\2d2d'/

 392\2\2d2d'/
 CIB|B|  CE  CE7?

 )/(H(H(P(P%

 *0)J)J)R)R&

 !' 8 8 @ @

 *0)J)J)R)R&

 *0)J)J)R)R&

 #)"<"<"D"D

 &,%B%B%J%J"

 #)"<"<"D"D

 *0)J)J)R)R&

 )/(H(H(P(P%

 &,%B%B%J%J"

 )/(H(H(P(P%

 &,%B%B%J%J"

 )/(H(H(P(P%

 '-&D&D&L&L#

 *0)J)J)R)R&V
 ((00I
































YYY













Y



















































D  &66>>F@G 0:/K/K 4> %66L@ %66L84.4(4(HH %44<<OC &,%B%B%J%J"Q
 $*#>#>#F#F O +1*L*L*T*T'M "(!:!:!B!BP )/(H(H(P(P%O #)"<"<"D"DO #)"<"<"D"DQ %+$@$@$H$H!L  &66>>L #)"<"<"D"DQ &,%B%B%J%J"K #)"<"<"D"DJ (.'F'F'N'N$J $22::NU 170X0X0`0`%-E !' 8 8 @ @D  &66>>N (.'F'F'N'N$I "(!:!:!B!BN '-&D&D&L&L#B !' 8 8 @ @J $*#>#>#F#F N (.'F'F'N'N$M '-&D&D&L&L#C #0088ME %44<<OE  &66>>H #0088MN )/(H(H(P(P%C +1*L*L*T*T'I $*#>#>#F#F H '-&D&D&L&L#A nn,,GOA !,,44KI $*#>#>#F#F 
JQPSBPTPWTVSURS ,2+N+N+V+V (T ,2+N+N+V+V (

 +1*L*L*T*T'
 	--55 #*

  &66>>

  &66>>

  &66>>

 +1*L*L*T*T'
 	//77 %,
 	//77 %,
 	//77 %,
 	--55 #*
 	//77 %,

 -3,P,P,X,X!)
 	//77 %,
 	//77 %,

 '-&D&D&L&L#

 #)"<"<"D"D
 	..66 $+

 ,2+N+N+V+V (

 %+$@$@$H$H!l ,2+N+N+V+V (u 5;4`4`4h4h)1r 281Z1Z1b1b&.r 281Z1Z1b1b&.M NT  NS  NS  N[  N[BJz :@9j9j9r9r.6J MS  MQ  MQ  MY  MYAIj (.'F'F'N'N$i )/(H(H(P(P%| <B;n;n;v;v08u 6<5b5b5j5j*2u 5;4`4`4h4h)1f 392\2\2d2d'/o 06/V/V/^/^$,r 392\2\2d2d'/x 8>7f7f7n7n,4K NT  NS  NS  N[  N[BJq 170X0X0`0`%-i )/(H(H(P(P%q 392\2\2d2d'/I MS  MQ  MQ  MY  MYAID DJC~C~  DG  DG8@i )/(H(H(P(P%{ <B;n;n;v;v08k +1*L*L*T*T'cv 6<5b5b5j5j*2y 9?8h8h8p8p-5n .4-R-R-Z-Z"*{ ;A:l:l:t:t/7u 5;4`4`4h4h)1u 7=6d6d6l6l+3C CIB|B|  CE  CE7?z :@9j9j9r9r.6G JP  JK  JK  JS  JS>Fr 281Z1Z1b1b&.y 9?8h8h8p8p-5~ @F?v?v?~?~4<s 5;4`4`4h4h)1s 392\2\2d2d'/x 9?8h8h8p8p-5h &,%B%B%J%J"F FL  FC  FC  FK  FK:BA AG@x@x  AA  AA5=o 06/V/V/^/^$,o /5.T.T.\.\#+z :@9j9j9r9r.6a !' 8 8 @ @p 06/V/V/^/^$,w 7=6d6d6l6l+3D EK  EA  EA  EI  EI9As 4:3^3^3f3f(0x 9?8h8h8p8p-5kgy 9?8h8h8p8p-5r 392\2\2d2d'/i )/(H(H(P(P%p 06/V/V/^/^$,t 5;4`4`4h4h)1v 7=6d6d6l6l+3w 7=6d6d6l6l+3q 281Z1Z1b1b&.@ CIB|B|  CE  CE7?t 4:3^3^3f3f(0m -3,P,P,X,X!)g 4:3^3^3f3f(0A AG@x@x  AA  AA5={ =C<p<p<x<x19q 170X0X0`0`%-l .4-R-R-Z-Z"*o 06/V/V/^/^$,b -3,P,P,X,X!)h &,%B%B%J%J"e BHAzAz  BC  BC6>v 6<5b5b5j5j*2vnt 4:3^3^3f3f(0j *0)J)J)R)R&u 5;4`4`4h4h)1C CIB|B|  CE  CE7?F GM  GE  GE  GM  GM;CA CIB|B|  CE  CE7?I KQ  KM  KM  KU  KU?G@ @F?v?v?~?~4<p 170X0X0`0`%-L NT  NS  NS  N[  N[BJq 281Z1Z1b1b&.y 9?8h8h8p8p-5d !' 8 8 @ @{ ;A:l:l:t:t/7i *0)J)J)R)R&ly 9?8h8h8p8p-5j +1*L*L*T*T'l )/(H(H(P(P%r 281Z1Z1b1b&.C CIB|B|  CE  CE7?t 5;4`4`4h4h)1n .4-R-R-Z-Z"*A BHAzAz  BC  BC6>A DJC~C~  DG  DG8@m -3,P,P,X,X!)q 170X0X0`0`%-j *0)J)J)R)R&} =C<p<p<x<x19n .4-R-R-Z-Z"*B BHAzAz  BC  BC6>p ?E>t>t>|>|3;~ @F?v?v?~?~4<{ =C<p<p<x<x19v 6<5b5b5j5j*2x 9?8h8h8p8p-5t 4:3^3^3f3f(0q 170X0X0`0`%-y 9?8h8h8p8p-5abo /5.T.T.\.\#+y 9?8h8h8p8p-5u 5;4`4`4h4h)1l ,2+N+N+V+V (O SY  S]  S]  Se  SeGO| >D=r=r=z=z2:a -3,P,P,X,X!)y 9?8h8h8p8p-5hr 281Z1Z1b1b&.n .4-R-R-Z-Z"* @F?v?v?~?~4<x :@9j9j9r9r.6t 4:3^3^3f3f(0z :@9j9j9r9r.6i| <B;n;n;v;v08G HN  HG  HG  HO  HO<D@ AG@x@x  AA  AA5=~ @F?v?v?~?~4<xG GM  GE  GE  GM  GM;Cv 7=6d6d6l6l+3j +1*L*L*T*T'p ?E>t>t>|>|3;r 281Z1Z1b1b&.p 06/V/V/^/^$,w 8>7f7f7n7n,4t 4:3^3^3f3f(0f %+$@$@$H$H!J NT  NS  NS  N[  N[BJ| >D=r=r=z=z2:~ >D=r=r=z=z2:m -3,P,P,X,X!)m .4-R-R-Z-Z"*t 4:3^3^3f3f(0s 392\2\2d2d'/z :@9j9j9r9r.6C CIB|B|  CE  CE7?x 8>7f7f7n7n,4j *0)J)J)R)R&p 06/V/V/^/^$,z :@9j9j9r9r.6_@ @F?v?v?~?~4<M PV  PW  PW  P_  P_DL@ @F?v?v?~?~4<z :@9j9j9r9r.6G HN  HG  HG  HO  HO<Df '-&D&D&L&L#D DJC~C~  DG  DG8@s 392\2\2d2d'/m -3,P,P,X,X!)r 392\2\2d2d'/o 06/V/V/^/^$,i &,%B%B%J%J"w 8>7f7f7n7n,4@ CIB|B|  CE  CE7?j *0)J)J)R)R&iC EK  EA  EA  EI  EI9A} ?E>t>t>|>|3;o 06/V/V/^/^$,gP SY  S]  S]  Se  SeGOgy 9?8h8h8p8p-5z :@9j9j9r9r.6F IO  II  II  IQ  IQ=En /5.T.T.\.\#+E GM  GE  GE  GM  GM;CD EK  EA  EA  EI  EI9Ah )/(H(H(P(P%p 06/V/V/^/^$,`M PV  PW  PW  P_  P_DLA AG@x@x  AA  AA5=| =C<p<p<x<x19f $*#>#>#F#F M QW  QY  QY  Qa  QaEM~ @F?v?v?~?~4<g (.'F'F'N'N$} ?E>t>t>|>|3;{ ;A:l:l:t:t/7t 4:3^3^3f3f(0{ ;A:l:l:t:t/7u 7=6d6d6l6l+3I KQ  KM  KM  KU  KU?G{ =C<p<p<x<x19l )/(H(H(P(P%h@ @F?v?v?~?~4<A DJC~C~  DG  DG8@{ ;A:l:l:t:t/7s 4:3^3^3f3f(0r 281Z1Z1b1b&.D FL  FC  FC  FK  FK:Br 281Z1Z1b1b&.E HN  HG  HG  HO  HO<D@ @F?v?v?~?~4<@ @F?v?v?~?~4<o /5.T.T.\.\#+I JP  JK  JK  JS  JS>Fl ,2+N+N+V+V (z :@9j9j9r9r.6y 9?8h8h8p8p-5u 5;4`4`4h4h)1A CIB|B|  CE  CE7?H LR  LO  LO  LW  LW@HF HN  HG  HG  HO  HO<Dd~ >D=r=r=z=z2:y 9?8h8h8p8p-5~ @F?v?v?~?~4<@ AG@x@x  AA  AA5=u 5;4`4`4h4h)1_ *0)J)J)R)R&I LR  LO  LO  LW  LW@H~ @F?v?v?~?~4<q 170X0X0`0`%-z :@9j9j9r9r.6v 8>7f7f7n7n,4p 170X0X0`0`%-q 281Z1Z1b1b&.o /5.T.T.\.\#+{ ;A:l:l:t:t/7c !' 8 8 @ @bC CIB|B|  CE  CE7?q 392\2\2d2d'/u 5;4`4`4h4h)1| =C<p<p<x<x19K LR  LO  LO  LW  LW@Hi )/(H(H(P(P%v 6<5b5b5j5j*2s 392\2\2d2d'/m -3,P,P,X,X!)L QW  QY  QY  Qa  QaEMF IO  II  II  IQ  IQ=EK LR  LO  LO  LW  LW@Hr 4:3^3^3f3f(0d /5.T.T.\.\#+s 392\2\2d2d'/l -3,P,P,X,X!)I KQ  KM  KM  KU  KU?Gq 281Z1Z1b1b&.` +1*L*L*T*T'| >D=r=r=z=z2:p 06/V/V/^/^$,n .4-R-R-Z-Z"*r 392\2\2d2d'//r2   r   ) r  pathlibr   typingr   r   r   r   r   urllib.parser	   r
   r9   r_  rD   rc   binance.enumsr   binance.exceptionsr   r   r   binance.helpersr   r   r   r   base_clientr   clientr   r   rC   r2   r1   <module>r	     sQ      3 3 )     . 
  $ F`e* F`er2   