- ago
When trying to place SBER order I always get “Неверный код клиента”. I tried all four accounts I can choose here all with the same result.

0
928
Solved
20 Replies

Reply

Bookmark

Sort
- ago
#1
Let's get back to troubleshooting this once Build 7 is released later today. When you get your hands on it please make sure you specify appropriate account (not a sub account if you have them of course) e.g. L01-... for stocks, SPBFUT... for futures etc.
1
- ago
#2
Ok, no problem.
0
- ago
#3
Russia Build 7 is live!
0
- ago
#4
It works with futures.

I tried all for accounts - no one worked with stocks. The same error.

In Quik when manual sending orders, there are two fields: "Торговый счет" and "Код клиента". The values from "Торговый счет" - are the same values I can see in WL7 Accounts dropdown list of the Quik provider.

- For futures in Quik I use only "Торговый счет", "Код клиента" is empty.
- For stocks: in Quik I use both fields.

So for WL7 it works for the security class where one field is needed, and doesn't where both are needed.

Maybe this will help.
0
- ago
#5
Some more info:

I has two main account – simple one and “ИИС” one (https://www.moex.com/a3157).
And it looks like it tries to trade first one, as I would like to be able to choose. My main trading account now is «ИИС» one, but according to Quik response it’s trying to trade via the simple one.
0
- ago
#6
I guess the reason is that "trading account" and "client code" are just the same when trading derivatives whereas in the equity market, a trading account can be linked with multiple "client codes".

1. The library the provider is powered by (QuikSharp) doesn't seem to be flexible enough to specify a client code for all order types but stop orders. Did you place market/limit orders only? For testing purposes, try a stop order to see if it makes a difference.

2. Can you set up QUIK as shown below to prefill the Client Code?
https://broker.vtb.ru/servnews/art_detail/1071006/
https://euvgub.github.io/quik_user_manual/ch5_3_6.html
https://smart-lab.ru/vopros/270286.php
0
- ago
#7
1. Stop orders didn't help.

2. These settings didn't help. Most of them have already been set.

3. Other experiments didn't help either).

I experiensed no changes effected by all of this.
0
- ago
#8
I've sent an email with some details to you.
1
- ago
#9
Thanks, the info you've emailed confirms my conclusions.
1
- ago
#10
Does this mean you know what to do and we can wait for a new release?
0
- ago
#11
Yes, I will work on it.
1
- ago
#12
Sent you a debug build of the new version with a fix and other improvements. Please give it a go next week and let me know.
0
- ago
#13
Thanks, I'll be back with debug details.
0
- ago
#14
Just for the record. The issue is perceived as being pretty specific. Simply put, it affects users having multiple sub-accounts in a brokerage account.

I spotted a potential shortcoming in the QuikSharp library (which powers the QUIK broker provider) that prevents it from recognizing those "sub-accounts" (in fact, client codes) and tried to patch it. However, the library doesn't seem to lend itself to the changes. So we call this a limitation and this is where it ends for now.

Topic starter was kind enough to run some tests in his environment using beta builds. Thanks.
0
- ago
#17
I was trying it out with another live account and found that if the provider won't transmit the client code parameter to the exchange that dreaded error code "Неверный код клиента" is always returned by this broker. Let's assume that it's better to always pass it on and make this change in Build 9 of the Russia extension.

Granted, if you would have traded the main account and not the secondary account type you probably wouldn't have noticed this specific problem. Maybe if your Russian broker allowed to use a second QUIK terminal for this account type it might help avoid the issue (but I'm not sure):
https://smart-lab.ru/blog/465833.php
1
Best Answer
- ago
#18
So I'll wait for the build 9 and if it doesn't help, I can try this "two Quiks" trick as a workaround. If I get you right.
0
- ago
#19
Moved the discussion re: "incorrect class code" to another topic:
https://www.wealth-lab.com/Discussion/Request-a-broker-provider-for-Russian-market-QUIK-5473
0

Reply

Bookmark

Sort