2 registered members (Imhotep, opm),
785
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
BitTrex Plugin (Crypto Trading)
#468152
09/20/17 19:10
09/20/17 19:10
|
Joined: Nov 2016
Posts: 103 NSW
vinsom
OP
Member
|
OP
Member
Joined: Nov 2016
Posts: 103
NSW
|
Hi, I just shared the code for a BitTrex plugin. https://github.com/vinsom68/Zorro-BitTrex-PluginThere is also a compiled dll (latest build folder) 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. Enjoy Vincenzo
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: jcl]
#468266
09/27/17 14:40
09/27/17 14:40
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Vinsom, Thank you very much for this, appreciate a lot ! Did you started to build strategies for crypto ? Sure there must be some obvious inefficiencies compared to other market, can't wait to try some strategies BR, Johan
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: Petra]
#468588
10/11/17 06:52
10/11/17 06:52
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Vinsom,
I have started to play with your files. I am trying to backtest some strategies with the historical data taken from crypto compare (and thank you again for this !).
I see that in AssetFix you have set the PIP cost to 0.01 :
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol 1ST/BTC,50,0,0,0,0.00000001,0.01,0,1,1,0.000005,
this means that 1 pip (1 satoshi) is equal to 0.01$. This is very difficult to interpret the result with that.
I think this is more convenient to put 1 in pip cost so the result is in Satoshis instead.
Also, do you know how is it possible to change the currency account in the config file (and put satoshis or BTC) ?
I really want to contribute to this and make it work for crypto account, so I will continue testing and report here.
Best regards, Johan
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: JohanAu]
#468749
10/16/17 03:10
10/16/17 03:10
|
Joined: Nov 2016
Posts: 103 NSW
vinsom
OP
Member
|
OP
Member
Joined: Nov 2016
Posts: 103
NSW
|
Hi Johan,
The pip cost is calculated from the data coming from the broker. So the values in the AssetList are all ignored except fees, for which Zorro doesn't have variables to auto set them in the plugin. Please read carefully the readme coming with the plugin where is partially explained.
In short, Bittrex has a min trade amount of 50k satoshi. To avoid issues , I set this amount to 100k (see why in the readme). Now this 100k satoshi converted to the alt coin you want to buy would be the MinLotAmount, that therefore changes for every altcoin. So a 1 Zorro lot, would be equal to this MinLotAmount (about 5US at current exchange rate), and multiples of the MinLotAmount.
Now the PipCost is equal to the MinLotAmount * Pip (1 satoshi=0.00000001) * AccountCurrency(1 if btc, or BTC/USD exchange rate) If log is enabled and you search for "PipCost:", you will find it there for each pair in the AssetList (just clear it from times to times as becomes huge).
To enable the account to be in BTC, replace DisplayCurrency="USD" with DisplayCurrency="BTC" in Zorro.ini. You will need Zorro 1.66 to see more decimals as Jcl says. Haven't had the time to test this. Let me know how you go and thanks for doing some testing
Vincenzo
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#468817
10/21/17 16:04
10/21/17 16:04
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Vincenzo, Thank you for your clarification. I am playing live with your plugin (very simple strategy for now to ensure that everything is running correctly). Could you describe to me the issue with the PIPCost ? just to verify that we have the same behaviour. A small test I have done is this one : - Buy 1 lot of the asset FUN/BTC - Sell after few seconds. It seems that the computation of the profit/loss is not good : [557: Sat 17-10-21 17:31] 0.00000284/0.00000284�.00000284/0.00000284 !Trade id: b675939f-986b-4e9c-a64d-1b20e12e0b64 - 1508607061 - Price: 0.00000286 !Type: buy Price: 0.00000286 Amount: 352 !Quantity: 352 QRemaining: 0 Commission: 0.00000252 [FUN/BTC::L7061] Long 1@0.00000286 p Session end at 17:31 !Trade id: e44a3e6c-2c3c-4b72-a352-0b94ab1fb6db - 1508607080 - Price: 0.00000284 !Type: sell Price: 0.00000284 Amount: 352 !Quantity: 352 QRemaining: 0 Commission: 0.00000250 [FUN/BTC::L7061] Sell 1@0.00000286: -0.00352113Logout.. ok It says that the loss is -0.00352113 BTC which is not the correct amount. Is this related with what you are experiencing ? By the way I am really happy that you develop this plugin EDIT : Seems that there is a factor applied to the calculation of the profit. The correct loss is -0.00000352113 BTC. if we compute the formula (found in the documentation of Zorro) : x * Lots * PIPCost/PIP with x the price difference we get the correct amount. So there is a factor of 1000 applied in Zorro. Don't know where this is coming from.
Last edited by JohanAu; 10/23/17 09:01.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: jcl]
#468849
10/23/17 15:20
10/23/17 15:20
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Jcl,
I have done a new test while printing the differents Zorro variable :
[FUN/BTC::L1401] Sell 1@0.00000317: -0.00317460 pip cost : 0.00000318 pip UNIT : 0.00000001 lot : 1.00000000 lot amount : 318.47133758 spread : 0.00001000 => HUGE ! This is caused by the spread. For the profit calculation, the roundturn cost is subtracted : Spread*PIPCost/PIP which in fact is the cause of the drift!
However the plugin seems to return a correct spread : 0.00000003. It seems that Zorro do not take it into account in the same way as the commission. Will try to investigate why.
Vincenzo, to sum up, it seems that Commission and spread from the plugin are ignored by Zorro. It is however still possible to recompute them and set them with custom code.
BR, Johan
Last edited by JohanAu; 10/23/17 16:13.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#468884
10/25/17 15:39
10/25/17 15:39
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Vinsom,
I carefully read what you have written. I have done the same test with the same Asset and it works perfectly fine :
[DASH/BTC::L5581] Sell 1@0.051800000: -0.00 pip UNIT : 0.00000001 commission cost: -0.00000010 commission : 0.00000500 lot amount : 0.01940459 lot : 1.00000000 spread : 0.00026581 win - loss in btc : -0.00000525
The spread is correctly set, as well as the commission.
But with asset where the spread is less than 0.00001000 (which happen with a lot of asset). Then the spread is ignored somehow. It seems that there is minimum with that value.
Last edited by JohanAu; 10/25/17 15:40.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469284
11/10/17 10:03
11/10/17 10:03
|
Joined: Nov 2017
Posts: 34
Cheulmen
Newbie
|
Newbie
Joined: Nov 2017
Posts: 34
|
@vinsom I'm trying to use your code, but the authentication to BitTrex with the API is giving me an error. It says APIkey invalid, but I've re-checked the API keys and they're ok. Just to be sure that I'm doing things correctly: 1.- It seems that you've named "PublicKey" to a variable that actually is the Secret (in the BitTrex nomenclature). Is this correct? 2.- The configuration of Bittrex should be put in the zorro.ini file, just after (in the default zorro.ini file) AVApiKey variable. 3.- The username and password of BitTrex are not needed because your code use the API keys inside zorro.ini to connect, and the 111111 is just a random number and it doesn't needs to be modified, right? I can't wait to use this code for crypto
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469306
11/10/17 17:05
11/10/17 17:05
|
Joined: Mar 2015
Posts: 336 Rogaland
nanotir
Senior Member
|
Senior Member
Joined: Mar 2015
Posts: 336
Rogaland
|
You will need the CryptoCompareHistoryAPI exe and dependencies in your zorro folder.
Where can I get that?
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: Cheulmen]
#469346
11/11/17 23:09
11/11/17 23:09
|
Joined: Mar 2015
Posts: 336 Rogaland
nanotir
Senior Member
|
Senior Member
Joined: Mar 2015
Posts: 336
Rogaland
|
thx I have installed the .net but where do the files need to be copied exactly?
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469413
11/15/17 10:10
11/15/17 10:10
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Vinsom,
here the Zorro.ini :
[BITTREX] PrivateKey = "" PublicKey = "" DisplayCurrency="BTC" BaseTradeCurrency="BTC" IntervalSec = "15" DemoTrading="0" EnableLog="0" UseCryptoCompareHistory="1" MinOrderSize="100000" LimitOrderMaxOrderBookDepth="0.5" WaitAfterOrderForCheckSec="2"
and the asset list :
Name,Price,Spread,RollLong,RollShort,PIP,PIPCost,MarginCost,Leverage,LotAmount,Commission,Symbol RLC/BTC,50,0.00000512,0,0,0.00000001,0.00000001,0,1,0.65,0.000000, TRST/BTC,50,0.00000512,0,0,0.00000001,0.00000001,0,1,0.65,0.000000,
It seems that the PIP cost is not fixed, even if the strategy is not restarted. I will fix the PIPCost as a workaround !
thank you for your help, I appreciate it.
BR, Johan
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: Cheulmen]
#469430
11/15/17 13:02
11/15/17 13:02
|
Joined: Mar 2015
Posts: 336 Rogaland
nanotir
Senior Member
|
Senior Member
Joined: Mar 2015
Posts: 336
Rogaland
|
thx... I cant really make it work. Shall I use another Crypto asset list? My bittrex connection works perfectly so I am not sure where I am doing it wrong.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: JohanAu]
#469512
11/19/17 07:51
11/19/17 07:51
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Again, I took the latest build here : https://github.com/vinsom68/Zorro-BitTrex-Plugin/tree/master/LatestBuildand did some testing : Enter 2L XLM/BTC at 21:43:37 !Trade id: - Price: 0.00000458 !Type: buy Price: 0.00000458 Amount: 438 !Quantity: 438 QRemaining: 0 Commission: 0.00000502 BrokerBuy XLM/BTC: 2751 ms [XLM/BTC::L1418] Long 2@0.00000 at 21:43:37 Units: 438 Margin: 0.00 MCost: 0.0010 PCost: 0.00000 Asset : XLM/BTC pip cost : 0.00000217 lot : 2.00000000 [Sun 17-11-19 00:42] Exit [XLM/BTC::L1418] !Trade id: - Price: 0.00000474 !Type: sell Price: 0.00000474 Amount: 421 !Quantity: 421 QRemaining: 0 Commission: 0.00000499 BrokerSell XLM/BTC: 2832 ms [XLM/BTC::L1418] Sell 2@0.000004750: -0.00 at 00:42:07 Entr 0.0000 Exit 0.0000 Spr 0.0000 Slp -0.00 Rol 0.00 Com 0.00 Asset : XLM/BTC price : 0.00000473 pip cost : 0.00000217 lot : 2.00000000 Seems that the PIPCost is correctly fixed but the quantity is still not the good one. I suspect that the lot amount is varying as well. I believe it shall be fixed at the init of the strategy as well. Will do some more testing. Johan
Last edited by JohanAu; 11/19/17 09:43.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469516
11/19/17 10:07
11/19/17 10:07
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi, Yes I have set NFA otherwise trade cannot be closed by Zorro. Yes settings are the same and this is live trading. I have fixed the lot amount for each asset I am using as a workaround, let see if the issue is fixed with that. I have also spotted strange behaviour for asset where PIPCost > 0.00000001 (1 satoshi) but I don't know if it is plugin related. 1- The Commission cost is not computed correctly : in this example, I just enter and exit the trade after few seconds : Trade: TradeTest XLM/BTC 2017-11-19 Buy Long XLM/BTC Enter 1L XLM/BTC at 08:38:55 !Trade id: Price: 0.00000487 !Type: buy Price: 0.00000487 Amount: 205 !Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000250 [XLM/BTC::L0735] Long 1@0.00000 at 08:38:55 Close Long XLM/BTC Exit [XLM/BTC::L0735] !Trade id: Price: 0.00000485 !Type: sell Price: 0.00000485 Amount: 205 !Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000249 [XLM/BTC::L0735] Sell 1@0.000004870: -0.00 at 08:38:55 Entr 0.0000 Exit 0.0000 Spr 0.0000 Slp 0.00 Rol 0.00 Com 0.00 commission cost: -0.00102881 commission : 0.00000500 => roundturn fee from bittrex which is 0.5% lot amount : 205.76131687 BalanceLong : -0.00102881 pipcost: 0.00000209 The Balance long indicate a loss of -0.00102881 BTC which is huge. To solve that, I need to set the commission variable to: Commission = 0.00000500* PIP/PIPCost; Trade: TradeTest XLM/BTC 2017-11-19 Buy Long XLM/BTC Enter 1L XLM/BTC at 08:41:03 !Trade id: 54fe52f4-09e4-4db9-95a4-af249c879133 - 1511080864 - Price: 0.00000487 !Type: buy Price: 0.00000487 Amount: 205 !Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000250 [XLM/BTC::L0864] Long 1@0.00000 at 08:41:03 Close Long XLM/BTC Exit [XLM/BTC::L0864] !Trade id: 54fe52f4-09e4-4db9-95a4-af249c879133 - 1511080869 - Price: 0.00000486 !Type: sell Price: 0.00000486 Amount: 205 !Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000249 [XLM/BTC::L0864] Sell 1@0.000004870: -0.00 at 08:41:07 Entr 0.0000 Exit 0.0000 Spr 0.0000 Slp 0.00 Rol 0.00 Com 0.00 commission cost: -0.00000493 commission : 0.00000002 lot amount : 205.76131687 BalanceLong : -0.00000493 pipcost: 0.00000209 Seems correct since Commission cost is equal to Commission*LotAmount*PIP/PIPCost : 0.00000500*205.76131687*0.00000001/0.00000209 = 0.00000492 2- I suspect that the spread cost is also wrong for the asset where pip cost is > 1 satoshis and the factor PIP/PIPCost shall also be applied. I don't really mind since I have set it to zero for now but we need to be aware. It is all for now my analysis may not be correct but I am here to contribute so everyone may benefit from this !
Last edited by JohanAu; 11/19/17 10:08.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469519
11/19/17 11:25
11/19/17 11:25
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
ok Vinsom, anyway thank for the good work. Glad to help also. I live in France (half france/italy origin). awesome that you live in Australia as long as you don't miss Italy
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469566
11/22/17 07:28
11/22/17 07:28
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
Joined: Sep 2016
Posts: 20
France
|
Hi Vinsom, I'll enable the bittrex plugin, but I have fixed the lot amount for each asset at the first run so it does not bother me For your question regarding the pip cost : "Value of 1 pip profit or loss per lot in units of the account currency; determined by the lot size (LotAmount) and the exchange rate of account currency and counter currency. This value should normally remain constant during the simulation for not adding artifacts to the result. If desired for special purposes, it can be calculated by script to fluctuate with the exchange rate (see example below). When the asset price rises or falls by x, the equivalent profit or loss in account currency is x * Lots * PIPCost/PIP. " The pip cost is based on the lot amount, so each asset has different pip cost.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: JohanAu]
#469659
11/28/17 22:41
11/28/17 22:41
|
Joined: Nov 2017
Posts: 34
Cheulmen
Newbie
|
Newbie
Joined: Nov 2017
Posts: 34
|
Hi, I'm getting an error while using this plugin. Trading in the ETH/BTC pair, I'm getting the following error: !INSUFFICIENT_FUNDS !market/buylimit - Error Parsing JSon !Error calling API BrokerBuy (ETH/BTC::L) Can't open 1@0.04684 at 22:30:01 In my Bittrex account I have 0.99ETH, so I have money to trade. My code is very simple, I just want to buy with the whole amount of money each time, so if I receive a long signal, I want to buy with all the BTC that I have, and if I receive a short signal, I want to sell all the ETH. This is the code: Entry = PIP; Lots = 43; if (buy_signal == 1) { ReverseLong(1); } if (short_signal == 1) { ReverseShort(1); } I know that the plugin does not short, but I guess that this syntax is ok anyway? Instead of short I just want to sell ETH and stay in BTC, I'm not sure if the error may be because of this. EDIT: Using Lots=40; it seems that the error doesn't appears, so I guess that this problem was due to my poor knowledge of Zorro. So, for the records, the Lots=40 is a bit less than the value of 1ETH in BTC. EDIT2: Definitely something is wrong with the plugin, or with my script. I have 0.04386992 BTC. Then, I use Lots=43 (the code is the same than above). The system tries to buy ETH, opening a long position. And then the INSUFFICIENT FUNDS error appears
Last edited by Cheulmen; 11/29/17 18:25.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: Cheulmen]
#469668
11/30/17 08:23
11/30/17 08:23
|
Joined: Nov 2016
Posts: 103 NSW
vinsom
OP
Member
|
OP
Member
Joined: Nov 2016
Posts: 103
NSW
|
Hi Cheulmen, You shouldn't trade using all your balance. Try to open and close a trade with 50% of the balance.
If is still an issue, in the Zorro.ini there is a setting to enable the log. Set it to 1 (should be already 1 by default). Then try to run your script and after the error open the log file (BittrexPlugin.log) , clean up your bittrex secret keys and post the log.
Would like to check the quantity sent in both opening and closing the trade.
There are also some changes Bittrex did recently regarding the pip size and minimum amount, that might also create issues.
Cheers Vincenzo
Last edited by vinsom; 11/30/17 09:14.
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: vinsom]
#469670
11/30/17 10:59
11/30/17 10:59
|
Joined: Nov 2017
Posts: 34
Cheulmen
Newbie
|
Newbie
Joined: Nov 2017
Posts: 34
|
Hi Vinsom, Thanks for your answer, I restarted and I'm using half of my balance to trade (using Lots=20), but I don't get why. I mean, I don't want to have "locked" half of my money, I prefer to have it being traded. Is there some limitation or... :? Anyway, I'm pasting here the relevant log of the problem. You'll see that in this specific case I'm using 42 Lots while the balance is 0.04386992 BTC. May be I'm doing something wrong though 2017-11-29 19:30:22,644 INFO [default] apisign: MYKEYSREMOVED 2017-11-29 19:30:22,644 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04386992,"Available":0.04386992,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-29 19:30:22,644 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-29 19:30:22,644 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-29 19:30:22,691 INFO [default] {"success":true,"message":"","result":{"Bid":10451.00000002,"Ask":10465.00000000,"Last":10460.00000000}} 2017-11-29 19:30:22,691 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-29 19:30:22,691 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-29 19:30:22,691 INFO [default] BrokerAccount OUT 2017-11-29 19:30:23,097 INFO [default] BrokerTime IN 2017-11-29 19:30:23,097 INFO [default] BrokerTime OUT 2017-11-29 19:30:23,097 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:23,128 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00012338 2017-11-29 19:30:23,128 INFO [default] BrokerAsset OUT 2017-11-29 19:30:23,550 INFO [default] BrokerTime IN 2017-11-29 19:30:23,550 INFO [default] BrokerTime OUT 2017-11-29 19:30:23,550 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:23,566 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00012338 2017-11-29 19:30:23,566 INFO [default] BrokerAsset OUT 2017-11-29 19:30:23,988 INFO [default] BrokerTime IN 2017-11-29 19:30:23,988 INFO [default] BrokerTime OUT 2017-11-29 19:30:23,988 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:24,019 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00012338 2017-11-29 19:30:24,019 INFO [default] BrokerAsset OUT 2017-11-29 19:30:24,441 INFO [default] BrokerTime IN 2017-11-29 19:30:24,441 INFO [default] BrokerTime OUT 2017-11-29 19:30:24,441 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:24,472 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00012338 2017-11-29 19:30:24,472 INFO [default] BrokerAsset OUT 2017-11-29 19:30:24,894 INFO [default] BrokerTime IN 2017-11-29 19:30:24,894 INFO [default] BrokerTime OUT 2017-11-29 19:30:24,894 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:24,956 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:24,956 INFO [default] BrokerAsset OUT 2017-11-29 19:30:25,363 INFO [default] BrokerTime IN 2017-11-29 19:30:25,363 INFO [default] BrokerTime OUT 2017-11-29 19:30:25,363 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:25,409 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:25,409 INFO [default] BrokerAsset OUT 2017-11-29 19:30:25,831 INFO [default] BrokerTime IN 2017-11-29 19:30:25,831 INFO [default] BrokerTime OUT 2017-11-29 19:30:25,831 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:25,847 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:25,847 INFO [default] BrokerAsset OUT 2017-11-29 19:30:26,269 INFO [default] BrokerTime IN 2017-11-29 19:30:26,269 INFO [default] BrokerTime OUT 2017-11-29 19:30:26,269 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:26,316 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:26,316 INFO [default] BrokerAsset OUT 2017-11-29 19:30:26,722 INFO [default] BrokerTime IN 2017-11-29 19:30:26,722 INFO [default] BrokerTime OUT 2017-11-29 19:30:26,722 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:26,769 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:26,769 INFO [default] BrokerAsset OUT 2017-11-29 19:30:27,175 INFO [default] BrokerTime IN 2017-11-29 19:30:27,175 INFO [default] BrokerTime OUT 2017-11-29 19:30:27,175 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:27,191 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:27,191 INFO [default] BrokerAsset OUT 2017-11-29 19:30:27,613 INFO [default] BrokerTime IN 2017-11-29 19:30:27,613 INFO [default] BrokerTime OUT 2017-11-29 19:30:27,613 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:27,659 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:27,659 INFO [default] BrokerAsset OUT 2017-11-29 19:30:28,066 INFO [default] BrokerTime IN 2017-11-29 19:30:28,066 INFO [default] BrokerTime OUT 2017-11-29 19:30:28,066 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:28,113 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:28,113 INFO [default] BrokerAsset OUT 2017-11-29 19:30:28,534 INFO [default] BrokerTime IN 2017-11-29 19:30:28,534 INFO [default] BrokerTime OUT 2017-11-29 19:30:28,534 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:28,722 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:28,722 INFO [default] BrokerAsset OUT 2017-11-29 19:30:29,144 INFO [default] BrokerTime IN 2017-11-29 19:30:29,144 INFO [default] BrokerTime OUT 2017-11-29 19:30:29,144 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:29,159 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:29,159 INFO [default] BrokerAsset OUT 2017-11-29 19:30:29,581 INFO [default] BrokerTime IN 2017-11-29 19:30:29,581 INFO [default] BrokerTime OUT 2017-11-29 19:30:29,581 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:29,628 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:29,628 INFO [default] BrokerAsset OUT 2017-11-29 19:30:30,034 INFO [default] BrokerTime IN 2017-11-29 19:30:30,034 INFO [default] BrokerTime OUT 2017-11-29 19:30:30,034 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:30,066 INFO [default] Asset Details: BTC-ETH Price: 0.04576244 Spread: 0.00000001 2017-11-29 19:30:30,066 INFO [default] BrokerAsset OUT 2017-11-29 19:30:30,472 INFO [default] BrokerTime IN 2017-11-29 19:30:30,472 INFO [default] BrokerTime OUT 2017-11-29 19:30:30,472 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:34,284 INFO [default] Asset Details: BTC-ETH Price: 0.04579999 Spread: 0.00016093 2017-11-29 19:30:34,284 INFO [default] BrokerAsset OUT 2017-11-29 19:30:34,284 INFO [default] BrokerBuy IN 2017-11-29 19:30:34,284 INFO [default] BrokerBuy Params: BTC-ETH Amount:42 StopDist:0.00000000 2017-11-29 19:30:35,456 INFO [default] market=BTC-ETH&quantity=0.96024736&rate=0.04579999 2017-11-29 19:30:35,456 INFO [default] apisign: MYKEYSREMOVED 2017-11-29 19:30:35,644 INFO [default] {"success":false,"message":"INSUFFICIENT_FUNDS","result":null} 2017-11-29 19:30:35,644 ERROR [default] INSUFFICIENT_FUNDS 2017-11-29 19:30:35,644 ERROR [default] market/buylimit 2017-11-29 19:30:35,644 ERROR [default] market=BTC-ETH&quantity=0.96024736&rate=0.04579999 2017-11-29 19:30:35,644 ERROR [default] market/buylimit - Error Parsing JSon 2017-11-29 19:30:35,644 ERROR [default] Error calling API BrokerBuy 2017-11-29 19:30:35,644 INFO [default] BrokerBuy OUT 2017-11-29 19:30:35,644 INFO [default] BrokerAccount IN 2017-11-29 19:30:35,644 INFO [default] apisign: MYKEYSREMOVED 2017-11-29 19:30:37,362 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04386992,"Available":0.04386992,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-29 19:30:37,362 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-29 19:30:37,362 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-29 19:30:37,393 INFO [default] {"success":true,"message":"","result":{"Bid":10451.00000003,"Ask":10460.00000000,"Last":10460.00000000}} 2017-11-29 19:30:37,393 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-29 19:30:37,393 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-29 19:30:37,393 INFO [default] BrokerAccount OUT 2017-11-29 19:30:37,815 INFO [default] BrokerTime IN 2017-11-29 19:30:37,815 INFO [default] BrokerTime OUT 2017-11-29 19:30:37,815 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-29 19:30:37,862 INFO [default] Asset Details: BTC-ETH Price: 0.04579999 Spread: 0.00016093 2017-11-29 19:30:37,862 INFO [default] BrokerAsset OUT 2017-11-29 19:30:38,284 INFO [default] BrokerTime IN
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: Cheulmen]
#469673
11/30/17 15:27
11/30/17 15:27
|
Joined: Nov 2017
Posts: 34
Cheulmen
Newbie
|
Newbie
Joined: Nov 2017
Posts: 34
|
It happened again, this time with Lots=20. I'm pasting here the log (I just left in the log the initial start, and then the buys and the error, to avoid a massive logfile). 2017-11-30 11:24:00,234 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 11:24:00,234 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 11:24:01,310 INFO [default] {"success":true,"message":"","result":{"Bid":9970.00000000,"Ask":9980.79999999,"Last":9980.80000000}} 2017-11-30 11:24:01,310 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 11:24:01,310 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 11:24:01,310 INFO [default] BrokerAccount IN 2017-11-30 11:24:01,310 INFO [default] apisign: MYKEYS 2017-11-30 11:24:01,479 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04238690,"Available":0.04238690,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 11:24:01,479 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 11:24:01,479 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 11:24:01,504 INFO [default] {"success":true,"message":"","result":{"Bid":9970.00000000,"Ask":9980.79999999,"Last":9980.80000000}} 2017-11-30 11:24:01,504 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 11:24:01,504 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 11:24:01,504 INFO [default] BrokerAccount OUT 2017-11-30 11:24:01,504 INFO [default] BrokerLogin OUT 2017-11-30 11:24:01,504 INFO [default] BrokerTime IN 2017-11-30 11:24:01,504 INFO [default] BrokerTime OUT 2017-11-30 11:24:01,509 INFO [default] BrokerAccount IN 2017-11-30 11:24:01,509 INFO [default] apisign: MYKEYS 2017-11-30 11:24:01,509 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04238690,"Available":0.04238690,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 11:24:01,509 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 11:24:01,509 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 11:24:01,538 INFO [default] {"success":true,"message":"","result":{"Bid":9970.00000000,"Ask":9980.79999999,"Last":9980.80000000}} 2017-11-30 11:24:01,538 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 11:24:01,538 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 11:24:01,538 INFO [default] BrokerAccount OUT 2017-11-30 11:24:01,542 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:24:01,542 INFO [default] CanSubscribe IN 2017-11-30 11:24:01,568 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:24:01,772 INFO [default] Asset Details: BTC-ETH Price: 0.04396704 Spread: 0.00007604 MinAmount: 0.02278371 PipCost: 0.00000227 2017-11-30 11:24:01,772 INFO [default] BrokerAsset OUT 2017-11-30 11:24:01,773 INFO [default] BrokerHistory2 IN 2017-11-30 11:24:01,773 INFO [default] Params BTC-ETH Start : 11/02/17 10:24:01 End : 11/30/17 10:24:01 nTickMinutes : 5 nTicks : 300 2017-11-30 11:24:01,773 INFO [default] BrokerHistory3 IN 2017-11-30 11:24:01,975 INFO [default] return nTick: 28 2017-11-30 11:24:01,975 INFO [default] BrokerHistory3 OUT 2017-11-30 11:24:01,979 INFO [default] BrokerHistory2 IN 2017-11-30 11:24:01,979 INFO [default] Params BTC-ETH Start : 11/02/17 10:24:01 End : 11/03/17 00:00:00 nTickMinutes : 5 nTicks : 300 2017-11-30 11:24:01,979 INFO [default] BrokerHistory3 IN 2017-11-30 11:24:02,169 INFO [default] return nTick: 1 2017-11-30 11:24:02,169 INFO [default] BrokerHistory3 OUT 2017-11-30 11:24:02,174 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:24:02,367 INFO [default] Asset Details: BTC-ETH Price: 0.04396704 Spread: 0.00007604 MinAmount: 0.02278371 PipCost: 0.00000227 2017-11-30 11:24:02,367 INFO [default] BrokerAsset OUT 2017-11-30 11:24:02,437 INFO [default] BrokerTime IN 2017-11-30 11:24:02,437 INFO [default] BrokerTime OUT 2017-11-30 11:24:02,437 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:24:02,454 INFO [default] Asset Details: BTC-ETH Price: 0.04396704 Spread: 0.00007604 2017-11-30 11:24:02,454 INFO [default] BrokerAsset OUT 2017-11-30 11:24:02,454 INFO [default] BrokerAccount IN 2017-11-30 11:24:02,454 INFO [default] apisign: MYKEYS 2017-11-30 11:24:02,454 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04238690,"Available":0.04238690,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 11:24:02,454 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 11:24:02,454 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 11:24:02,471 INFO [default] {"success":true,"message":"","result":{"Bid":9970.00000000,"Ask":9980.79999999,"Last":9980.80000000}} 2017-11-30 11:24:02,471 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 11:24:02,471 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 11:24:02,471 INFO [default] BrokerAccount OUT 2017-11-30 11:24:02,745 INFO [default] BrokerTime IN
[...]
2017-11-30 11:30:49,425 INFO [default] Asset Details: BTC-ETH Price: 0.04395995 Spread: 0.00002599 2017-11-30 11:30:49,425 INFO [default] BrokerAsset OUT 2017-11-30 11:30:49,699 INFO [default] BrokerTime IN 2017-11-30 11:30:49,699 INFO [default] BrokerTime OUT 2017-11-30 11:30:49,699 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:30:49,886 INFO [default] Asset Details: BTC-ETH Price: 0.04400150 Spread: 0.00004155 2017-11-30 11:30:49,886 INFO [default] BrokerAsset OUT 2017-11-30 11:30:49,886 INFO [default] BrokerBuy IN 2017-11-30 11:30:49,886 INFO [default] BrokerBuy Params: BTC-ETH Amount:20 StopDist:0.00000000 2017-11-30 11:30:49,926 INFO [default] market=BTC-ETH&quantity=0.45567428&rate=0.04400175 2017-11-30 11:30:49,926 INFO [default] apisign: MYKEYS 2017-11-30 11:30:50,117 INFO [default] {"success":true,"message":"","result":{"uuid":"3e42e3cd-4201-4a55-bd1d-2c5c41ae9242"}} 2017-11-30 11:30:52,118 INFO [default] apisign: MYKEYS 2017-11-30 11:30:52,290 INFO [default] {"success":true,"message":"","result":{"AccountId":null,"OrderUuid":"3e42e3cd-4201-4a55-bd1d-2c5c41ae9242","Exchange":"BTC-ETH","Type":"LIMIT_BUY","Quantity":0.45567428,"QuantityRemaining":0.00000000,"Limit":0.04400175,"Reserved":0.02005046,"ReserveRemaining":0.02005041,"CommissionReserved":0.00005012,"CommissionReserveRemaining":0.00000000,"CommissionPaid":0.00005012,"Price":0.02005041,"PricePerUnit":0.04400162000000000000,"Opened":"2017-11-30T10:30:51.647","Closed":"2017-11-30T10:30:52.677","IsOpen":false,"Sentinel":"14f8186b-b9ac-49d9-ac84-caea192f47cf","CancelInitiated":false,"ImmediateOrCancel":false,"IsConditional":false,"Condition":"NONE","ConditionTarget":null}} 2017-11-30 11:30:52,290 INFO [default] Trade id: 3e42e3cd-4201-4a55-bd1d-2c5c41ae9242 - 1512037849 - Price: 0.04400175 2017-11-30 11:30:52,291 INFO [default] Type: buy Price: 0.04400175 Amount: 0.45567428 2017-11-30 11:30:52,293 INFO [default] Quantity: 0.45567427999999999 QRemaining: 0 Commission: 0.00005013 2017-11-30 11:30:52,293 INFO [default] BrokerBuy OUT 2017-11-30 11:30:52,295 INFO [default] BrokerAccount IN 2017-11-30 11:30:52,296 INFO [default] apisign: MYKEYS 2017-11-30 11:30:52,550 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.02228637,"Available":0.02228637,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 11:30:52,550 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 11:30:52,550 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 11:30:52,577 INFO [default] {"success":true,"message":"","result":{"Bid":9800.00000000,"Ask":9800.04999998,"Last":9800.00000000}} 2017-11-30 11:30:52,577 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 11:30:52,577 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 11:30:52,577 INFO [default] BrokerAccount OUT 2017-11-30 11:30:52,852 INFO [default] BrokerTime IN 2017-11-30 11:30:52,852 INFO [default] BrokerTime OUT 2017-11-30 11:30:52,852 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:30:52,876 INFO [default] Asset Details: BTC-ETH Price: 0.04400176 Spread: 0.00000001 2017-11-30 11:30:52,876 INFO [default] BrokerAsset OUT 2017-11-30 11:30:53,150 INFO [default] BrokerTime IN 2017-11-30 11:30:53,150 INFO [default] BrokerTime OUT 2017-11-30 11:30:53,150 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 11:30:53,177 INFO [default] Asset Details: BTC-ETH Price: 0.04400176 Spread: 0.00000001 2017-11-30 11:30:53,177 INFO [default] BrokerAsset OUT 2017-11-30 11:30:53,451 INFO [default] BrokerTime IN 2017-11-30 11:30:53,451 INFO [default] BrokerTime OUT
[...]
2017-11-30 12:00:00,870 INFO [default] Asset Details: BTC-ETH Price: 0.04425000 Spread: 0.00010000 2017-11-30 12:00:00,870 INFO [default] BrokerAsset OUT 2017-11-30 12:00:01,144 INFO [default] BrokerTime IN 2017-11-30 12:00:01,144 INFO [default] BrokerTime OUT 2017-11-30 12:00:01,144 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 12:00:01,177 INFO [default] Asset Details: BTC-ETH Price: 0.04425000 Spread: 0.00010000 MinAmount: 0.02278371 PipCost: 0.00000215 2017-11-30 12:00:01,177 INFO [default] BrokerAsset OUT 2017-11-30 12:00:01,180 INFO [default] BrokerBuy IN 2017-11-30 12:00:01,180 INFO [default] BrokerBuy Params: BTC-ETH Amount:-20 StopDist:-1.00000000 2017-11-30 12:00:01,215 INFO [default] market=BTC-ETH&quantity=0.45567428&rate=0.04415000 2017-11-30 12:00:01,215 INFO [default] apisign: MYKEYS 2017-11-30 12:00:01,408 INFO [default] {"success":true,"message":"","result":{"uuid":"0ee0d20c-7a32-4718-ad68-c49765e4aade"}} 2017-11-30 12:00:03,409 INFO [default] apisign: MYKEYS 2017-11-30 12:00:03,568 INFO [default] {"success":true,"message":"","result":{"AccountId":null,"OrderUuid":"0ee0d20c-7a32-4718-ad68-c49765e4aade","Exchange":"BTC-ETH","Type":"LIMIT_SELL","Quantity":0.45567428,"QuantityRemaining":0.00000000,"Limit":0.04415000,"Reserved":0.45567428,"ReserveRemaining":0.45567428,"CommissionReserved":0.00000000,"CommissionReserveRemaining":0.00000000,"CommissionPaid":0.00005029,"Price":0.02011801,"PricePerUnit":0.04414997000000000000,"Opened":"2017-11-30T11:00:02.973","Closed":"2017-11-30T11:00:04.57","IsOpen":false,"Sentinel":"66e0cd06-9f91-499e-9886-4e06e67036c7","CancelInitiated":false,"ImmediateOrCancel":false,"IsConditional":false,"Condition":"NONE","ConditionTarget":null}} 2017-11-30 12:00:03,568 INFO [default] Trade id: 0ee0d20c-7a32-4718-ad68-c49765e4aade - 1512039601 - Price: 0.04415000 2017-11-30 12:00:03,569 INFO [default] Type: sell Price: 0.04415000 Amount: 0.45567428 2017-11-30 12:00:03,570 INFO [default] Quantity: 0.45567427999999999 QRemaining: 0 Commission: 0.00005030 2017-11-30 12:00:03,571 INFO [default] BrokerBuy OUT 2017-11-30 12:00:03,573 INFO [default] BrokerAccount IN 2017-11-30 12:00:03,573 INFO [default] apisign: MYKEYS 2017-11-30 12:00:03,739 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 12:00:03,739 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 12:00:03,739 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 12:00:03,763 INFO [default] {"success":true,"message":"","result":{"Bid":9501.00000001,"Ask":9501.58880834,"Last":9501.00000000}} 2017-11-30 12:00:03,763 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 12:00:03,763 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 12:00:03,763 INFO [default] BrokerAccount OUT 2017-11-30 12:00:03,764 INFO [default] BrokerTime IN 2017-11-30 12:00:03,764 INFO [default] BrokerTime OUT 2017-11-30 12:00:03,764 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 12:00:03,951 INFO [default] Asset Details: BTC-ETH Price: 0.04425000 Spread: 0.00010000 2017-11-30 12:00:03,951 INFO [default] BrokerAsset OUT 2017-11-30 12:00:03,952 INFO [default] BrokerAccount IN 2017-11-30 12:00:03,952 INFO [default] apisign: MYKEYS 2017-11-30 12:00:03,952 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 12:00:03,952 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 12:00:03,952 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 12:00:03,973 INFO [default] {"success":true,"message":"","result":{"Bid":9501.00000001,"Ask":9501.58880834,"Last":9501.00000000}} 2017-11-30 12:00:03,973 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 12:00:03,973 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 12:00:03,973 INFO [default] BrokerAccount OUT 2017-11-30 12:00:04,247 INFO [default] BrokerTime IN 2017-11-30 12:00:04,247 INFO [default] BrokerTime OUT 2017-11-30 12:00:04,247 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 12:00:04,263 INFO [default] Asset Details: BTC-ETH Price: 0.04425000 Spread: 0.00010000 2017-11-30 12:00:04,263 INFO [default] BrokerAsset OUT
[...]
2017-11-30 12:00:33,396 INFO [default] Asset Details: BTC-ETH Price: 0.04425000 Spread: 0.00010000 2017-11-30 12:00:33,396 INFO [default] BrokerAsset OUT 2017-11-30 12:00:33,671 INFO [default] BrokerTime IN 2017-11-30 12:00:33,671 INFO [default] BrokerTime OUT 2017-11-30 12:00:33,671 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 12:00:33,849 INFO [default] Asset Details: BTC-ETH Price: 0.04421666 Spread: 0.00006666 2017-11-30 12:00:33,849 INFO [default] BrokerAsset OUT 2017-11-30 12:00:33,850 INFO [default] BrokerBuy IN 2017-11-30 12:00:33,850 INFO [default] BrokerBuy Params: BTC-ETH Amount:-20 StopDist:0.00000000 2017-11-30 12:00:33,885 INFO [default] market=BTC-ETH&quantity=0.45567428&rate=0.04413660 2017-11-30 12:00:33,886 INFO [default] apisign: MYKEYS 2017-11-30 12:00:34,053 INFO [default] {"success":false,"message":"INSUFFICIENT_FUNDS","result":null} 2017-11-30 12:00:34,053 ERROR [default] INSUFFICIENT_FUNDS 2017-11-30 12:00:34,055 ERROR [default] market/selllimit 2017-11-30 12:00:34,055 ERROR [default] market=BTC-ETH&quantity=0.45567428&rate=0.04413660 2017-11-30 12:00:34,055 ERROR [default] market/selllimit - Error Parsing JSon 2017-11-30 12:00:34,056 ERROR [default] Error calling API BrokerBuy 2017-11-30 12:00:34,057 INFO [default] BrokerBuy OUT 2017-11-30 12:00:34,058 INFO [default] BrokerAccount IN 2017-11-30 12:00:34,058 INFO [default] apisign: MYKEYS 2017-11-30 12:00:34,232 INFO [default] {"success":true,"message":"","result":{"Currency":"BTC","Balance":0.04235409,"Available":0.04235409,"Pending":0.00000000,"CryptoAddress":null}} 2017-11-30 12:00:34,232 INFO [default] CallGetAccBaseCurrExchRate IN 2017-11-30 12:00:34,232 INFO [default] GetAccBaseCurrExchRate IN Symbol: USDT-BTC 2017-11-30 12:00:34,315 INFO [default] {"success":true,"message":"","result":{"Bid":9501.00000000,"Ask":9501.58880831,"Last":9501.00000000}} 2017-11-30 12:00:34,315 INFO [default] GetAccBaseCurrExchRate OUT 2017-11-30 12:00:34,315 INFO [default] CallGetAccBaseCurrExchRate OUT 2017-11-30 12:00:34,315 INFO [default] BrokerAccount OUT 2017-11-30 12:00:34,590 INFO [default] BrokerTime IN 2017-11-30 12:00:34,590 INFO [default] BrokerTime OUT 2017-11-30 12:00:34,590 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 12:00:34,797 INFO [default] Asset Details: BTC-ETH Price: 0.04421666 Spread: 0.00006666 2017-11-30 12:00:34,797 INFO [default] BrokerAsset OUT 2017-11-30 12:00:35,071 INFO [default] BrokerTime IN 2017-11-30 12:00:35,071 INFO [default] BrokerTime OUT 2017-11-30 12:00:35,071 INFO [default] BrokerAsset IN Symbol: ETH/BTC 2017-11-30 12:00:35,099 INFO [default] Asset Details: BTC-ETH Price: 0.04421666 Spread: 0.00006666
|
|
|
Re: BitTrex Plugin (Crypto Trading)
[Re: JohanAu]
#469711
12/03/17 20:01
12/03/17 20:01
|
Joined: Nov 2017
Posts: 34
Cheulmen
Newbie
|
Newbie
Joined: Nov 2017
Posts: 34
|
It is happening again, it doesn't make the first trade: 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
vinsom
OP
Member
|
OP
Member
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]
#469720
12/04/17 17:46
12/04/17 17:46
|
Joined: Sep 2016
Posts: 20 France
JohanAu
Newbie
|
Newbie
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 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.
|
|
|
|