Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 6 of 7 1 2 3 4 5 6 7
Re: BitTrex Plugin (Crypto Trading) [Re: vinsom] #469708
12/03/17 16:50
12/03/17 16:50
Joined: Nov 2017
Posts: 34
C
Cheulmen Offline
Newbie
Cheulmen  Offline
Newbie
C

Joined: Nov 2017
Posts: 34
No, thank you for the plugin!

OK great, I'm continuing with the testing, It is working now again with half of the stack, Lots=20. Lets see what happens.

Re: BitTrex Plugin (Crypto Trading) [Re: Cheulmen] #469709
12/03/17 17:42
12/03/17 17:42
Joined: Sep 2016
Posts: 20
France
J
JohanAu Offline
Newbie
JohanAu  Offline
Newbie
J

Joined: Sep 2016
Posts: 20
France
Hello Vinsom,

So far I am able to play with some strategies almost succesfully with your plugin.
The only things left I would say is the calculation of the spread:

the plugin log display:
2017-12-03 18:28:37,979 INFO [default] BrokerAsset IN Symbol: XLM/BTC
2017-12-03 18:28:38,385 INFO [default] Asset Details: BTC-XLM Price: 0.00000792 Spread: 0.00000001

so Spread is 1 satoshis and it is correct.

But when I display it in Zorro :

Close Long XLM/BTC
Asset : XLM/BTC
Commission : 0.00000002
Commission cost : -0.00001000
pip cost : 0.00000126
Lots : 2.00000000
spread : 0.00001000
spread cost : -0.00252207
LotAmount : 205.00000000
BalanceLong : -0.00253207
WinTotal : 0.00000000
[Sun 17-12-03 17:38] 0 -0 +0 0.00000794/0.00000794.00000794/0.00000794

The spread is set to 1000 satoshis, causing a huge spread cost and consequently a huge loss.
I do not overwrite it with Zorro so I can't tell if it is plugin related or Zorro related. Please let me know what you think when you will have some time.

Regards, Johan

Re: BitTrex Plugin (Crypto Trading) [Re: JohanAu] #469711
12/03/17 20:01
12/03/17 20:01
Joined: Nov 2017
Posts: 34
C
Cheulmen Offline
Newbie
Cheulmen  Offline
Newbie
C

Joined: Nov 2017
Posts: 34
It is happening again, it doesn't make the first trade:

Click to reveal..
2017-12-03 18:55:14,307 INFO [default] CallGetAccBaseCurrExchRate IN
2017-12-03 18:55:14,307 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC
2017-12-03 18:55:15,479 INFO [default] {"success":true,"message":"","result":

{"Bid":11646.00000001,"Ask":11649.94499999,"Last":11649.94499999}}
2017-12-03 18:55:15,479 INFO [default] GetAccBaseCurrExchRate OUT
2017-12-03 18:55:15,479 INFO [default] CallGetAccBaseCurrExchRate OUT
2017-12-03 18:55:15,479 INFO [default] BrokerAccount IN
2017-12-03 18:55:15,479 INFO [default] apisign:MYKEYS
2017-12-03 18:55:15,651 INFO [default] {"success":true,"message":"","result":

{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}}
2017-12-03 18:55:15,651 INFO [default] CallGetAccBaseCurrExchRate IN
2017-12-03 18:55:15,651 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC
2017-12-03 18:55:15,666 INFO [default] {"success":true,"message":"","result":

{"Bid":11646.00000001,"Ask":11649.94499999,"Last":11649.94499999}}
2017-12-03 18:55:15,666 INFO [default] GetAccBaseCurrExchRate OUT
2017-12-03 18:55:15,666 INFO [default] CallGetAccBaseCurrExchRate OUT
2017-12-03 18:55:15,666 INFO [default] BrokerAccount OUT
2017-12-03 18:55:15,666 INFO [default] BrokerLogin OUT
2017-12-03 18:55:15,666 INFO [default] BrokerTime IN
2017-12-03 18:55:15,666 INFO [default] BrokerTime OUT
2017-12-03 18:55:15,682 INFO [default] BrokerAccount IN
2017-12-03 18:55:15,682 INFO [default] apisign:MYKEYS
2017-12-03 18:55:15,682 INFO [default] {"success":true,"message":"","result":

{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}}
2017-12-03 18:55:15,682 INFO [default] CallGetAccBaseCurrExchRate IN
2017-12-03 18:55:15,682 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC
2017-12-03 18:55:15,713 INFO [default] {"success":true,"message":"","result":

{"Bid":11646.00000001,"Ask":11649.94499999,"Last":11649.94499999}}
2017-12-03 18:55:15,713 INFO [default] GetAccBaseCurrExchRate OUT
2017-12-03 18:55:15,713 INFO [default] CallGetAccBaseCurrExchRate OUT
2017-12-03 18:55:15,713 INFO [default] BrokerAccount OUT
2017-12-03 18:55:15,713 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 18:55:15,713 INFO [default] CanSubscribe IN
2017-12-03 18:55:15,776 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 18:55:15,807 INFO [default] Asset Details: BTC-ETH Price: 0.04087400 Spread: 0.00001400 MinAmount: 0.04894763 PipCost:

0.00000570
2017-12-03 18:55:15,807 INFO [default] BrokerAsset OUT
2017-12-03 18:55:15,822 INFO [default] BrokerHistory2 IN
2017-12-03 18:55:15,822 INFO [default] Params BTC-ETH Start : 11/05/17 22:25:15 End : 12/03/17 17:55:15 nTickMinutes : 5 nTicks :

300
2017-12-03 18:55:15,822 INFO [default] BrokerHistory3 IN
2017-12-03 18:55:15,994 INFO [default] return nTick: 28
2017-12-03 18:55:15,994 INFO [default] BrokerHistory3 OUT
2017-12-03 18:55:15,994 INFO [default] BrokerHistory2 IN
2017-12-03 18:55:15,994 INFO [default] Params BTC-ETH Start : 11/05/17 22:25:15 End : 11/06/17 00:00:00 nTickMinutes : 5 nTicks :

300
2017-12-03 18:55:15,994 INFO [default] BrokerHistory3 IN
2017-12-03 18:55:16,156 INFO [default] return nTick: 1
2017-12-03 18:55:16,156 INFO [default] BrokerHistory3 OUT
2017-12-03 18:55:16,182 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 18:55:16,213 INFO [default] Asset Details: BTC-ETH Price: 0.04087400 Spread: 0.00001400 MinAmount: 0.04894763 PipCost:

0.00000570
2017-12-03 18:55:16,213 INFO [default] BrokerAsset OUT
2017-12-03 18:55:16,276 INFO [default] BrokerTime IN
2017-12-03 18:55:16,276 INFO [default] BrokerTime OUT
2017-12-03 18:55:16,276 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 18:55:16,307 INFO [default] Asset Details: BTC-ETH Price: 0.04087400 Spread: 0.00001400
2017-12-03 18:55:16,307 INFO [default] BrokerAsset OUT
2017-12-03 18:55:16,307 INFO [default] BrokerAccount IN
2017-12-03 18:55:16,307 INFO [default] apisign: MYKEYS
2017-12-03 18:55:16,307 INFO [default] {"success":true,"message":"","result":

{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}}
2017-12-03 18:55:16,307 INFO [default] CallGetAccBaseCurrExchRate IN
2017-12-03 18:55:16,307 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC
2017-12-03 18:55:16,354 INFO [default] {"success":true,"message":"","result":

{"Bid":11646.00000001,"Ask":11649.94499999,"Last":11649.94499999}}
2017-12-03 18:55:16,354 INFO [default] GetAccBaseCurrExchRate OUT
2017-12-03 18:55:16,354 INFO [default] CallGetAccBaseCurrExchRate OUT
2017-12-03 18:55:16,354 INFO [default] BrokerAccount OUT
2017-12-03 18:55:16,760 INFO [default] BrokerTime IN
2017-12-03 18:55:16,760 INFO [default] BrokerTime OUT
2017-12-03 18:55:16,760 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 18:55:16,776 INFO [default] Asset Details: BTC-ETH Price: 0.04087400 Spread: 0.00001400

[...]

2017-12-03 19:12:41,651 INFO [default] BrokerAsset OUT
2017-12-03 19:12:42,071 INFO [default] BrokerTime IN
2017-12-03 19:12:42,071 INFO [default] BrokerTime OUT
2017-12-03 19:12:42,071 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 19:12:42,290 INFO [default] Asset Details: BTC-ETH Price: 0.04086050 Spread: 0.00000004
2017-12-03 19:12:42,290 INFO [default] BrokerAsset OUT
2017-12-03 19:12:42,290 INFO [default] BrokerBuy IN
2017-12-03 19:12:42,290 INFO [default] BrokerBuy Params: BTC-ETH Amount:-20 StopDist:0.00000000
2017-12-03 19:12:42,540 INFO [default] market=BTC-ETH&quantity=0.97895252&rate=0.04086046
2017-12-03 19:12:42,540 INFO [default] apisign: MYKEYS
2017-12-03 19:12:42,759 INFO [default] {"success":false,"message":"INSUFFICIENT_FUNDS","result":null}
2017-12-03 19:12:42,759 ERROR [default] INSUFFICIENT_FUNDS
2017-12-03 19:12:42,759 ERROR [default] market/selllimit
2017-12-03 19:12:42,759 ERROR [default] market=BTC-ETH&quantity=0.97895252&rate=0.04086046
2017-12-03 19:12:42,759 ERROR [default] market/selllimit - Error Parsing JSon
2017-12-03 19:12:42,759 ERROR [default] Error calling API BrokerBuy
2017-12-03 19:12:42,759 INFO [default] BrokerBuy OUT
2017-12-03 19:12:42,759 INFO [default] BrokerAccount IN
2017-12-03 19:12:42,759 INFO [default] apisign: MYKEYS
2017-12-03 19:12:42,946 INFO [default] {"success":true,"message":"","result":

{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}}
2017-12-03 19:12:42,946 INFO [default] CallGetAccBaseCurrExchRate IN
2017-12-03 19:12:42,946 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC
2017-12-03 19:12:43,024 INFO [default] {"success":true,"message":"","result":

{"Bid":11670.00000000,"Ask":11684.00000000,"Last":11670.00000000}}
2017-12-03 19:12:43,024 INFO [default] GetAccBaseCurrExchRate OUT
2017-12-03 19:12:43,024 INFO [default] CallGetAccBaseCurrExchRate OUT
2017-12-03 19:12:43,024 INFO [default] BrokerAccount OUT
2017-12-03 19:12:43,431 INFO [default] BrokerTime IN
2017-12-03 19:12:43,431 INFO [default] BrokerTime OUT
2017-12-03 19:12:43,431 INFO [default] BrokerAsset IN Symbol: ETH/BTC
2017-12-03 19:12:43,727 INFO [default] Asset Details: BTC-ETH Price: 0.04086050 Spread: 0.00000004
2017-12-03 19:12:43,727 INFO [default] BrokerAsset OUT


Re: BitTrex Plugin (Crypto Trading) [Re: Cheulmen] #469712
12/03/17 21:15
12/03/17 21:15
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi Cheulmen,
So from the log you posted I see you are trying to sell ETH 0.97895252.
Can you please post what is your ETH balance ?
The one logged is converted to BTC, so I can't tell from the log file.

The error insufficient fund is returned from the API broker call, so if the plugin sends correct data to the API (quantity=0.97895252&rate=0.04086046) not sure what else could be.

Maybe another test you can do is try to sell ETH 0.97895252 at a rate out of the money (so the order doesn't get filled) on Bittrex web site and see if you get the same error or not.

I don't have funds on Bittrex right now. I will do a test as soon as I have some.

Cheers

Last edited by vinsom; 12/03/17 21:20.
Re: BitTrex Plugin (Crypto Trading) [Re: vinsom] #469713
12/03/17 21:19
12/03/17 21:19
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi JohanAU,
If you see the spread calculated correctly in the log file, that is the value sent to Zorro in the plugin.
I can't tell what happen afterwards and why the spread doesn't match.
We should ask someone in the Zorro team for more details.

Please also get latest dll. I made some changes outlined in a previous post.
Are you doing back testing crypto strategies or live ?

Cheers

Re: BitTrex Plugin (Crypto Trading) [Re: vinsom] #469720
12/04/17 17:46
12/04/17 17:46
Joined: Sep 2016
Posts: 20
France
J
JohanAu Offline
Newbie
JohanAu  Offline
Newbie
J

Joined: Sep 2016
Posts: 20
France
Hi Vinsom,
Thanks for the update,

I have played with your latest plugin update and got a very messy results laugh

2017-12-04 18:41:03,316 INFO [default] Asset Details: BTC-BAT Price: 0.00001719 Spread: 0.00000012 MinAmount: -3.00000000 PipCost: -0.00000003
2017-12-04 18:41:03,316 INFO [default] BrokerAsset OUT
2017-12-04 18:41:03,316 INFO [default] BrokerAsset IN Symbol: FUN/BTC
2017-12-04 18:41:03,567 INFO [default] Asset Details: BTC-FUN Price: 0.00000252 Spread: 0.00000001 MinAmount: -3.00000000 PipCost: -0.00000003
2017-12-04 18:41:03,567 INFO [default] BrokerAsset OUT
2017-12-04 18:41:03,567 INFO [default] BrokerAsset IN Symbol: MCO/BTC
2017-12-04 18:41:03,926 INFO [default] Asset Details: BTC-MCO Price: 0.00097603 Spread: 0.00000203 MinAmount: 1.02456000 PipCost: 0.00000001
2017-12-04 18:41:03,926 INFO [default] BrokerAsset OUT
2017-12-04 18:41:03,926 INFO [default] BrokerAsset IN Symbol: MTL/BTC
2017-12-04 18:41:04,145 INFO [default] Asset Details: BTC-MTL Price: 0.00058320 Spread: 0.00000170 MinAmount: 1.72417000 PipCost: 0.00000002
2017-12-04 18:41:04,145 INFO [default] BrokerAsset OUT
2017-12-04 18:41:04,145 INFO [default] BrokerAsset IN Symbol: RLC/BTC
2017-12-04 18:41:05,083 INFO [default] Asset Details: BTC-RLC Price: 0.00005125 Spread: 0.00000037 MinAmount: -3.00000000 PipCost: -0.00000003
2017-12-04 18:41:05,083 INFO [default] BrokerAsset OUT
2017-12-04 18:41:05,083 INFO [default] BrokerAsset IN Symbol: TRST/BTC
2017-12-04 18:41:05,239 INFO [default] Asset Details: BTC-TRST Price: 0.00003969 Spread: 0.00000030 MinAmount: -3.00000000 PipCost: -0.00000003
2017-12-04 18:41:05,239 INFO [default] BrokerAsset OUT
2017-12-04 18:41:05,239 INFO [default] BrokerAsset IN Symbol: XLM/BTC
2017-12-04 18:41:05,473 INFO [default] Asset Details: BTC-XLM Price: 0.00000815 Spread: 0.00000002 MinAmount: -3.00000000 PipCost: -0.00000003

negative MinAmout and pipCost !
I am playing live with some very basic strategies for now and using only Minimum lot size.

Last edited by JohanAu; 12/04/17 17:49.
Re: BitTrex Plugin (Crypto Trading) [Re: JohanAu] #469721
12/04/17 20:05
12/04/17 20:05
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Sorry guys,
I forgot to test it also with small value pairs.
Please get latest.

Cheers

Re: BitTrex Plugin (Crypto Trading) [Re: vinsom] #469732
12/05/17 08:53
12/05/17 08:53
Joined: Sep 2016
Posts: 20
France
J
JohanAu Offline
Newbie
JohanAu  Offline
Newbie
J

Joined: Sep 2016
Posts: 20
France
Hello Vinsom,

thanks for the update. I have also a day job and it is complicated to test so I can't imagine what it takes to develop.
I need to learn how to code the plugin so I can help.

Re: BitTrex Plugin (Crypto Trading) [Re: JohanAu] #472938
05/31/18 11:31
05/31/18 11:31
Joined: May 2018
Posts: 4
3
B
beannt Offline
Guest
beannt  Offline
Guest
B

Joined: May 2018
Posts: 4
3
Hi,

I am facing "Error 055: No bars generated" using Z10 with Bittrex plugin, Zorro version is 1.83.2

Z10
Login 0 Bittrex 1.1.. at UTC 05-31 11:23
Z10.11: H 4 W 2 V 1
V 1.832 on Thu 18-05-31 18:23:05 (Zorro S Subscription)
Error 055: No bars generated

To rebalance click [Test]!
Logout.. ok

Can any one help ? Thank you.

Re: BitTrex Plugin (Crypto Trading) [Re: beannt] #472939
05/31/18 13:50
05/31/18 13:50
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted By: beannt
I am facing "Error 055: No bars generated" using Z10 with Bittrex plugin
This has nothing to do with the Bittrex plugin. Your problem is addressed here under your respective error code:
http://zorro-trader.com/manual/en/errors.htm

Also, read this:
http://www.zorro-trader.com/manual/en/zsystems.htm

The manual is your friend! laugh

Page 6 of 7 1 2 3 4 5 6 7

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1