How to use live bitcoin value in a function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to use live bitcoin value in a function

Hi all so I am making a bitcoin bot of such and currently have the live bitcoin value in the app which updates every 10 seconds. Now Iā€™d like to be able to use this live number to determine when to buy and sell bitcoins so I thought Iā€™d need to be able to use this number in a function. Firstly is this even possible to use the live number that keeps changing in a function ? The function would basically activate the buy process when the bitcoin value is a certain number and then another function would do the same but to sell. Is this possible ? If so or even if not, could some one recommend a solution ? Thanks guys appreciate the great work

22nd Apr 2020, 1:56 AM
Kevin
1 Resposta
0
also im using swift latest version
22nd Apr 2020, 1:59 AM
Kevin