Author Topic: S&P 500, Dow and other indexes as smart assets  (Read 8233 times)

0 Members and 1 Guest are viewing this topic.

Offline zapata42

  • Full Member
  • ***
  • Posts: 62
    • View Profile
  • BitShares: zapata42
We've created 3 new smart-assets: INDEXSPX (S&P 500), INDEXDJI (Dow Jones Industrial Average), INDEXNASDAQ with a precision of 8, paired them with BTS.
The script that gets latest index values, calculates price and pushes it to the blockchain is ready. Two separate 24/7 working servers are also ready to run the script. 
The question is how to do everything right? Should we convert the indexes to BTS price according to BTS/USD rate or just push the index value?

For example: Dow is 23,932.76 at the moment. Should we push 23,932 BTS or 23,932 / 0.144462 (USD/BTS rate)


Both are valid.

It depends what do you intend to sell.. do you want to guaranty the Dow performance against USD or BTS.

Actually buyer expect to perform against USD. That's why BTWTY and SNPFH express it in USD (publish feed = index price / USD/BTS rate).

Note that you can use BitUSD as collateral, and publish the index price unchanged.


Offline sschiessl

  • Administrator
  • Hero Member
  • *****
  • Posts: 662
    • View Profile
  • BitShares: sschiessl
Hello btsindex,

who is we in that case? Please consider the permission discussion in https://bitsharestalk.org/index.php?topic=26068.0.
Also, the price should reflect actual FIAT price of the asset.


Offline btsindex

We've created 3 new smart-assets: INDEXSPX (S&P 500), INDEXDJI (Dow Jones Industrial Average), INDEXNASDAQ with a precision of 8, paired them with BTS.
The script that gets latest index values, calculates price and pushes it to the blockchain is ready. Two separate 24/7 working servers are also ready to run the script. 
The question is how to do everything right? Should we convert the indexes to BTS price according to BTS/USD rate or just push the index value?

For example: Dow is 23,932.76 at the moment. Should we push 23,932 BTS or 23,932 / 0.144462 (USD/BTS rate)

Any other recommendations until its not too late?

Thanks!  :)
« Last Edit: April 09, 2018, 10:44:03 am by btsindex »