Skip to content
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

Não está enviando ordens de compra a Bitcoin Trade #3

Closed
vitorgamer58 opened this issue Jun 8, 2019 · 3 comments
Closed

Não está enviando ordens de compra a Bitcoin Trade #3

vitorgamer58 opened this issue Jun 8, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@vitorgamer58
Copy link
Owner

vitorgamer58 commented Jun 8, 2019

Foi reportado que o Bot não envia ordens de compra para a API da Bitcoin Trade

exemplo de envio de ordem para a Braziliex

[6/7/2019 12:51:00 PM]  https://braziliex.com/api/v1/privatecommand=sell&market=btc_brl&amount=0.001&price=3080001
[6/7/2019 12:51:01 PM]  {"success":1,"message":" ##RESERVED FOR ORDER  / SELL / BTC_BRL / AMOUNT: 0.001 BTC / PRICE: 3080001 BRL / TOTAL: 3080.001 BRL / FEE: 0.00000500 BTC (0.4999%) ","order_number":"5cfa5db5addff4460e4ac2d9","trigger":0}
@vitorgamer58 vitorgamer58 added the bug Something isn't working label Jun 8, 2019
@vitorgamer58 vitorgamer58 self-assigned this Jun 8, 2019
@vitorgamer58
Copy link
Owner Author

String parameters = "{\"currency\":\"BTC\",\"amount\": " + amount.ToString().Replace(",", ".") + ",\"type\": \"" + type + "\",\"subtype\": \"limited\",\"unit_price\": " + Convert.ToString(price).Replace(",", ".") + "}";

é um método que não é mais suportado pela API V2, devendo ser substituído por:

String parameters = "{\"pair\":\"BRLBTC\",\"amount\": " + amount.ToString().Replace(",", ".") + ",\"type\": \"" + type + "\",\"subtype\": \"limited\",\"unit_price\": " + Convert.ToString(price).Replace(",", ".") + "}";

vitorgamer58 added a commit that referenced this issue Jun 8, 2019
Updated Readme
Updated ExchangeBitcoinTrade.cs
Removido LOGS
ket.txt -> bitcointrade_key era um parâmetro não utilizado.

Refer to #3
@vitorgamer58 vitorgamer58 pinned this issue Jun 8, 2019
@vitorgamer58
Copy link
Owner Author

[08/06/2019 15:17:35]  BITCOINTRADE > BRAZILIEX | Buy[0]1564,06 Buy[1]1564,06| Sell[0]1570 Sell[1]1570 | 0,37978082682250041558507986%
[08/06/2019 15:17:37]  0,38% BITCOINTRADE > BRAZILIEX 
[08/06/2019 15:17:37]  BITCOINTRADE > BRAZILIEX | Buy[0]1564,06 Buy[1]1564,06| Sell[0]1570 Sell[1]1570 | 0,37978082682250041558507986%
[08/06/2019 15:17:38]  -4,37% BRAZILIEX > BITCOINTRADE 
[08/06/2019 15:17:39]  0,38% BITCOINTRADE > BRAZILIEX 
[08/06/2019 15:17:39]  BITCOINTRADE > BRAZILIEX | Buy[0]1564,06 Buy[1]1564,06| Sell[0]1570 Sell[1]1570 | 0,37978082682250041558507986%
[08/06/2019 15:17:40]  -4,37% BRAZILIEX > BITCOINTRADE 
[08/06/2019 15:17:41]  0,38% BITCOINTRADE > BRAZILIEX 
[08/06/2019 15:17:41]  BITCOINTRADE > BRAZILIEX | Buy[0]1564,06 Buy[1]1564,06| Sell[0]1570 Sell[1]1570 | 0,37978082682250041558507986%
[08/06/2019 15:17:42]  -4,37% BRAZILIEX > BITCOINTRADE 
[08/06/2019 15:17:44]  0,38% BITCOINTRADE > BRAZILIEX 
[08/06/2019 15:17:44]  BITCOINTRADE > BRAZILIEX | Buy[0]1564,06 Buy[1]1564,06| Sell[0]1570 Sell[1]1570 | 0,37978082682250041558507986%
[08/06/2019 15:17:45]  -4,37% BRAZILIEX > BITCOINTRADE 

O bot persiste desta forma sem enviar ordens, tanto em BTC quanto em BCH, provávelmente por falta de Saldo na Bitcoin Trade

20190608_logger.txt

@vitorgamer58
Copy link
Owner Author

Aparentemente, ordens de compra e venda na bitcointrade não são informada nos log, ao contrário da Braziliex.

O saldo nas exchanges e o valor declarado no key.txt são essenciais também.

Screenshot_247

porém recebi um email confirmando a execução da ordem do código que faz arbitragem com BCH

como os dois são iguais, mudando apenas BTC e BCH -> concluo que o código está atualizado e; em perfeito estado de funcionamento dentro do possível.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant