Main Menu

Hello, TCNY

Started by bitcrab, December 09, 2015, 03:50:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

merivercap

Quote from: wackou on December 21, 2015, 04:23:09 PM
I have updated the bts_tools package to now also publish feed price for TCNY with an MSSR of 100.1%. My witness 'wackou' is already publishing it (see https://bitshares.openledger.info/#/asset/TCNY)

Here is the annoucement of the update: https://bitsharestalk.org/index.php/topic,19537.msg267686.html#msg267686

Thanks for the update.  Look forward to seeing how things develop. 
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

wackou

I have updated the bts_tools package to now also publish feed price for TCNY with an MSSR of 100.1%. My witness 'wackou' is already publishing it (see https://bitshares.openledger.info/#/asset/TCNY)

Here is the annoucement of the update: https://bitsharestalk.org/index.php/topic,19537.msg267686.html#msg267686
Please vote for witness wackou! More info at [url="http://digitalgaia.io"]http://digitalgaia.io[/url]

bitcrab

#18
Thanks abit!
just now for testing I adjusted minimum feeds to 3 and made the first TCNY:



hope more witnesses can feed price to TCNY. Thanks in advance!

abit

Price feed from witness in.abit activated.
BitShares committee member: abit
BitShares witness: in.abit

abit

Quote from: merivercap on December 10, 2015, 09:14:08 AM
Quote from: abit on December 10, 2015, 08:54:12 AM
Quote from: merivercap on December 10, 2015, 05:40:23 AM
Quote from: bitcrab on December 10, 2015, 05:32:56 AM
I think 1.75 is OK.
maybe you can adjust it to say 1.5, but seems it make no big sense however debate will arise on it.
and definitely collateral ratio need to be at least greater than 1.

Do you know where the buyer's collateral goes?  It just seems to me we are starting with 3x collateral instead of 2x collateral, but I'm not sure.
No buyer's collateral anymore (opposite to bts 0.x). Shorters "borrow" USD and sell it, buyers buy from the sellers.

If I'm a buyer, I use BTS to buy bitUSD.  Where does the BTS go?  Does the BTS go to the short seller?  If so that can make sense. So the short puts up 2x collateral and receives 1x collateral from the buyer when the trade executes?
Shorters puts any amount of BTS as collateral as they like. More collateral, less risky of being margin called and/or forced settlement.
BitShares committee member: abit
BitShares witness: in.abit

merivercap

Quote from: abit on December 10, 2015, 08:54:12 AM
Quote from: merivercap on December 10, 2015, 05:40:23 AM
Quote from: bitcrab on December 10, 2015, 05:32:56 AM
I think 1.75 is OK.
maybe you can adjust it to say 1.5, but seems it make no big sense however debate will arise on it.
and definitely collateral ratio need to be at least greater than 1.

Do you know where the buyer's collateral goes?  It just seems to me we are starting with 3x collateral instead of 2x collateral, but I'm not sure.
No buyer's collateral anymore (opposite to bts 0.x). Shorters "borrow" USD and sell it, buyers buy from the sellers.

If I'm a buyer, I use BTS to buy bitUSD.  Where does the BTS go?  Does the BTS go to the short seller?  If so that can make sense. So the short puts up 2x collateral and receives 1x collateral from the buyer when the trade executes?
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

abit

Quote from: merivercap on December 10, 2015, 05:40:23 AM
Quote from: bitcrab on December 10, 2015, 05:32:56 AM
I think 1.75 is OK.
maybe you can adjust it to say 1.5, but seems it make no big sense however debate will arise on it.
and definitely collateral ratio need to be at least greater than 1.

Do you know where the buyer's collateral goes?  It just seems to me we are starting with 3x collateral instead of 2x collateral, but I'm not sure.
No buyer's collateral anymore (opposite to bts 0.x). Shorters "borrow" USD and sell it, buyers buy from the sellers.
BitShares committee member: abit
BitShares witness: in.abit

ebit

telegram:ebit521
[url="https://weibo.com/ebiter"]https://weibo.com/ebiter[/url]

merivercap

Quote from: bitcrab on December 10, 2015, 05:32:56 AM
I think 1.75 is OK.
maybe you can adjust it to say 1.5, but seems it make no big sense however debate will arise on it.
and definitely collateral ratio need to be at least greater than 1.

Do you know where the buyer's collateral goes?  It just seems to me we are starting with 3x collateral instead of 2x collateral, but I'm not sure. 
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

bitcrab

I think 1.75 is OK.
maybe you can adjust it to say 1.5, but seems it make no big sense however debate will arise on it.
and definitely collateral ratio need to be at least greater than 1.

merivercap

Thanks for the info.

Hey have you guys thought about adjusting the collateral requirements?

I'm still not exactly sure where the Smartcoin/TCNY buyer puts his BTS collateral, but if we have 'maintenance collateral' for the shorts of 750 instead of 1750 will it still work?  I assume TCNY long puts 1x collateral & TCNY short puts 2x collateral currently then we should be ok if we reduce it.  Just not sure exactly how the collateral works.  Thanks. 
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

55


alt

for some people asked me how to create an private smart coin

1. create asset. '4' means precition is 0.0001, '511' means  enable all permision for the issuers. '128' means  get feed from witness.
     set 'market_fee_percent' to 100 if you want charge 1% fee.

create_asset bitcrab TCNY 4 {"issuer_permissions": 511, "flags": 128, "market_fee_percent": 0, "core_exchange_rate":{"base":{"amount":1,"asset_id":"1.3.1"},"quote":{"amount":1,"asset_id":"1.3.0"}}} {} true


check it

locked >>> get_asset TCNY
get_asset TCNY
{
  "id": "1.3.734",
  "symbol": "TCNY",
  "precision": 4,
  "issuer": "1.2.121",
  "options": {
    "max_supply": "1000000000000000",
    "market_fee_percent": 0,
    "max_market_fee": "1000000000000000",
    "issuer_permissions": 511,
    "flags": 128,
    "core_exchange_rate": {
      "base": {
        "amount": 1,
        "asset_id": "1.3.734"
      },
      "quote": {
        "amount": 1,
        "asset_id": "1.3.0"
      }
    },
    "whitelist_authorities": [],
    "blacklist_authorities": [],
    "whitelist_markets": [],
    "blacklist_markets": [],
    "description": "",
    "extensions": []
  },
  "dynamic_asset_data_id": "2.3.734",
  "bitasset_data_id": "2.4.33"
}

2. setup some important parameter for the smart coin
1) expired time for feeds 2 hours(7200 sec)
2) efficent number of feeds is 7, less than 7 is not efficeint.
3) delay 24 hours for force settlement(86400 sec)
4) price for force settlement have 2% addtion(200/10000)
5) limit for the force settlement volume is 2% of supply. (200/10000)
6) backup by BTS

update_bitasset TCNY {"feed_lifetime_sec" : 7200, "minimum_feeds" : 7, "force_settlement_delay_sec" : 86400, "force_settlement_offset_percent": 200, "maximum_force_settlement_volume" : 200, "short_backing_asset" : "1.3.0"} true

check it

locked >>> get_object 2.4.33
get_object 2.4.33
[{
    "id": "2.4.33",
    "feeds": [[
        "1.2.9952",[
......
    "current_feed_publication_time": "2015-12-09T23:44:54",
    "options": {
      "feed_lifetime_sec": 7200,
      "minimum_feeds": 7,
      "force_settlement_delay_sec": 86400,
      "force_settlement_offset_percent": 200,
      "maximum_force_settlement_volume": 200,
      "short_backing_asset": "1.3.0",
      "extensions": []
    },
    "force_settled_volume": 0,
    "is_prediction_market": false,
    "settlement_price": {
      "base": {
        "amount": 0,
        "asset_id": "1.3.0"
      },
      "quote": {
        "amount": 0,
        "asset_id": "1.3.0"
      }
    },
    "settlement_fund": 0
  }
]

alt

+5%
you'd better enable multisig later
it's still not very easy to use.
here are some documents I can found, thanks  xeroc
http://docs.bitshares.eu/bitshares/tutorials/propose-transaction.html

clayop

 +5% The first private BitAsset in the history!
Bitshares Korea - [url="http://www.bitshares.kr"]http://www.bitshares.kr[/url]
Vote for me and see Korean Bitshares community grows
delegate-clayop

merivercap

 +5%

Great to see the progress! 
BitCash - http://www.bitcash.org 
Beta: bitCash Wallet / p2p Gateway: ([url="https://m.bitcash.org"]https://m.bitcash.org[/url])
Beta: bitCash Trade ([url="https://trade.bitcash.org"]https://trade.bitcash.org[/url])

wackou

Wanted to let you know, I will also update my feed script. I'm not as fast as xeroc, so it'll take a few more days, but you can count on me too ;)
Please vote for witness wackou! More info at [url="http://digitalgaia.io"]http://digitalgaia.io[/url]

bitcrab

thanks xeroc.
now no plan to build own set of feed producers, if possible it's good that witnesses be the producers.

xeroc

I'll work on the script it tomorrow .. shouldn't take too much time ..
Do you have your own set of feed producers or will witnesses be producers?

bitcrab

the private smartcoin TCNY is created and below is the info of it.
the issuer is bitcrab, later it will be transfered to a multisig account.
for price feed script, I hope the default SQP value can be set to 100.1% instead of 110%. other setting can be set as same as BitCNY.
@xeroc can you modify the script if necessary?

unlocked >>> get_asset "TCNY"
get_asset "TCNY"
{
  "id": "1.3.734",
  "symbol": "TCNY",
  "precision": 4,
  "issuer": "1.2.121",
  "options": {
    "max_supply": "1000000000000000",
    "market_fee_percent": 0,
    "max_market_fee": "1000000000000000",
    "issuer_permissions": 511,
    "flags": 128,
    "core_exchange_rate": {
      "base": {
        "amount": 1,
        "asset_id": "1.3.734"
      },
      "quote": {
        "amount": 1,
        "asset_id": "1.3.0"
      }
    },
    "whitelist_authorities": [],
    "blacklist_authorities": [],
    "whitelist_markets": [],
    "blacklist_markets": [],
    "description": "",
    "extensions": []
  },
  "dynamic_asset_data_id": "2.3.734",
  "bitasset_data_id": "2.4.33"
}
unlocked >>> get_object 2.4.33
get_object 2.4.33
[{
    "id": "2.4.33",
    "feeds": [[
        "1.2.9952",[
          "2015-12-09T09:15:18",{
            "settlement_price": {
              "base": {
                "amount": 1000,
                "asset_id": "1.3.734"
              },
              "quote": {
                "amount": 388050,
                "asset_id": "1.3.0"
              }
            },
            "maintenance_collateral_ratio": 1750,
            "maximum_short_squeeze_ratio": 1001,
            "core_exchange_rate": {
              "base": {
                "amount": 1000,
                "asset_id": "1.3.734"
              },
              "quote": {
                "amount": 388050,
                "asset_id": "1.3.0"
              }
            }
          }
        ]
      ]
    ],
    "current_feed": {
      "settlement_price": {
        "base": {
          "amount": 0,
          "asset_id": "1.3.0"
        },
        "quote": {
          "amount": 0,
          "asset_id": "1.3.0"
        }
      },
      "maintenance_collateral_ratio": 1750,
      "maximum_short_squeeze_ratio": 1500,
      "core_exchange_rate": {
        "base": {
          "amount": 0,
          "asset_id": "1.3.0"
        },
        "quote": {
          "amount": 0,
          "asset_id": "1.3.0"
        }
      }
    },
    "current_feed_publication_time": "2015-12-09T15:38:36",
    "options": {
      "feed_lifetime_sec": 7200,
      "minimum_feeds": 7,
      "force_settlement_delay_sec": 86400,
      "force_settlement_offset_percent": 200,
      "maximum_force_settlement_volume": 200,
      "short_backing_asset": "1.3.0",
      "extensions": []
    },
    "force_settled_volume": 0,
    "is_prediction_market": false,
    "settlement_price": {
      "base": {
        "amount": 0,
        "asset_id": "1.3.0"
      },
      "quote": {
        "amount": 0,
        "asset_id": "1.3.0"
      }
    },
    "settlement_fund": 0
  }
]