- ago

The quantity is no longer calculated correctly based on the account size.
Kraken update: Build 7, installed yesterday

0
812
33 Replies

Reply

Bookmark

Sort
- ago
#1
Calculated by WL


Manually corrected
0
Cone8
 ( 25.05% )
- ago
#2
Which Position Sizing method were you using?
Do you assign a Transaction.Quantity in the script?
If any of the symbols match in Markets and Symbols, what are the Point Value(s) set to?
0
- ago
#3
1. I have been running the system for a few months and have not changed anything except for the update.
2. I don't use a script, but the default rule "Percent of Equity".
3. The point value in the chart is correct
0
- ago
#4
The problem still exists today.
I will now correct all values manually again (30) and hope that the orders are transmitted to Kraken.

0
Glitch8
 ( 8.38% )
- ago
#5
The value is based on the Account Value reported by Kraken in the Accounts tool. Does it look like the correct value?
0
- ago
#6
With Kraken and Binance the line with the values is missing, with Coinbase it works.
0
Cone8
 ( 25.05% )
- ago
#7
I get Account Value and Cash when connected with Kraken Build 8.
Have you tried Build 8?

That said, I have a machine with Kraken Build 7 and I'm not seeing a problem there either.

Probably the problem is that you have not enabled Query Funds in your Kraken API Settings (in your Kraken Account) for the key that you're using.
0
- ago
#8
"Query funds" should be the function for the query, right?
I use WL8 and the balance query worked for several weeks. I have not changed anything except installing all the updates.
0
- ago
#9
I think I have found the mistake.
The account balance is displayed under "ZEUR".
My base currency there is euros.
Under "Account Value" the sum of the purchased assets is displayed.

With Binance, the problem could be that my currency there is BTC, not dollars or euros. We had already discussed that WL cannot process this and I have to calculate and enter the shares manually.

But Kraken should work.

0
Cone8
 ( 25.05% )
- ago
#10
We're not getting the same experience. Currency trades here too are euro-based, and this account has a small Euro balance, which isn't the same as the Account balance.


I still don't know why the balances aren't displayed for you.
0
- ago
#11
Unfortunately, the new update has not solved the problem. The account value and cash from Kraken are still recognised incorrectly and therefore the correct calculation of the position size does not work.
Somehow the wrong fields are read out in Kraken.
0
Cone8
 ( 25.05% )
- ago
#12
We didn't try to fix anything because there's nothing to go on. It sounds like we have a similar setup - trading against ZEUR (Z indicates a fiat currency, whereas an X is crypto) - but we're getting a different experience.

There's a common component, CryptoExchange.Net that should update with Kraken, so please check the version number for this file "C:\Program Files\Quantacula, LLC\WealthLab 8\CryptoExchange.Net.dll". Just hover over it like this -



Is it 5.2..2?
0
- ago
#13
My version is older.
Does the file need to be updated manually?
If so, where can I find the current version?


0
Cone8
 ( 25.05% )
- ago
#14
It will have upgraded with the Kraken installation, but if you installed an older version of Binance, for example, it would have overwritten that file. I'm not sure how else that could have occurred.

If you haven't upgraded all installations (check the WL8 home page), do that and check again.

If everything is already up-to-date, delete that CryptoExchange.Net.dll file and install the latest Kraken Build again.
0
- ago
#15
Hello,
I have installed all updates today.
Now the file "CryptoExchange.Net.dll" also has the version from 07/17/2022.
This does not solve the problem.
So there must be another source of error.
The fields transmitted by Kraken are not correctly assigned.
0
Cone8
 ( 25.05% )
- ago
#16
Are there any messages of interest for Kraken in the Log Viewer (Ctrl+L)?

Without anything else to go on, try creating and using a new API key, ensuring the same Key Permissions you showed above.

As I've shown, it works perfectly for my Kraken account, which as far as I can tell is set up similarly to yours.
0
- ago
#17
Log Viewer old API key:
-No message

New API key Kraken:
-I have created
-Now no account data is being transmitted from Kraken, correct or incorrect.

-Now message in Log Viewer:

0
Cone8
 ( 25.05% )
- ago
#18
The table on this page - https://docs.kraken.com/rest/ - indicates that "An invalid API-Sign header was supplied (see Authentication section)"

Something's wrong with the API Key, how your entered it, its expiration, or something of the sort.
0
- ago
#19
In the meantime I have tried a few things.
In the process I have discovered:
-The error that had led to the fact that no more queries were possible and I also could not transmit any trades, was that I had set up a F2A Api password. I thought that was necessary because there is a field for it in WL.
-After I created an API key again and did not add the above password to it and left the field for it empty in WL, I had the old state again.
-I can now submit trades again, but I have to set the position size manually because the account balance is not synced correctly.

0
Cone8
 ( 25.05% )
- ago
#20
2FA, maybe this is the culprit. On the 2FA page, which switches do you have "on"?
https://www.kraken.com/u/security/tfa

2FA is required to log in to my account, but I do not have any of the other 2FA switches enabled - not for the API keys either.
0
Cone8
 ( 25.05% )
- ago
#21
After looking into a bit, when we switched to the CryptoExchange.Net component, 2FA is no longer supported for Kraken.

That said, I a created 2FA key, enabled it, duplicated your failed connection, disabled it, and then connected to Kraken.. and the account balances are displayed properly for me, like before.
0
- ago
#22
All 2FA for the API are also deactivated for me.
There is only one for the account login.
So I still have the condition that the account balances are not correctly transmitted from Kraken to WL.
0
Cone8
 ( 25.05% )
- ago
#23
What messages from Kraken, if any, are in the Log Viewer after you connect?
0
- ago
#24
No error message, the connection is green, nothing else
0
- ago
#25
Proposal:
Would it be possible to add a field in the quote window where you can enter the account balance manually.
This would also solve the problem in Binance with the BTC currency account.
0
Cone8
 ( 25.05% )
- ago
#26
You're getting off topic with that, but there are so many ways to control Position sizing I can't imagine introducing a way to override what the broker account is reporting. So that's not going to happen.

On the other hand, broker accounts could report the value of different currency positions, and, there's an open feature request to allow strategies to access broker information. If you haven't already, vote that that.
0
- ago
#27
Thank you very much for the answer.
Once again, as a reminder, the name of my parent topic:
In Binance and Kraken, I manually change the position size of 60 stop orders in the quote window every morning.
To do this, I export the orders to Excel, set the correct balance there and calculate the order size from this.
I would like WL to do this for me.
0
Cone8
 ( 25.05% )
- ago
#28
I'd like to think we could figure out what's wrong with your setup, but we've been going in circles with this topic since the beginning. While we can't seem to isolate the broker equity failure for your case (as far as I know, you're the only one reporting a problem), you can easily control the Position sizing in the strategy code so that you don't have to manually change the signals. If you need help with that, just let us know.

QUOTE:
While we can't seem to isolate the broker equity failure...

It's not often that I recommend a reinstall to solve a problem, but because you were using an old dll at one time, I still think there's a chance that's the problem. So let's take the Nuclear Option:

1. Uninstall Wealth-Lab
2. In Windows Explorer go to C:\Program Files\Quantacula, LLC and DELETE the WealthLab 8 folder.
3. Download and install the latest versions of WealthLab and the extensions you use.

(This procedure won't harm your user data folder, so all your settings and data will still be there after the reinstallation.)
0
- ago
#29

Thank you for the detailed answer.

I have now reinstalled WL according to your instructions.
The problem of correct display and processing of the fields Balance and Cash, was not solved by it.

Maybe Kraken has different account models for USA and Europe.

Can please possibly report a Kraken user from Europe where it works correctly, or not? Then we would have an indication.

Otherwise, the only option at the moment is either to continue to manually change the position size with Excel or to manually enter the current balance within a code.

0
Cone8
 ( 25.05% )
- ago
#30
QUOTE:
was not solved
Darn, but thanks for trying.

QUOTE:
user from Europe
I'm in Europe

QUOTE:
only option
Seems like a coded solution is the way to go. You only have to change one value, and probably not even every day.
0
Cone8
 ( 25.05% )
- ago
#31
Does your Account still look like it did in Post #6?
Showing "0 Positions"?
0
Cone8
 ( 25.05% )
- ago
#32
I've got an idea - I can solve this if we can connect to your account. We just need API/Secret Keys with these "Query-only" key perms and you can set them to expire in 1 day.



Send to info@wealth-lab.com and we'll get this solved for next week's release.
0

Reply

Bookmark

Sort