871
General Discussion / Re: HERTZ - Oscillating Formula Based Asset
« on: June 05, 2017, 11:06:25 pm »
https://github.com/grctest/HERTZ-Price-feed-script/blob/master/min_hertz.hs
I have created a simplified version of the Haskell HERTZ price feed script.
The script no longer scrapes cryptofresh for asset values, doesn't handle json, doesn't output to CSV nor use the turtle library.
The script now runs from the command line and takes 5 arguments:
Since you can now enter values easily from the command line as arguments, it will be easier for everyone to test out their own hertz configurations (different frequencies, amplitudes and backing assets).
Any suggestions?
Steemit mirror: https://steemit.com/beyondbitcoin/@cm-steem/hertz-haskell-price-feed-script-update
I have created a simplified version of the Haskell HERTZ price feed script.
The script no longer scrapes cryptofresh for asset values, doesn't handle json, doesn't output to CSV nor use the turtle library.
The script now runs from the command line and takes 5 arguments:
Code: [Select]
./min_hertz.hs referenceBlock genesisBlock blocksInPeriod amplitude referenceAssetValue
example: ./min_hertz.hs 50 1 100 0.5 25
output: 25.784882
Since you can now enter values easily from the command line as arguments, it will be easier for everyone to test out their own hertz configurations (different frequencies, amplitudes and backing assets).
Any suggestions?
Steemit mirror: https://steemit.com/beyondbitcoin/@cm-steem/hertz-haskell-price-feed-script-update