AUtoPLace in strategy monitor is turned on. No reaction within 72 runs completed. Meanwhile backtest result shows there were signals during the same period of time.
Log viewer screen error sometimes appears
Binance API connected succesfuly, manually orders are being processed correctly.
Binance extension version = 19
WL8 - build 33
PLease help, what is the trouble ?
Log viewer screen error sometimes appears
Binance API connected succesfuly, manually orders are being processed correctly.
Binance extension version = 19
WL8 - build 33
PLease help, what is the trouble ?
Rename
STrategy monitor log attached
Also, what is the best update mode preferred ? I use = polling
Also, what is the best update mode preferred ? I use = polling
For more than a handful of symbols, you should use Streaming Bars with Binance. Updates (if any) will be available in the first second after the end of interval.
The illegal character issue first appeared in your post here - https://wealth-lab.com/Discussion/9353. Maybe we didn't run it long enough to see it, but after the round of releases with Build 33, we noticed that CryptoExchange.Net (used by the Binance Provider) "fixed order deserialization when trailing delta timestamp is present" which sounds related.
This change is ready for Binance Build 20. Glitch indicated it would go out with the next release cycle. Maybe we can convince him that sooner is better than later.
The illegal character issue first appeared in your post here - https://wealth-lab.com/Discussion/9353. Maybe we didn't run it long enough to see it, but after the round of releases with Build 33, we noticed that CryptoExchange.Net (used by the Binance Provider) "fixed order deserialization when trailing delta timestamp is present" which sounds related.
This change is ready for Binance Build 20. Glitch indicated it would go out with the next release cycle. Maybe we can convince him that sooner is better than later.
Ran strategy on Dummy Broker to compare with Live Binance - the result is there were signals after 1 run ( 5 min scale).
Tried to change type of position size : MAX RISK %, FIxed Value , Equity % , anyway it doesn't work on Live Binance.
Left the strategy run overnight , some new errors appeared in log viewer :
Tried to change type of position size : MAX RISK %, FIxed Value , Equity % , anyway it doesn't work on Live Binance.
Left the strategy run overnight , some new errors appeared in log viewer :
QUOTE:
Left the strategy run overnight , some new errors appeared in log viewer :
Next time could you also right click and copy the log to paste here as text?
From what I gather from the screenshot, Binance's REST API responds with a failure to return the data in requested type. Sort of.
Log attached :
27.03.2023 12:24:41:852
Binance
Error calling Keep Alive: HttpRequestException - Запрошенное имя верно, но данные запрошенного типа не найдены. (api.binance.com:443)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at CryptoExchange.Net.Requests.Request.GetResponseAsync(CancellationToken cancellationToken)
at CryptoExchange.Net.RestApiClient.GetResponseAsync[T](IRequest request, JsonSerializer deserializer, CancellationToken cancellationToken, Boolean expectedEmptyResponse)
SocketException - Запрошенное имя верно, но данные запрошенного типа не найдены.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
InvalidOperationException
HttpRequestException - Запрошенное имя верно, но данные запрошенного типа не найдены. (api.binance.com:443)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at CryptoExchange.Net.Requests.Request.GetResponseAsync(CancellationToken cancellationToken)
at CryptoExchange.Net.RestApiClient.GetResponseAsync[T](IRequest request, JsonSerializer deserializer, CancellationToken cancellationToken, Boolean expectedEmptyResponse)
SocketException - Запрошенное имя верно, но данные запрошенного типа не найдены.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at WealthLab.Binance.BinanceBroker.DestroyAutowireMapping()
27.03.2023 12:24:41:852
Binance
Error calling Keep Alive: HttpRequestException - Запрошенное имя верно, но данные запрошенного типа не найдены. (api.binance.com:443)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at CryptoExchange.Net.Requests.Request.GetResponseAsync(CancellationToken cancellationToken)
at CryptoExchange.Net.RestApiClient.GetResponseAsync[T](IRequest request, JsonSerializer deserializer, CancellationToken cancellationToken, Boolean expectedEmptyResponse)
SocketException - Запрошенное имя верно, но данные запрошенного типа не найдены.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
InvalidOperationException
HttpRequestException - Запрошенное имя верно, но данные запрошенного типа не найдены. (api.binance.com:443)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at CryptoExchange.Net.Requests.Request.GetResponseAsync(CancellationToken cancellationToken)
at CryptoExchange.Net.RestApiClient.GetResponseAsync[T](IRequest request, JsonSerializer deserializer, CancellationToken cancellationToken, Boolean expectedEmptyResponse)
SocketException - Запрошенное имя верно, но данные запрошенного типа не найдены.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at WealthLab.Binance.BinanceBroker.DestroyAutowireMapping()
Binance Broker: Error Placing Order: Requested value 'StopLoss' was not found.
This error appeared also.
What does it mean? The strategy should place orders even if Stop Loss order was not found
This error appeared also.
What does it mean? The strategy should place orders even if Stop Loss order was not found
I've unchecked the box "use Live ..." and checked the " Exit orphan ..." and strategy began to stage orders
but it doesn't place the orders due to this error below:
and sometimes such an error appears :
Error calling Keep Alive: Illegal characters found in parameter 'listenKey'; legal range is '^[a-zA-Z0-9]{1,60}$'.
InvalidOperationException
Illegal characters found in parameter 'listenKey'; legal range is '^[a-zA-Z0-9]{1,60}$'.
but it doesn't place the orders due to this error below:
and sometimes such an error appears :
Error calling Keep Alive: Illegal characters found in parameter 'listenKey'; legal range is '^[a-zA-Z0-9]{1,60}$'.
InvalidOperationException
Illegal characters found in parameter 'listenKey'; legal range is '^[a-zA-Z0-9]{1,60}$'.
CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; namespace WealthScript28 { public class MyStrategy : UserStrategyBase { public override void Initialize(BarHistory bars) { } public override void Execute(BarHistory bars, int idx) { Position foundPosition0 = FindOpenPosition(0); if (foundPosition0 == null) { PlaceTrade(bars, TransactionType.Short, OrderType.Stop, bars.Close[idx], 0, "Short At Stop"); } else { ClosePosition(foundPosition0, OrderType.Stop, foundPosition0.EntryPrice * 1.01, "Cover at stop loss "); ClosePosition(foundPosition0, OrderType.Limit, foundPosition0.EntryPrice * 0.99, "Cover at profit target"); } } } }
Is this code okay? I mean if it is okay , why does this error ( "Error placing Order: Requested Value Stop Loss was not found" ) appears every time I run the strategy?
If it is not okay , let me know please what exactly is wrong..
QUOTE:
Binance Broker: Error Placing Order: Requested value 'StopLoss' was not found.
What does it mean? The strategy should place orders even if Stop Loss order was not found
This means your computer is configured for Russian locale. We've had exactly this issue before:
Binance broker provider: error placing order
@Cone, were you able to reproduce and/or fix it?
QUOTE:
This means your computer is configured for Russian locale. We've had exactly this issue before:
NO, the reason is not Russian language.. I tried it on different devices ,, same problem
QUOTE:
NO, the reason is not Russian language.. I tried it on different devices ,, same problem
We'll need more clues his but so as not to overload the forum with the details (device specs etc.), could you reach us at support@wealth-lab.com again?
I've already answered this in my first Post #2. There's nothing to do until Build 20.
Let me know pls when is going to be released? i mean build 20
It's released.
Continue this topic, because Live trading is impossible still..
2 days testing of Build 20.
Same issues and even more :
1) Exception getting Active Orders: Requested Value "Take ProfitMarket" was not found
2) Error Placing Order: Requested value "StopLoss" was not found
3) Error calling Keep Alive: Illegal characters found in parameter 'listenKey'; legal range is '^[a-zA-Z0-9]{1,60}$'.
4) in Tools/Accounts the calculation of Positions is wrong. When there is 1 position opened it shows 220 positions. When there are no positions = okay.
5) regardless of the errors above,
" PlaceTrade(bars, TransactionType.Short, OrderType.Stop, bars.Close[idx], 0, "Short At Stop"); "
this code outputs this error
"Binance Broker: Error Placing Order: Requested value 'StopLoss' was not found."
2 days testing of Build 20.
Same issues and even more :
1) Exception getting Active Orders: Requested Value "Take ProfitMarket" was not found
2) Error Placing Order: Requested value "StopLoss" was not found
3) Error calling Keep Alive: Illegal characters found in parameter 'listenKey'; legal range is '^[a-zA-Z0-9]{1,60}$'.
4) in Tools/Accounts the calculation of Positions is wrong. When there is 1 position opened it shows 220 positions. When there are no positions = okay.
5) regardless of the errors above,
" PlaceTrade(bars, TransactionType.Short, OrderType.Stop, bars.Close[idx], 0, "Short At Stop"); "
this code outputs this error
"Binance Broker: Error Placing Order: Requested value 'StopLoss' was not found."
Your experience is far different than ours. Which Binance environment are you using? (In the Binance Configuration, Connect to?)
Connect to: Binance
Margin
Zero Bars: No
If you've overlooked it please also see Post #11.
Do you have similar issues connecting to Spot?
Your Response
Post
Edit Post
Login is required