コード例 #1
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def withdraw(self, **kwargs):
     schema_keys = ['currency', 'address',
                    'message', 'amount', 'opt_fee']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #2
0
ファイル: public.py プロジェクト: ZhangZhaofeng/abiapis
 def depth(self, group_id, currency_pair):
     schema_keys = ['currency_pair', 'group_id']
     return self._execute_api(method_name(),
                              schema_keys,
                              group_id=group_id,
                              currency_pair=currency_pair)
コード例 #3
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def withdraw_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
コード例 #4
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def deposit_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
コード例 #5
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def trade(self, **kwargs):
     schema_keys = ['currency_pair', 'action',
                    'price', 'amount', 'limit', 'comment']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #6
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def active_orders(self, **kwargs):
     schema_keys = ['currency_pair', 'is_token', 'is_token_both']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #7
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def get_personal_info(self):
     return self._execute_api(method_name())
コード例 #8
0
ファイル: public.py プロジェクト: ZhangZhaofeng/abiapis
 def currencies(self, currency):
     schema_keys = ['currency']
     return self._execute_api(method_name(), schema_keys, currency=currency)
コード例 #9
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def change_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id',
                    'price', 'limit', 'stop']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #10
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def cancel_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #11
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def create_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'currency_pair', 'action',
                    'price', 'amount', 'leverage', 'limit', 'stop']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #12
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def active_positions(self, **kwargs):
     schema_keys = ['type', 'group_id', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #13
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
    def get_positions(self, **kwargs):
        schema_keys = ['type', 'group_id', 'from_num', 'count',
                       'from_id', 'end_id', 'order',
                       'since', 'end', 'currency_pair']

        return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #14
0
ファイル: public.py プロジェクト: ZhangZhaofeng/abiapis
 def groups(self, group_id):
     schema_keys = ['group_id']
     return self._execute_api(method_name(), schema_keys, group_id=group_id)
コード例 #15
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def get_id_info(self):
     return self._execute_api(method_name())
コード例 #16
0
ファイル: public.py プロジェクト: ZhangZhaofeng/abiapis
 def currency_pairs(self, currency_pair):
     schema_keys = ['currency_pair']
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
コード例 #17
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def trade_history(self, **kwargs):
     schema_keys = ['from_num', 'count', 'from_id',
                    'end_id', 'order', 'since', 'end',
                    'currency_pair', 'is_token']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #18
0
ファイル: public.py プロジェクト: ZhangZhaofeng/abiapis
 def last_price(self, group_id, currency_pair=None):
     schema_keys = ['currency_pair', 'group_id']
     return self._execute_api(method_name(),
                              schema_keys,
                              group_id=group_id,
                              currency_pair=currency_pair)
コード例 #19
0
ファイル: trade.py プロジェクト: ZhangZhaofeng/abiapis
 def cancel_order(self, **kwargs):
     schema_keys = ['order_id', 'is_token', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)