Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
 def trade(self, **kwargs):
     schema_keys = [
         "currency_pair", "action", "price", "amount", "limit", "comment"
     ]
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #8
0
 def currencies(self, currency):
     schema_keys = ["currency"]
     return self._execute_api(method_name(), schema_keys, currency=currency)
Beispiel #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)
Beispiel #10
0
 def deposit_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
Beispiel #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)
Beispiel #12
0
 def get_id_info(self):
     return self._execute_api(method_name())
Beispiel #13
0
 def cancel_position(self, **kwargs):
     schema_keys = ["type", "group_id", "leverage_id"]
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #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)
Beispiel #15
0
 def active_positions(self, **kwargs):
     schema_keys = ["type", "group_id", "currency_pair"]
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #16
0
 def cancel_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id']
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #17
0
 def get_personal_info(self):
     return self._execute_api(method_name())
Beispiel #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)
Beispiel #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)
Beispiel #20
0
 def depth(self, currency_pair):
     schema_keys = ['currency_pair']
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
Beispiel #21
0
 def withdraw_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
Beispiel #22
0
 def cancel_order(self, **kwargs):
     schema_keys = ['order_id', 'is_token', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #23
0
 def withdraw(self, **kwargs):
     schema_keys = ['currency', 'address',
                    'message', 'amount', 'opt_fee']
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #24
0
 def trade(self, **kwargs):
     schema_keys = ['currency_pair', 'action',
                    'price', 'amount', 'limit', 'comment']
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #25
0
 def groups(self, group_id):
     schema_keys = ["group_id"]
     return self._execute_api(method_name(), schema_keys, group_id=group_id)
Beispiel #26
0
 def active_positions(self, **kwargs):
     schema_keys = ['type', 'group_id', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
Beispiel #27
0
 def currency_pairs(self, currency_pair):
     schema_keys = ["currency_pair"]
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
Beispiel #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)
Beispiel #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)
Beispiel #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)