Ejemplo n.º 1
0
 def withdraw(self, **kwargs):
     schema_keys = ['currency', 'address',
                    'message', 'amount', 'opt_fee']
     return self._execute_api(method_name(), schema_keys, kwargs)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def withdraw_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
Ejemplo n.º 4
0
 def deposit_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
Ejemplo n.º 5
0
 def trade(self, **kwargs):
     schema_keys = ['currency_pair', 'action',
                    'price', 'amount', 'limit', 'comment']
     return self._execute_api(method_name(), schema_keys, kwargs)
Ejemplo n.º 6
0
 def active_orders(self, **kwargs):
     schema_keys = ['currency_pair', 'is_token', 'is_token_both']
     return self._execute_api(method_name(), schema_keys, kwargs)
Ejemplo n.º 7
0
 def get_personal_info(self):
     return self._execute_api(method_name())
Ejemplo n.º 8
0
 def currencies(self, currency):
     schema_keys = ['currency']
     return self._execute_api(method_name(), schema_keys, currency=currency)
Ejemplo n.º 9
0
 def change_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id',
                    'price', 'limit', 'stop']
     return self._execute_api(method_name(), schema_keys, kwargs)
Ejemplo n.º 10
0
 def cancel_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id']
     return self._execute_api(method_name(), schema_keys, kwargs)
Ejemplo n.º 11
0
 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)
Ejemplo n.º 12
0
 def active_positions(self, **kwargs):
     schema_keys = ['type', 'group_id', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
Ejemplo n.º 13
0
    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)
Ejemplo n.º 14
0
 def groups(self, group_id):
     schema_keys = ['group_id']
     return self._execute_api(method_name(), schema_keys, group_id=group_id)
Ejemplo n.º 15
0
 def get_id_info(self):
     return self._execute_api(method_name())
Ejemplo n.º 16
0
 def currency_pairs(self, currency_pair):
     schema_keys = ['currency_pair']
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
Ejemplo n.º 17
0
 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)
Ejemplo n.º 18
0
 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)
Ejemplo n.º 19
0
 def cancel_order(self, **kwargs):
     schema_keys = ['order_id', 'is_token', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)