question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GetPositionInformationAsync on timer (repeated every 15 minutes) throws divide by zero error

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
eros1453commented, Jan 20, 2022

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

0reactions
AykutCanturkcommented, Jan 20, 2022

ü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:

Selamlar Aykut açık pozisyonlarını sürekli çekmen yerine onları bir liste çekmeyi denemen sorununu çözecektir.Daha sonrada soket ile anlık değişiklikleri yakalayıp listte işlemen daha kolay gibi geldi.Kolay gelsin

— Reply to this email directly, view it on GitHub https://github.com/JKorf/Binance.Net/issues/971#issuecomment-1015847884, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACLD5DTXMDQB4KG5C4SZAZTUWXLIJANCNFSM5MH22HDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

– Aykut Cantürk

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found