Code Monkey home page Code Monkey logo

Comments (9)

tanhsnkt1997 avatar tanhsnkt1997 commented on May 28, 2024

And what is _hexadem ? thanks you

from wechartweb3.

Linch1 avatar Linch1 commented on May 28, 2024

Ehi, you can have any pair that exists for that token, but I don't really get what you are asking with the first question, can you rephrase it ?

_hexadem is a code inside the dex smart contracts that ( if I understood well by the code ) is used just for creating the unique pair addresses, i can think it like a dex 'sign' for it's pairs address.

from wechartweb3.

tanhsnkt1997 avatar tanhsnkt1997 commented on May 28, 2024

image
sometimes it gives error Error: Invalid JSON RPC response: "" as shown, do you know why?

from wechartweb3.

tanhsnkt1997 avatar tanhsnkt1997 commented on May 28, 2024

image
And open, high, low, value always equal , only close different ?

from wechartweb3.

Linch1 avatar Linch1 commented on May 28, 2024

JSON RPC response is an issue given from your provider, you should detect the line where it raise the error and add a try catch, i missed some of them, if you find where it gives the error please make a pull also in the repo.

The open, high, low, value always equal for some tokens probably becouse during 1 minute only 1 transaction is made so the minute candle is not update except for the close field. the close field is always updated during the next transaction that is made with that token also if the transaction is made hours later.

If you see all the prices retrived for a single pair you should see that the close is always equal to the next price open , but for now i saw that there are still some issues in updating the close field, i'm working on that when i have time

from wechartweb3.

tanhsnkt1997 avatar tanhsnkt1997 commented on May 28, 2024

image
And token basic some tokens do not exist for example Ethereum Token (0x2170ed0880ac9a755fd29b2688956bd959f933f8), and as shown in the picture Tether USD appears many records I think it only has 1 record, total_supply and pairs_count will be updated when changed?

from wechartweb3.

Linch1 avatar Linch1 commented on May 28, 2024

Some tokens don't exists probably becouse the address is a non standard erc20, this cause an error when retriving the informations like decimals , supply etc ...

0x2170ed0880ac9a755fd29b2688956bd959f933f8 this seems to be an address and not a token, am i wrong ?

In the token basic records the pairs_count are updated yes, the total_supply instead is never updated.

from wechartweb3.

tanhsnkt1997 avatar tanhsnkt1997 commented on May 28, 2024

thanks for your explanation, can you help me how to calculate volume/1 block?

from wechartweb3.

tanhsnkt1997 avatar tanhsnkt1997 commented on May 28, 2024

Or calculate trading volume of a tx ?

from wechartweb3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.