Path: blob/master/bitget-python-sdk-api/bitget/__pycache__/account_api.cpython-38.pyc
732 views
U ��_� � @ s( d dl mZ d dlT G dd� de�ZdS )� )�Client)�*c @ s� e Zd Zd"dd�Zdd� Zdd� Zdd � Zd d� Zd#d d�Zdd� Z dd� Z d$dd�Zdd� Zd%dd�Z dd� Zdd� Zdd� Zd&dd �Zd!S )'� AccountAPIFc C s t �| |||||� d S �N)r �__init__)�self�api_keyZapi_secret_key� passphraseZuse_server_timeZfirst� r �T/Users/larry/PycharmProjects/V3-Open-API-SDK/okex-python-sdk-api/okex/account_api.pyr s zAccountAPI.__init__c C s | � tt�S r )�_request_without_params�GETZCURRENCIES_INFO�r r r r �get_currencies s zAccountAPI.get_currenciesc C s | � tt�S r )r r ZWALLET_INFOr r r r � get_wallet s zAccountAPI.get_walletc C s | � ttt|� �S r )r r Z CURRENCY_INFO�str�r �currencyr r r �get_currency s zAccountAPI.get_currencyc C s ||||||d�}| � tt|�S )N)r �amount�destination� to_address� trade_pwd�fee)�_request_with_params�POSTZ COIN_WITHDRAW)r r r r r r r �paramsr r r � coin_withdraw s zAccountAPI.coin_withdraw� c C s i }|r||d<