-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mercado Bitcoin BCH/BRL market missing #400
Comments
Hi, @Felipe-Mangueira ! Sure! Looks like they upgraded their public API at last, and now we can rewrite it a little. Will be there in very short time. |
Ok, @kroitor. If you can put this task on your priority list, I will be very appreciatted, because I already trade in this exchanger. Does this upgrade takes a long time to be fulfilled? |
@Felipe-Mangueira This issue has been solved in v.1.9.260. Don't forget to upgrade it. We will be happy if you report back if it works for you as expected or not. Cheers! |
Thank you so much @kroitor. Sure, I'll report as soon as possible. |
Hey @kroitor , |
@Felipe-Mangueira , can you please paste your code + verbose output (without the keys) ? |
Sure, @kroitor . Sorry for did not share it before.
This code returns something like that:
If it helps you, the "response = self.privatePostGetAccountInfo()" line within the "fetch_balance" function from mercado class can read my balance but doesn't return the dictionary. |
@Felipe-Mangueira sorry, but we need verbose output: mercado = ccxt.mercado({'nonce': lambda: int(time.time() * 1000)})
mercado.verbose = True # ←--------------- add this line before doing other calls It will print much more output. Can you paste it here, plz? Remove your keys and passwords from there. Hope you understand... P.S. Use triple backticks for pasting code and results: ``` |
Sorry again, @kroitor It follows the response:
|
@Felipe-Mangueira ok, no problem, now i see the cause of it, I will fix it right away and will get back to you shortly. |
Ok, this should be completely fixed in 1.9.269. Can you please update and report if it works normally for you now? I tested it on my side and it should. Standing by for your reply. Thx! |
Thank you, @kroitor !! Waiting. |
@Felipe-Mangueira it's there, does it work for you? Let us know, plz. |
Hey, @kroitor . It's working properly right now. Thank you so much once again. |
@Felipe-Mangueira cool! Thx! Sure, feel free to ask your questions or open issues if you have any difficulties with it. Your feedback is very welcome! Thx again! |
Hi, @kroitor, Sorry for disturbing you again with this issue, but I think there is still something wrong with the BCH/BTC market, because all my limit orders (with the function ccxt.mercado.create_order(args)) in this market are not being placed, regardless the amount or the price or the side. Could you please take a look in your code? Thank you again for your patience. This is the verbose output:
|
@Felipe-Mangueira sure, I'll take a look into it asap. |
Thank you! I'll be waiting for your reply. |
@Felipe-Mangueira this should be completely fixed in 1.9.292 |
Thx again, @kroitor! |
@Felipe-Mangueira sorry, we're having an issue with publishing to PyPI, the new version will be there right away. Thx! |
Ok @kroitor. Sorry for late reply. I noticed you have uploaded the updated version of ccxt library and I already have installed the package. Thanks for your concern. |
idex new wss endpoint
Hey,
I noticed the BCH/BTC market is missing in the Mercado Bitcoin exchange. Could you implement this routine to make trading in this market possible?
Also, I cannot make any request with the private API, cause the following error is always raising. Could you fix this issue as well?
Traceback (most recent call last):
File "C:/Users/me/example.py", line 92, in
x = mercado.create_order("BTC/BRL", 'limit', 'buy', 0.01, 10000)
File "C:\Program Files\Python36\lib\site-packages\ccxt\exchanges.py", line 16337, in create_order
response = getattr(self, method)(self.extend(order, params))
File "C:\Program Files\Python36\lib\site-packages\ccxt\exchanges.py", line 16389, in request
response = self.fetch2(path, api, method, params, headers, body)
File "C:\Program Files\Python36\lib\site-packages\ccxt\exchange.py", line 241, in fetch2
request = self.sign(path, api, method, params, headers, body)
File "C:\Program Files\Python36\lib\site-packages\ccxt\exchanges.py", line 16384, in sign
'TAPI-MAC': self.hmac(self.encode(auth), self.secret, hashlib.sha512),
File "C:\Program Files\Python36\lib\site-packages\ccxt\exchange.py", line 604, in hmac
h = hmac.new(secret, request, algorithm)
File "C:\Program Files\Python36\lib\hmac.py", line 144, in new
return HMAC(key, msg, digestmod)
File "C:\Program Files\Python36\lib\hmac.py", line 42, in init
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).name)
TypeError: key: expected bytes or bytearray, but got 'str'
The text was updated successfully, but these errors were encountered: