🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Bitcoin / Multi Crypto Coin Ticker with 24 candlesticks chart

    Scheduled Pinned Locked Moved PROJECTS
    89 Posts 25 Posters 434.8k Views 10 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • frittnaF Offline
      frittna @frankchau93
      last edited by frittna

      @frankchau93
      i started from zero too so maybe give it a try and search/test if there are other compatible libraries. Since i have no core2 device and beside the (stupid) fact that i cannot use the latest boardmanager (higher than 1.0.4) on a core1 I am kind of stuck. But i guess not forever.. atm i am not really plessed with free time but we would need to know what is causing the problems with boardmanager 1.0.5 and higher first. I suspect the WIFI, the SDCard or the Websockets library. Then only minor changings in code are needed to support core2 i guess.

      1 Reply Last reply Reply Quote 0
      • Y Offline
        yashax
        last edited by

        Can someone please help me figure out how to display ticker for TIME crypto coin?

        1 Reply Last reply Reply Quote 0
        • Y Offline
          yashax
          last edited by

          Is it possible to have ticker rotate between several crypto coins? Like BTC for 5 seconds, the ETH for 5 seconds, in the loop.

          frittnaF 1 Reply Last reply Reply Quote 0
          • frittnaF Offline
            frittna @yashax
            last edited by frittna

            @yashax

            Hi,
            regarding TIME token - I see 4 different tokens with that name but none of it is listed on binance.

            An optional cycling function like you're asking was added in the last version i've released a month ago.
            Scroll up or go to the github source page.
            btw: do you have a core1 unit now?

            Y 1 Reply Last reply Reply Quote 0
            • Y Offline
              yashax @frittna
              last edited by

              @frittna Yes, picked up 2 Core 1’s with stands. ))

              Regarding TIME, so if it’s not listed on Binance, it won’t work?

              Thank you for all your help.

              J

              frittnaF 1 Reply Last reply Reply Quote 0
              • frittnaF Offline
                frittna @yashax
                last edited by frittna

                @yashax
                yes, thats correct since prize data comes from the binance api only, spot markets, no derivates

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  yashax
                  last edited by

                  How can I change clock from 24hr to 12hr?

                  Thank you

                  frittnaF 1 Reply Last reply Reply Quote 0
                  • frittnaF Offline
                    frittna @yashax
                    last edited by frittna

                    @yashax 0_1642890212095_43c2805b-3de5-4119-9f31-627354773fbc-grafik.png

                    you can check at line 500 in the code and simply change lines where is says "time(now)" to "timeFormat12(now)"
                    this will work and will show time in am/pm mode and not in 24h mode.
                    If you want to have a visualisation for am/pm too you would have to find free space first and draw something small with a the isAM() or isPM() function.

                    Y 1 Reply Last reply Reply Quote 0
                    • Y Offline
                      yashax @frittna
                      last edited by

                      @frittna Thank you so much.

                      What’s the while line on the chart?

                      frittnaF 1 Reply Last reply Reply Quote 0
                      • frittnaF Offline
                        frittna @yashax
                        last edited by frittna

                        @yashax
                        the white line is the relative trading volume from the last 24 shown candles

                        Y 1 Reply Last reply Reply Quote 0
                        • Y Offline
                          yashax @frittna
                          last edited by

                          @frittna Can you please be kind to help me to adapt your code to display the Forex market, the same way.

                          Thank you so very much in advance.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dssguy1
                            last edited by

                            Recently my ticker just went to 0.00e+00 for BTC price and no chart. It says "WS Disconnected" now. Did something in the data source change to break this awesome little ticker?

                            1 Reply Last reply Reply Quote 1
                            • D Offline
                              dssguy1
                              last edited by

                              Forgot to mention, it also says "No JSON in response".

                              1 Reply Last reply Reply Quote 1
                              • B Offline
                                bucket62
                                last edited by

                                I am also getting the W.S disconnected and no JSON message. Is there a way to update the config file so that users can change the API? I think this may be a problem with the binance API

                                1 Reply Last reply Reply Quote 0
                                • frittnaF Offline
                                  frittna
                                  last edited by

                                  maybe it could be geo-blocked because here from the EU for example it still works normally!
                                  please test:
                                  https://api.binance.com/api/v3/depth?symbol=BTCUSDT&limit=1000
                                  and
                                  https://api.binance.us/api/v3/depth?symbol=BTCUSDT&limit=1000
                                  If only the .us domain works for you i will update the code soon for an .us version.

                                  If you compile it yourself with arduino you have to modify the .com to .us - so change these two lines:
                                  const char restApiHost = "api.binance.us";
                                  and
                                  const char wsApiHost = "stream.binance.us";

                                  1 Reply Last reply Reply Quote 0
                                  • felmueF Offline
                                    felmue
                                    last edited by

                                    Hello @frittna

                                    FWIW: here in Switzerland both URLs work for me.

                                    Thanks
                                    Felix

                                    GPIO translation table M5Stack / M5Core2
                                    Information about various M5Stack products.
                                    Code examples

                                    1 Reply Last reply Reply Quote 0
                                    • frittnaF Offline
                                      frittna
                                      last edited by

                                      i uploaded a version that uses binance.us.
                                      Use the M5Burner in my Zip File on Github

                                      B 1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        bucket62 @frittna
                                        last edited by

                                        @frittna
                                        Thank you frittna! I am in the U.S. and will try that out today. I will report back if it works.

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          bucket62
                                          last edited by

                                          Hi Frittna, thank you for your help. The Binance.US api fixed the problem and I am back up and running. Thank you!

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            dssguy1
                                            last edited by

                                            Works perfect! THANKS!!! Now I can watch myself losing money again!

                                            frittnaF 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post