Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Kraken Plugin (crypto trading) #467944
09/09/17 07:58
09/09/17 07:58
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi,
I just shared the code for a Kraken plugin.

https://github.com/vinsom68/Zorro-Kraken-Plugin

There is also a compiled dll and instructions.
There are a few issues, expecially for pairs who have many decimals described in the readme.
This is the first plugin of this kind for Zorro, and it might need some updates to be fully compatible with crypto.

Use at your own risk.
This is the first version, and there might be bugs.
Mostly tested with Bitcoin as base currency, but other currencies might be experimented.

I will work next on a plugin for Bittrex, as I'm mostly trading on this exchange now.

Enjoy
Vincenzo

Re: Kraken Plugin (crypto trading) [Re: vinsom] #467975
09/11/17 22:56
09/11/17 22:56
Joined: Feb 2017
Posts: 24
sodiumchloride Offline
Newbie
sodiumchloride  Offline
Newbie

Joined: Feb 2017
Posts: 24
sounds great. id love to trade cryptocurrenices with zorro laugh gonna try it some time !

Re: Kraken Plugin (crypto trading) [Re: sodiumchloride] #468014
09/13/17 10:42
09/13/17 10:42
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi Jcl,
To work properly with crypto, Zorro would need to display more than 5 decimals, up to 10.

- The Account balance doesn't display any decimals, so if you have your account in bitcoin, and a balance of less than 1 bitcoin you will see only 0.
- for some pairs that have many decimals , like DOGE/BTC, trading small amounts you will see only 0s in the Zorro log and Report.

Would be nice to have a configurable number of displayed decimals.

Thanks
Vincenzo

Re: Kraken Plugin (crypto trading) [Re: vinsom] #468019
09/13/17 12:16
09/13/17 12:16
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Thanks for the plugin! And yes, we'll have to make decimals configurable for cryptos.

Re: Kraken Plugin (crypto trading) [Re: jcl] #468040
09/14/17 15:01
09/14/17 15:01
Joined: Sep 2017
Posts: 1
G
Giovany Offline
Guest
Giovany  Offline
Guest
G

Joined: Sep 2017
Posts: 1
Congratulations on your development, how are you going with the bittrex plugin? your job is great.

Giovany

Re: Kraken Plugin (crypto trading) [Re: Giovany] #468054
09/14/17 21:23
09/14/17 21:23
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Bittrex plugin should be finished in a couple of weeks.
This one much easier to do than the kraken one.

Cheers

Re: Kraken Plugin (crypto trading) [Re: vinsom] #468777
10/18/17 17:01
10/18/17 17:01
Joined: May 2016
Posts: 180
Prague
pcz Offline
Member
pcz  Offline
Member

Joined: May 2016
Posts: 180
Prague
Hey Vincenzo and thank you for the plugins!

I managed to run the Bittrex one successfully but with Kraken the authenticated part doesn't work for me. I get this every time:

Code:
2017-10-18 18:50:31,163 INFO [default] BrokerLogin IN
2017-10-18 18:50:31,163 INFO [default] GetAccBaseCurrExchRate IN Symbol: XBTUSD
2017-10-18 18:50:31,726 INFO [default] {"error":[],"result":{"XXBTZUSD":{"a":["5420.30000","2","2.000"],"b":["5417.10000","2","2.000"],"c":["5414.70000","0.21278133"],"v":["4623.17488130","5317.76831179"],"p":["5358.99670","5391.13164"],"t":[13710,16864],"l":["5132.30000","5132.30000"],"h":["5606.50000","5648.60000"],"o":"5606.50000"}}}
2017-10-18 18:50:31,726 INFO [default] GetAccBaseCurrExchRate OUT
2017-10-18 18:50:31,726 INFO [default] BrokerAccount IN
2017-10-18 18:50:31,726 INFO [default] {Content-Type: application/x-www-form-urlencoded
API-Key: ...
API-Sign: ...
}
2017-10-18 18:50:33,070 INFO [default] {"error":["EGeneral:Internal error"]}
2017-10-18 18:50:33,070 ERROR [default] EGeneral:Internal error
2017-10-18 18:50:33,070 ERROR [default] /0/private/TradeBalance
2017-10-18 18:50:33,070 ERROR [default] aclass=currency&asset=USD
2017-10-18 18:50:33,070 ERROR [default] /0/private/TradeBalance - Error Parsing JSon
2017-10-18 18:50:33,070 ERROR [default] Error calling API BrokerAccount
2017-10-18 18:50:33,085 INFO [default] BrokerAccount OUT
2017-10-18 18:50:33,085 ERROR [default] Can't Login - Retry
2017-10-18 18:50:33,101 INFO [default] BrokerLogin OUT
2017-10-18 18:50:33,101 INFO [default] BrokerLogin OUT



Any idea what could be the cause? I'm using Zorro S 1.66 and I followed the instructions from README on Github, DemoTrading is set to "0".

Re: Kraken Plugin (crypto trading) [Re: pcz] #468783
10/19/17 09:04
10/19/17 09:04
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi pcz, are you using the Assetlist.csv specific for Kraken that I posted with the code readme ?
Also can you post the Kraken zorro.ini keys below that you set ?

DisplayCurrency="USD"
BaseTradeCurrency="XBT"

Cheers

Re: Kraken Plugin (crypto trading) [Re: vinsom] #468784
10/19/17 09:07
10/19/17 09:07
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Also if you enable the log with EnableLog="1" you should be able to find the json response from Kraken in the KrakenPluginLog file inthe log folder.

Re: Kraken Plugin (crypto trading) [Re: vinsom] #468785
10/19/17 10:03
10/19/17 10:03
Joined: May 2016
Posts: 180
Prague
pcz Offline
Member
pcz  Offline
Member

Joined: May 2016
Posts: 180
Prague
Quote:
are you using the Assetlist.csv specific for Kraken that I posted with the code readme ?


Yes, I had it in AssetsFix.csv file together with Bittrex symbols but now I tried moving it to a separate file (and loading using assetList function) with no difference.

Quote:
Also if you enable the log with EnableLog="1" you should be able to find the json response from Kraken in the KrakenPluginLog file inthe log folder.


I have enabled logging, what I posted above are the only lines that appear in the log. The currencies are fine too - I just copy/pasted everything from the Github page.

Do I need a funded account in order to be able to use the API or is zero balance OK? If you want I can PM you the keys and you can try / debug.

Page 1 of 3 1 2 3

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