chloeforbesk Posted May 7, 2021 Share Posted May 7, 2021 Hi there, a client has asked me to embed a live price tracker for their own creator coin on Rally.io. I've got a link to the tracker itself. The link looks like this https://www.creatorco.in/API/1_0/currentPrice.php?coinSymbol= (I can't include the rest of that link for privacy) I've attached an alternative coin display as an example. Is there a way I can do that? They want the tracker to display in the header of their website. WordPress offers plugins for this kind of thing but I haven't been able to find any support for Squarespace. The person who provided them with the link informed them this is possible with css but I've no idea how. Any help would be much appreciated. Thank you. Link to comment
NickScola Posted July 5, 2021 Share Posted July 5, 2021 On 5/7/2021 at 8:58 AM, chloeforbesk said: Hi there, a client has asked me to embed a live price tracker for their own creator coin on Rally.io. I've got a link to the tracker itself. The link looks like this https://www.creatorco.in/API/1_0/currentPrice.php?coinSymbol= (I can't include the rest of that link for privacy) I've attached an alternative coin display as an example. Is there a way I can do that? They want the tracker to display in the header of their website. WordPress offers plugins for this kind of thing but I haven't been able to find any support for Squarespace. The person who provided them with the link informed them this is possible with css but I've no idea how. Any help would be much appreciated. Thank you. Yes, this is pretty straight forward with Javascript. You will need to use the API from Rally.io. Write a Javascript function to perform a fetch into the API endpoint. Upon a successful request you will receive that data in JSON format. For example: { "symbol":"KSK", "priceInUSD": 7.5852780235960005, "priceInRLY": 25.084172 } From there you can retrieve this key/value pair and insert it wherever you wish. If you need help with this in more detail feel free to email me at nick@nickscola.com chloeforbesk 1 https://www.nickscola.com - Squarespace developer since 2007 now a full service creative agency in Chicago that focuses on creating websites with a high standard for aesthetic excellence. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment