GetPositionInformationAsync on timer (repeated every 15 minutes) throws divide by zero error
See original GitHub issueWhen I try to get position information from binance with timer, lets say once in every 15 minutes, Eventually I get Divide by zero error and that error could not be cathed by try-catch phrase. At first I was trying to pull once in every minute it didnt worked. Then I used once in 15 minutes thinking that maybe binance api call limitations cause this but… no luck. any idea ?
Dim x As CryptoExchange.Net.Objects.WebCallResult(Of IEnumerable(Of Futures.FuturesData.BinancePositionDetailsUsdt))
Try
x = Await binance_client.FuturesUsdt.GetPositionInformationAsync(CoinName)
Catch ex As Exception
... do some stuff...
code never comes here after error...
End Try
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
c# - Run async method regularly with specified interval
For a periodic action that runs every 5 minutes, allocating a few lightweight objects on each iteration should have practically zero impact. The ......
Read more >Chapter 16. DRL (Drools Rule Language) rules
A string identifying either int (interval) or cron timer definitions for scheduling the rule. Example: timer ( cron:* 0/15 * * * ?...
Read more >Web service error codes (Microsoft Dataverse) - Power Apps
The following list shows the error codes used in Dataverse. For more information about handling errors when using the Dataverse SDK for ....
Read more >Reactor 3 Reference Guide
This section contains information that should help you get going with ... MINOR is a 0-based number incrementing with each new release cycle....
Read more >Rule Language Reference
Cron timers follow standard Unix cron expressions. The following example DRL rule uses a cron timer to send an SMS text message every...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Daha önce tartışıldı. https://github.com/JKorf/Binance.Net/issues/930 Order döüşünden OrderId yi al, Websocket den gelen bilgiyi al ordan OrderId ile gerekeni alırsın. Ingilizce yazarsan başkaları faydalansın daha iyi olur
üstad bir soru daha sormama izin ver lütfen… futures piyasada market order verdikten sonra gerçekleşen fiyatı nasıl alabilirim ? binance_client." FuturesUsdt.Order.PlaceOrderAsync" 'in geri döndürdüğü class içerisindeki entryprice, *averageprice *hep 0 dönüyor. ister short ister long pozisyon olsun farketmiyor. pozisyon açılırken bir şekilde işimi görüyorum, çünkü o işlem “positions” bölümünde ve okuyabiliyorum. ancak ters işlemle pozisyonu kapattığımda o işlem "orders history"e gidiyor. PlaceOrderAsync’in geriye gerçekleşen fiyatı döndürmesi gerekniyor mu mantık olarak ?
bir yol gösterirsen çok sevinirim. çok uğraştırdım ama inan uğraşıp da beceremediğim şeyleri soruyorum
sağolasın…
On Wed, Jan 19, 2022 at 12:26 AM Erdal Çolak @.***> wrote:
– Aykut Cantürk