From 6a046b8c3ef1cbf621224b4d704ba4829a8e4786 Mon Sep 17 00:00:00 2001 From: GrupoCITEC Date: Wed, 13 Mar 2019 20:32:56 -0300 Subject: [PATCH] Enable ETH (#16) --- mercadobitcoin/trade_api.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mercadobitcoin/trade_api.py b/mercadobitcoin/trade_api.py index d394830..53bcf19 100644 --- a/mercadobitcoin/trade_api.py +++ b/mercadobitcoin/trade_api.py @@ -63,56 +63,56 @@ def get_account_info(self): def get_order(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#get_order""" - check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP"], "order_id": int }) + check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP", "BRLETH"], "order_id": int }) return self.__check_response(self.__post_tapi("get_order", kwargs)) def list_orders(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#list_orders""" - check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP"] }, { "order_type": [1, 2], "status_list": str, "has_fills": [True, False], "from_id": int, "to_id": int, "from_timestamp": str, "to_timestamp": str }) + check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP", "BRLETH"] }, { "order_type": [1, 2], "status_list": str, "has_fills": [True, False], "from_id": int, "to_id": int, "from_timestamp": str, "to_timestamp": str }) return self.__check_response(self.__post_tapi("list_orders", kwargs )) def list_orderbook(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#list_orderbook""" - - check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP"] }, { "full": [True, False] }) + + check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP", "BRLETH"] }, { "full": [True, False] }) return self.__check_response(self.__post_tapi("list_orderbook", kwargs )) def place_buy_order(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#place_buy_order""" - check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP"], "quantity": str, "limit_price": str }) + check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP", "BRLETH"], "quantity": str, "limit_price": str }) return self.__check_response(self.__post_tapi("place_buy_order", kwargs )) def place_sell_order(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#place_sell_order""" - check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP"], "quantity": str, "limit_price": str }) + check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP", "BRLETH"], "quantity": str, "limit_price": str }) return self.__check_response(self.__post_tapi("place_sell_order", kwargs )) def cancel_order(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#cancel_order""" - check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP"], "order_id": int }) + check_args(kwargs, { "coin_pair": ["BRLBTC", "BRLLTC", "BRLBCH", "BRLXRP", "BRLETH"], "order_id": int }) return self.__check_response(self.__post_tapi("cancel_order", kwargs )) def get_withdrawal(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#get_withdrawal""" - check_args(kwargs, { "coin": ["BRL", "BTC", "LTC", "BCH", "XRP"], "withdrawal_id": int }) + check_args(kwargs, { "coin": ["BRL", "BTC", "LTC", "BCH", "XRP", "ETH"], "withdrawal_id": int }) return self.__check_response(self.__post_tapi("get_withdrawal", kwargs )) def withdraw_coin(self, **kwargs): """https://www.mercadobitcoin.com.br/trade-api/#withdraw_coin""" - check_args(kwargs, { "coin": ["BRL", "BTC", "LTC", "BCH", "XRP"], "quantity": str, "destiny": str }, { "description": str }) + check_args(kwargs, { "coin": ["BRL", "BTC", "LTC", "BCH", "XRP", "ETH"], "quantity": str, "destiny": str }, { "description": str }) return self.__check_response(self.__post_tapi("withdraw_coin", kwargs ))