Get the TON price from markets
markets rates
const response = await fetch('https://ton-open-api.nownodes.io/v2/rates/markets', { method: 'GET', headers: {}, }); const data = await response.json();
{ "markets": [ { "market": "OKX", "usd_price": 5.2, "last_date_update": 1668436763 } ] }