Need help . Need to run it on phone . Api custom result on html or js without python.so i can use this on mobile | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need help . Need to run it on phone . Api custom result on html or js without python.so i can use this on mobile

so i do day trading .below are the api links . ex. Goal is to see Btc - 1398 , eth - 654 , lth - 150 . it changes few times a second , very volatile . so need it to be refreshed about every second or two . thanx in advance https://api.gdax.com/products/bch-usd/ticker https://api.gdax.com/products/Eth-usd/ticker https://api.gdax.com/products/LTC-usd/ticker Im a noob was able to do with python . but since market is so volatile and to take advantage would live it on my phone

1st May 2018, 7:30 AM
Gill
Gill - avatar
5 Answers
1st May 2018, 7:44 AM
KrOW
KrOW - avatar
+ 1
yes its possible but you have take cure of my previous post on android... You have to fetch the result (and this is in JSON) and setup your output for that
1st May 2018, 8:41 AM
KrOW
KrOW - avatar
0
i do have qpython and it works . buy will always run i n background and this thing needs to be updated every second . for that i was using auto refresh ..,. i am able to put each one as a frame and auto refresh on my phone . but then it shows the whole ticker . is it do able without python ?? just opening a webpage ????
1st May 2018, 7:52 AM
Gill
Gill - avatar
0
If it run in background you will have problem with either because your browser/app can be destroyed by android system for get resources (depends on many factors).... If do you want do it at minimal resource consume, you have to implement like native app with java or kotlin but this is your chooice and maybe is not necessary.... Anyway you can do it in python, use a infinte loop that calculate how many seconda are by last api call and sleep your main thread by necessary
1st May 2018, 8:12 AM
KrOW
KrOW - avatar
0
objective is to run it from any device anywhere . with just a link to html ... data is like this {"trade_id":4304823,"price":"1317.00000000","size":"0.01550000","bid":"1316.99","ask":"1317","volume":"25258.09417139","time":"2018-05-01T08:34:12.157000Z"} is it not possible using JavaScript to just show the price ?
1st May 2018, 8:38 AM
Gill
Gill - avatar