pyokx.low_rest_api.Account

class pyokx.low_rest_api.Account.AccountAPI(api_key='-1', api_secret_key='-1', passphrase='-1', use_server_time=False, flag='1', domain='https://www.okx.com', debug=True)[source]

Bases: Client

activate_option()[source]
adjustment_margin(instId, posSide, type, amt, loanTrans='')[source]
borrow_repay(ccy='', side='', amt='', ordId='')[source]
get_VIP_interest_accrued_data(ccy='', ordId='', after='', before='', limit='')[source]
get_VIP_interest_deducted_data(ccy='', ordId='', after='', before='', limit='')[source]
get_VIP_loan_order_detail(ccy='', ordId='', after='', before='', limit='')[source]
get_VIP_loan_order_list(ordId='', state='', ccy='', after='', before='', limit='')[source]
get_account_balance(ccy='')[source]
get_account_bills(instType='', ccy='', mgnMode='', ctType='', type='', subType='', after='', before='', limit='')[source]
get_account_bills_archive(instType='', ccy='', mgnMode='', ctType='', type='', subType='', after='', before='', limit='')[source]
get_account_config()[source]
get_account_position_risk()[source]
get_account_position_tiers(instType='', uly='', instFamily='')[source]
get_borrow_repay_history(ccy='', after='', before='', limit='')[source]
get_fee_rates(instType, instId='', uly='', category='', instFamily='')[source]
get_greeks(ccy='')[source]
get_interest_accrued(instId='', ccy='', mgnMode='', after='', before='', limit='')[source]
get_interest_limits(type='', ccy='')[source]
get_interest_rate(ccy='')[source]
get_leverage(instId, mgnMode)[source]
get_max_avail_size(instId, tdMode, ccy='', reduceOnly='', unSpotOffset='', quickMgnType='')[source]
get_max_loan(instId, mgnMode, mgnCcy)[source]
get_max_order_size(instId, tdMode, ccy='', px='')[source]
get_max_withdrawal(ccy='')[source]
get_position_risk(instType='')[source]
get_positions(instType='', instId='')[source]
get_positions_history(instType='', instId='', mgnMode='', type='', posId='', after='', before='', limit='')[source]
get_simulated_margin(instType='', inclRealPos=True, spotOffsetType='', simPos=[])[source]
set_account_level(acctLv)[source]
set_auto_loan(autoLoan='')[source]
set_greeks(greeksType)[source]
set_isolated_mode(isoMode, type)[source]
set_leverage(lever, mgnMode, instId='', ccy='', posSide='')[source]
set_position_mode(posMode)[source]
set_risk_offset_typel(type='')[source]
Inheritance diagram of pyokx.low_rest_api.Account