cryptop icon indicating copy to clipboard operation
cryptop copied to clipboard

Adding cli call, json output

Open lecler-i opened this issue 8 years ago • 4 comments

Is it possible to add a parameter to be able to call cryptop and have the infos formatted in JSON on stdout ?

So we can use the data in various script. It should be very easy (depend on how did you implement your cache)

Thanks in advance!

lecler-i avatar Aug 12 '17 14:08 lecler-i

The json only stores the coins and holdings, no values, it would be the same as cat ~/.cryptop/wallet.json or with better formatting cat ~/.cryptop/wallet.json | python -m json.tool

What are you trying to do?

huwwp avatar Aug 14 '17 02:08 huwwp

Is it possible to add a call to cryptop for this? So it update the values if needed?

On 14 August 2017 4:57:51 AM GMT+02:00, huwwp [email protected] wrote:

The json only stores the coins and holdings, no values, it would be the same as cat ~/.cryptop/wallet.json or with better formatting cat ~/.cryptop/wallet.json | python -m json.tool

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/huwwp/cryptop/issues/37#issuecomment-322089609

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

lecler-i avatar Aug 14 '17 06:08 lecler-i

@huwwp I will try to elaborate on @lecler-i - he is suggesting an output option like eg.

cryptop -output json which only outputs json with the coin & value (at the moment of the call). This could be very useful for scripting and whatnot.

bakman2 avatar Dec 01 '17 13:12 bakman2

@bakman2 Exactly.... Sorry for the poor english

lecler-i avatar Jan 07 '18 05:01 lecler-i