jmagly / build.teztools.io Goto Github PK
View Code? Open in Web Editor NEWBuild blockchain powered applications with scripts and tools built against teztools.io infrastructure
License: MIT License
Build blockchain powered applications with scripts and tools built against teztools.io infrastructure
License: MIT License
Hi I I would like to add my "idea" for an API endpoint for tezos token prices.
So for FA2 and FA1.2 tokens there is no endpoint to get historical price or "live" price besides the teztools option. Because teztools managed to do it I think teztools is able to implement something like this?
The API endpoint should allow to query tokens using the contract address which is unique to a given token.
Knowing the contract address for youves uUSD
KT1XRPEPXbZK25r3Htzp2o1x7xdMMmfocKNW
I should be able to query with Teztools and get the current prices
Now the question some might ask is "But there are more decentralised exchanges so there are different prices, how to do that?"
A very good example is how coingecko does it. They have a separate object for every exchange they gather/track the data.
I dont say teztools api should track every dex. But for example the top 2-3?
then you would have something like this:
{
Quipu:{
"base": "uUSD",
"target": "XTZ",
"lastprice": 1,
"volume": "157824452",
"bid_ask_spread_percentage": "0.2",
"timestamp": "2022-04-27T21:10:16+00:00",
"last_trade_at": "2022-04-26T21:10:16+00:00",
"trade_url": "quipuswap dot com/pair"
}
Spicy:{
"base": "uUSD",
"target": "XTZ",
"lastprice": 1,
"volume": "157824452",
"bid_ask_spread_percentage": "0.2",
"timestamp": "2022-04-27T21:10:16+00:00",
"last_trade_at": "2022-04-26T21:10:16+00:00",
"trade_url": "spicyswap dot com/pair"
}
}
Then people can easily get the data and build on top of it.
Since a year people are hoping for coingecko, cmc api but lets dont wait and integrate this for teztools. ๐
My example screenshot is taken from this example here.
https://api.coingecko.com/api/v3/coins/ethereum/contract/0x0d8775f648430679a709e98d2b0cb6250d2887ef
Hey, it would be great if you can add besides the disconnect button a switch account feature like crunchy has. I have many accounts in my temple and everytime connecting and disconnecting is nothing big but after some time a bit tiresome. The switch account feature on crunchy is a smooth experience.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.