コード例 #1
0
ファイル: public.py プロジェクト: techbureau/zaifapi
 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)
コード例 #2
0
ファイル: public.py プロジェクト: fcce-proj/zaifapi
 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)
コード例 #3
0
ファイル: trade.py プロジェクト: rafael950110/programs
    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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #7
0
 def trade(self, **kwargs):
     schema_keys = [
         "currency_pair", "action", "price", "amount", "limit", "comment"
     ]
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #8
0
ファイル: public.py プロジェクト: techbureau/zaifapi
 def currencies(self, currency):
     schema_keys = ["currency"]
     return self._execute_api(method_name(), schema_keys, currency=currency)
コード例 #9
0
ファイル: public.py プロジェクト: techbureau/zaifapi
 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)
コード例 #10
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def deposit_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
コード例 #11
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def active_orders(self, **kwargs):
     schema_keys = ['currency_pair', 'is_token', 'is_token_both']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #12
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def get_id_info(self):
     return self._execute_api(method_name())
コード例 #13
0
 def cancel_position(self, **kwargs):
     schema_keys = ["type", "group_id", "leverage_id"]
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #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)
コード例 #15
0
 def active_positions(self, **kwargs):
     schema_keys = ["type", "group_id", "currency_pair"]
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #16
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def cancel_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #17
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def get_personal_info(self):
     return self._execute_api(method_name())
コード例 #18
0
ファイル: public.py プロジェクト: rafael950110/programs
 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)
コード例 #19
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 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)
コード例 #20
0
ファイル: public.py プロジェクト: rafael950110/programs
 def depth(self, currency_pair):
     schema_keys = ['currency_pair']
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
コード例 #21
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def withdraw_history(self, **kwargs):
     return self._inner_history_api(method_name(), kwargs)
コード例 #22
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def cancel_order(self, **kwargs):
     schema_keys = ['order_id', 'is_token', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #23
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def withdraw(self, **kwargs):
     schema_keys = ['currency', 'address',
                    'message', 'amount', 'opt_fee']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #24
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def trade(self, **kwargs):
     schema_keys = ['currency_pair', 'action',
                    'price', 'amount', 'limit', 'comment']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #25
0
ファイル: public.py プロジェクト: techbureau/zaifapi
 def groups(self, group_id):
     schema_keys = ["group_id"]
     return self._execute_api(method_name(), schema_keys, group_id=group_id)
コード例 #26
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def active_positions(self, **kwargs):
     schema_keys = ['type', 'group_id', 'currency_pair']
     return self._execute_api(method_name(), schema_keys, kwargs)
コード例 #27
0
ファイル: public.py プロジェクト: techbureau/zaifapi
 def currency_pairs(self, currency_pair):
     schema_keys = ["currency_pair"]
     return self._execute_api(method_name(),
                              schema_keys,
                              currency_pair=currency_pair)
コード例 #28
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 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)
コード例 #29
0
ファイル: public.py プロジェクト: techbureau/zaifapi
 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)
コード例 #30
0
ファイル: trade.py プロジェクト: fcce-proj/zaifapi
 def change_position(self, **kwargs):
     schema_keys = ['type', 'group_id', 'leverage_id',
                    'price', 'limit', 'stop']
     return self._execute_api(method_name(), schema_keys, kwargs)