Author Topic: HERTZ - Oscillating Formula Based Asset  (Read 27256 times)

0 Members and 1 Guest are viewing this topic.

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
I would like a price feed for a BTS HERTZ but that oscillates by tracking a simple 30, 14 day moving average. Still this appears difficult.

You can see the price feeds here: https://btsapi.grcnode.co.uk/home and here: http://cryptofresh.com/a/HERTZ

It wouldn't be difficult to track the price feeds, you could scrape the price feed data (https://btsapi.grcnode.co.uk/get_hertz_value?api_key=123abc) once every x mins & establish a history then plot this on a chart.

In terms of moving average, the average settlement price will be $1.00 over 28 days because it oscillates 14% equally each direction.

You could perhaps take the moving average market price, because that will account for the fluctuation in the USD:BTS market. There's certainly the potential for shorting at the stop to net more than 28% profit if BTS was to appreciate whilst your debt depreciated (and if you were able to settle your debt at the bottom).

BTS HERTZ that works by sine wave, is adding a predictable volatility to existing underling volatile price. This seems pointless. But does create an asset that tends to the state of being fully backed by 1x collateral.  even large amplitude it comes back predictably to the 1:1 state.

Backed by 200% collateral, not 100% collateral. But yes, if you settle, you'll trigger a shorter's force settlement at the current settlement rate in BTS (Which could be between $0.86 & $1.14). If you mean the moving average for settlement price is useless, sure. If you mean that the purpose of hertz is pointless then I disagree, I believe that the sine wave will have a noticeable effect on the market compared to say bitUSD.


how many days you add to the average? More days you get less volatile asset but one that doesn't intersect with the price as often - which is the state of coming into  being fully backed ( which is important to me ).

7, 14, 31 all seem very attractive to me.

the problem unlike a mathematical oscillation. how do you build this curve that tracks and average of the past and updates frequently.

Re: Which state is fully backed: All states should be fully backed by Bitshares, if a shorter's collateral falls below the minimum collateral ratio then the shorter is force settled.

You could track the daily market rate average, then compare that against the known settlement price range for that day.

I think we can use published price-feeds on blockchain, going back 7, 14 , 31 days to construct the average which will be weighted as well.

You could certainly track the price feeds of Hertz either via the blockchain directly or by scraping the hug rest api for the required data real time & establishing a price feed history.

Offline ag2

  • Newbie
  • *
  • Posts: 12
    • View Profile
I would like a price feed for a BTS HERTZ but that oscillates by tracking a simple 30, 14 day moving average. Still this appears difficult.

BTS HERTZ that works by sine wave, is adding a predictable volatility to existing underling volatile price. This seems pointless. But does create an asset that tends to the state of being fully backed by 1x collateral.  even large amplitude it comes back predictably to the 1:1 state.

tracking a moving average, attempt to create an asset that is more stable in value than bitshares  (close to bitUSD) . Also it oscillates below and above the bts price.

how many days you add to the average? More days you get less volatile asset but one that doesn't intersect with the price as often - which is the state of coming into  being fully backed ( which is important to me ).

7, 14, 31 all seem very attractive to me.

the problem unlike a mathematical oscillation. how do you build this curve that tracks and average of the past and updates frequently.

I think we can use published price-feeds on blockchain, going back 7, 14 , 31 days to construct the average which will be weighted as well.

can I have some comments?



Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
Created a price feed script HTML page for Hertz: https://btsapi.grcnode.co.uk/home

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
Updated the reference Hertz price feed script:
  • Updated rate calculation
  • Code cleanup - moving code around & changing comments.
https://github.com/BTS-CM/scripts/blob/master/hertz-feed.py

Updated the HUG REST API function:
  • Stop crashing due to non-publishing manually configured private price feed publishers.
  • Inherited the hertz-feed updated formulas.
  • Showing more info in the
https://btsapi.grcnode.co.uk/get_hertz_value?api_key=123abc

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
Thanks to @roelandp, the reference price feed script has been fixed so as to output the correct price feed.

I've updated both the reference price feed script repo and the BTS HUG REST API repo to reflect this change.

Looking forwards to additional active witnesses publishing price feeds for the Hertz MPA!  +5%

Edit:

Just updated the first post to reflect the latest changes!
« Last Edit: January 12, 2018, 11:38:44 pm by Customminer »

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
We've got our first witness! @roelandp!

A huge shout out to him, this is the first step towards HERTZ trading on the BTS DEX!

6 more to go :)

https://steemit.com/bitshares/@cm-steem/hertz-14-activated-6-more-bitshares-witnesses-to-go

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
I recently posted an update regarding Hertz to Steemit: https://steemit.com/bitshares/@cm-steem/hertz-updates-seeking-price-feed-publishers

I'm seeking new price feed publishers, specifically Bitshares witnesses.

The smartcoin currently requires 7 price feed publishers, and we've got our first - @rolandp, thanks you very much!

I'm hopeful that we can reach 7 publishers soon.

Best regards,
CM.

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
Price feed script changes

  • Created a price feed verification script! Using this, I was able to confirm that the phase was correctly set & Wednesdays line up as the primary Hz day for the next 10 years.
  • Created dedicated python functions for improved dynamic use. Anyone can fork the price feed scripts, change these values and begin publishing price feeds for your issued ABA.
  • Pushed updates to Xeroc & Wackou's price feed script PRs.

Spreadsheet changes

  • Improved timestamp accuracy (now accounts for change in period)
  • Applied new default variables
  • Included proof of phase validity (10 years of wednesdays with only values 0.5, 1.0 & 1.5).

Variable changes

  • Amplitude = 1/3 (No longer 1/2)
  • Period = 28 days (No longer 30.43, to line up with the typical work week).
  • Phase = < 1 day (To make wednesday the primary Hz day).
Community updates

  • I've spoken during the last two (40 &amp; 41) bitshares hangouts about HERTZ.

TODO

  • Poll multiple full nodes for the BTS/USD settlement price, so as to harden script from compromised nodes.
  • Find willing high-frequency (at least a couple times per day) price feed publishers.
  • Improve upon the hertz-verification.py script
    • Output charts within the script.
    • Possibly pull BTS historical data to plot how HERTZ would have faired against past price movements.
  • Further consider the amplitude value (still too high?)
  • Run initially in Bitshares testnet.
  • Wait for BSIP-0018 to go live prior to running HERTZ asset in production.

Best regards,
cm-steem

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
Some interesting ideas:

Creating a Trochoid (https://en.wikipedia.org/wiki/Trochoid) or Cycloid (https://en.wikipedia.org/wiki/Cycloid) ABA.


Creating a Trochoidal wave (https://en.wikipedia.org/wiki/Trochoidal_wave) ABA - "In fluid dynamics, a trochoidal wave or Gerstner wave is an exact solution of the Euler equations for periodic surface gravity waves. It describes a progressive wave of permanent form on the surface of an incompressible fluid of infinite depth."

Alternatively, combining sin waves (wave inference) with different frequencies (calculator: https://academo.org/demos/wave-interference-beat-frequency/)

« Last Edit: October 01, 2017, 06:36:05 pm by Customminer »

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile

Offline R

  • Hero Member
  • *****
  • Posts: 1010
    • View Profile
Once the HERTZ price feeds are in a production worthy state & BSIP-0018 is implemented, would anyone be interested in being a private price feed publisher?