Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How do you get the TON coin price with the TON API?

Is there a way to get the current TON coin price with the TON API?


This question was imported from Telegram Chat: https://t.me/tondev_eng/27900

  
  
Posted 10 months ago
Votes Newest

Answers


If you mean the blockchain nodes themselves, then nodes will not display this data. This is really a market question, not a question that the blockchain protocol itself should answer. Every market has their own answer to what the price of TON is, and arbitrage will slowly balance it out.

There are services that aggregate many markets' prices together to get a simple answer for you, though. tonapi.io does allow for this:

https://tonapi.io/v2/rates?tokens=ton&currencies=usd

CoinMarketCap and CoinGecko both provide their own APIs as well.

  
  
Posted 10 months ago
Jeremy
384 × 5 Administrator