Exemple #1
0
 def swap_history(self, group_id, currency_pair, page=None):
     if not page:
         schema_keys = ["currency_pair", "group_id"]
         return self._execute_api(method_name(),
                                  schema_keys,
                                  group_id=group_id,
                                  currency_pair=currency_pair)
     schema_keys = ["currency_pair", "group_id", "page"]
     return self._execute_api(method_name(),
                              schema_keys,
                              group_id=group_id,
                              currency_pair=currency_pair,
                              page=page)
Exemple #2
0
 def swap_history(self, group_id, currency_pair, page=None):
     if not page:
         schema_keys = ['currency_pair', 'group_id']
         return self._execute_api(method_name(),
                                  schema_keys,
                                  group_id=group_id,
                                  currency_pair=currency_pair)
     schema_keys = ['currency_pair', 'group_id', 'page']
     return self._execute_api(method_name(),
                              schema_keys,
                              group_id=group_id,
                              currency_pair=currency_pair,
                              page=page)
Exemple #3
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)
Exemple #4
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)
Exemple #5
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)
Exemple #6
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)
Exemple #7
0
 def trade(self, **kwargs):
     schema_keys = [
         "currency_pair", "action", "price", "amount", "limit", "comment"
     ]
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #8
0
 def currencies(self, currency):
     schema_keys = ["currency"]
     return self._execute_api(method_name(), schema_keys, currency=currency)
Exemple #9
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)
Exemple #10
0
 def deposit_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
Exemple #11
0
 def active_orders(self, **kwargs):
     schema_keys = ['currency_pair', 'is_token', 'is_token_both']
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #12
0
 def get_id_info(self):
     return self._execute_api(method_name())
Exemple #13
0
 def cancel_position(self, **kwargs):
     schema_keys = ["type", "group_id", "leverage_id"]
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #14
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)
Exemple #15
0
 def active_positions(self, **kwargs):
     schema_keys = ["type", "group_id", "currency_pair"]
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #16
0
 def cancel_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id']
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #17
0
 def get_personal_info(self):
     return self._execute_api(method_name())
Exemple #18
0
 def trades(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)
Exemple #19
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)
Exemple #20
0
 def depth(self, currency_pair):
     schema_keys = ['currency_pair']
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
Exemple #21
0
 def withdraw_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
Exemple #22
0
 def cancel_order(self, **kwargs):
     schema_keys = ['order_id', 'is_token', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #23
0
 def withdraw(self, **kwargs):
     schema_keys = ['currency', 'address',
                    'message', 'amount', 'opt_fee']
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #24
0
 def trade(self, **kwargs):
     schema_keys = ['currency_pair', 'action',
                    'price', 'amount', 'limit', 'comment']
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #25
0
 def groups(self, group_id):
     schema_keys = ["group_id"]
     return self._execute_api(method_name(), schema_keys, group_id=group_id)
Exemple #26
0
 def active_positions(self, **kwargs):
     schema_keys = ['type', 'group_id', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
Exemple #27
0
 def currency_pairs(self, currency_pair):
     schema_keys = ["currency_pair"]
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
Exemple #28
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)
Exemple #29
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)
Exemple #30
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)