BitShares Forum

Main => General Discussion => Topic started by: toast on August 06, 2014, 08:01:56 pm

Title: Dry Run 11: The Wolf of Coin Market Cap
Post by: toast on August 06, 2014, 08:01:56 pm
https://www.youtube.com/watch?v=VaNTcfOMSx8&t=9

BitUSD!!!1

Code: [Select]
default (unlocked) >>>  wallet_market_submit_ask bytemaster 20 XTS 1.1 USD        // selling 20 XTS @ 1.1 USD per XTS
default (unlocked) >>> wallet_market_submit_bid bytemaster 20 XTS 1.1 USD        // buying 20 XTS @ 1.1 USD per XTS
default (unlocked) >>> wallet_market_submit_short bytemaster 20 1.1 USD            // selling 20 USD @ 1.1 USD per XTS
default (unlocked) >>> wallet_market_order_list USD XTS
TYPE        QUANTITY            PRICE                         BALANCE             COST                COLLATERAL          ID
================================================================================================================================
ask_order   0.00006 XTS         0.74 USD / XTS                0.00006 XTS         0.0000 USD          N/A                 XTSPpSx4FEbjmMZe66JSYz3qbdiCSi2zVkde
ask_order   20.00000 XTS        0.9 USD / XTS                 20.00000 XTS        18.0000 USD         N/A                 XTSHwdSwKKe8ot5dPUrfAQmvY7HhwoHB8DrJ
cover_order 7.99999 XTS         0.49998812498515623 USD / XTS 3.9999 USD          3.9998 USD          10.66666 XTS        XTS9wijezuMgNbQtKb6sbqV1m5adjQuj7fty
cover_order 9.00000 XTS         0.55555555555555555 USD / XTS 5.0000 USD          4.9999 USD          12.00000 XTS        XTSF6ArKNCbMLoTg8dG11Z27dbcnnTgyVX2a
cover_order 7.50000 XTS         0.66666666666666666 USD / XTS 5.0000 USD          4.9999 USD          10.00000 XTS        XTSMsF41gy1skiMXsDny5KTzTRsjEULtJ3MR

default (unlocked) >>> wallet_market_cover bytemaster 1 USD XTSF6ArKNCbMLoTg8dG11Z27dbcnnTgyVX2a              // pay off 1 USD on your order



Code: [Select]
default2 (unlocked) >>> blockchain_market_order_book USD XTS
                  BIDS (* Short Order)                                       |                                   ASKS
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8.2000 USD                                                      MARKET PRICE | 0.74 USD / XTS                            0.00006 XTS                0.0000 USD
                                                                             | 0.75 USD / XTS                           89.33334 XTS               67.0000 USD
                                                                             | 0.9 USD / XTS                            20.00000 XTS               18.0000 USD
                                                                             | 1.1 USD / XTS                            20.00000 XTS               22.0000 USD
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             |                                   MARGIN
                                                                             | CALL PRICE                                   QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             | 0.99999549999774999 USD / XTS            19.99999 XTS               19.9999 USD   26.66666 XTS
                                                                             | 0.66666666666666666 USD / XTS             7.50000 XTS                5.0000 USD   10.00000 XTS
                                                                             | 0.55555555555555555 USD / XTS             9.00000 XTS                5.0000 USD   12.00000 XTS
                                                                             | 0.49998812498515623 USD / XTS             7.99999 XTS                3.9999 USD   10.66666 XTS

Median Feed Price: 1. USD / XTS     Maximum Short Price: 1.5 USD / XTS     Minimum Cover Price: 0.66666666666666666 USD / XTS
Bid Depth: 29.66666 XTS     Ask Depth: 171.00000 XTS

Delegates can adjust their price feed via:
Code: [Select]
wallet_publish_price_feed delegate_name 1.1 USD  // set the price to 1.1 USD per XTS

The median price feed is used to restrict market operations for creating new shorts or executing margin calls.   This is used for bootstrapping the network.

Code: [Select]
git clone https://github.com/BitShares/bitshares_toolkit
git checkout develop

Dry Run Snapshot
This dry run uses a new genesis block using a snapshot of the AGS and PTS chains from July 18th which was the last day of AGS donations. We need to verify this genesis snapshot. Everyone please check your genesis balances and see if they are the expected amount.
Title: Re: Dry Run 11: The Wolf of Coinmarketcap
Post by: Riverhead on August 06, 2014, 08:14:20 pm
Oh snap...
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: xeroc on August 06, 2014, 08:55:18 pm
ok .. so this is just the dryrun .. NOT OFFICIAL blockchain!

good to know .. can setup a node tomorrow
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Riverhead on August 06, 2014, 09:26:59 pm
Anyone help a poor tester out?  :-\


XTS7tdYLcPHsp1uUxEdEQmBQ6grLHRqhFXvKmbEfQ8bxuoStAiaso
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 06, 2014, 09:33:22 pm
Last Error:  insufficient collateral

Code: [Select]
>>> blockchain_market_order_book USD XTS
                  BIDS (* Short Order)                                       |                                   ASKS                                 
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
100.0000 USD              1,000.00000 XTS                      0.1 USD / XTS | 0.39 USD / XTS                        9,666.66685 XTS            3,770.0000 USD
5.0000 USD                50,000.00000 XTS                  0.0001 USD / XTS | 0.65 USD / XTS                           22.99985 XTS               14.9499 USD
                                                                             | 0.75 USD / XTS                           10.00000 XTS                7.5000 USD
                                                                             | 0.75 USD / XTS                           69.11107 XTS               51.8333 USD
                                                                             | 0.9 USD / XTS                            20.00000 XTS               18.0000 USD
                                                                             | 1.01 USD / XTS                          123.00000 XTS              124.2300 USD
                                                                             | 1.1 USD / XTS                            20.00000 XTS               22.0000 USD
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             |                                   MARGIN                                 
                                                                             | CALL PRICE                                   QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             | 0.66666666666666666 USD / XTS            12.84945 XTS                8.0884 USD   17.13260 XTS
                                                                             | 0.6 USD / XTS                            19.66650 XTS               11.7999 USD   26.22200 XTS
                                                                             | 0.59999868132157951 USD / XTS            30.33340 XTS               18.2000 USD   40.44454 XTS
                                                                             | 0.55555555555555555 USD / XTS             9.00000 XTS                5.0000 USD   12.00000 XTS
                                                                             | 0.49998812498515623 USD / XTS             7.99999 XTS                3.9999 USD   10.66666 XTS
                                                                             | 0.4444 USD / XTS                        112.50000 XTS               49.9950 USD   150.00000 XTS
                                                                             | 0.33333333333333333 USD / XTS            30.00000 XTS               10.0000 USD   40.00000 XTS
                                                                             | 0.29999702999970299 USD / XTS            33.33333 XTS                9.9999 USD   44.44444 XTS
                                                                             | 0.29999702999970299 USD / XTS            33.33333 XTS                9.9999 USD   44.44444 XTS
                                                                             | 0.26666666666666666 USD / XTS           375.00000 XTS              100.0000 USD   500.00000 XTS
                                                                             | 0. USD / XTS                              0.00009 XTS                0.0000 USD   0.00012 XTS

Median Feed Price: 1. USD / XTS     Maximum Short Price: 1.5 USD / XTS     Minimum Cover Price: 0.66666666666666666 USD / XTS
Bid Depth: 462.44443 XTS     Ask Depth: 10,414.00000 XTS
Last Error:  insufficient collateral (37004)



Details:
37004 insufficient_collateral: insufficient collateral

    {"_current_bid":{"type":"bid_order","market_index":{"order_price":{"ratio":"0.01","quote_asset_id":22,"base_asset_id":0},"owner":"XTS9LxRb7TPwW5GoCgy1b2MY8DhD4fKbdF4r"},"state":{"balance":1000000},"collateral":null},"cover_ask":{"type":"cover_order","market_index":{"order_price":{"ratio":"0.066666666666666666","quote_asset_id":22,"base_asset_id":0},"owner":"XTSGaicGv9pAch65Gr5bmUvcU5EHgjG84C4b"},"state":{"balance":80884},"collateral":1713260},"cover_ask.get_highest_cover_price()":{"ratio":"0.047210580997630248","quote_asset_id":22,"base_asset_id":0}}
    th_a  chain_database.cpp:588 get_next_ask

    {}
    th_a  chain_database.cpp:623 get_next_ask
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 06, 2014, 09:35:20 pm
Anyone help a poor tester out?  :-\


XTS7tdYLcPHsp1uUxEdEQmBQ6grLHRqhFXvKmbEfQ8bxuoStAiaso

Sent.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Riverhead on August 06, 2014, 09:40:26 pm
Anyone help a poor tester out?  :-\


XTS7tdYLcPHsp1uUxEdEQmBQ6grLHRqhFXvKmbEfQ8bxuoStAiaso

Sent.


Thank you :)
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 06, 2014, 09:48:01 pm
blockchain_get_asset USD
shows  current_share_supply as 0, even though we know some have already been "issued" (sold short) into existence.
Shouldn't current_share_supply get updated?


Code: [Select]
>>> blockchain_get_asset USD
{
  "id": 22,
  "symbol": "USD",
  "name": "United States Dollar",
  "description": "1 United States dollar",
  "public_data": "",
  "issuer_account_id": -2,
  "precision": 10000,
  "registration_date": "20140717T000004",
  "last_update": "20140717T000004",
  "current_share_supply": 0,
  "maximum_share_supply": 1000000000000000,
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: ripplexiaoshan on August 06, 2014, 10:02:19 pm
Finally BTA is live +5% +5% +5%
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 06, 2014, 10:25:53 pm
blockchain_get_asset USD
shows  current_share_supply as 0, even though we know some have already been "issued" (sold short) into existence.
Shouldn't current_share_supply get updated?


Code: [Select]
>>> blockchain_get_asset USD
{
  "id": 22,
  "symbol": "USD",
  "name": "United States Dollar",
  "description": "1 United States dollar",
  "public_data": "",
  "issuer_account_id": -2,
  "precision": 10000,
  "registration_date": "20140717T000004",
  "last_update": "20140717T000004",
  "current_share_supply": 0,
  "maximum_share_supply": 1000000000000000,

Good catch!   I'll update that.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 06, 2014, 10:27:51 pm
A rounding error seems to cause an stray cover order to be created.
Code: [Select]
  | 0. USD / XTS                              0.00009 XTS                0.0000 USD   0.00012 XTS
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 06, 2014, 10:40:54 pm
Having troubles creating an asset

Code: [Select]
wallet_asset_create <symbol> <asset_name> <issuer_name> [description] [data] [maximum_share_supply] [precision] [is_market_issued]   Creates a new user issued asset

Code: [Select]
>>> wallet_asset_create GEM Gem bitcoiners "Gems are for fun" null 1000000000 1 false
36002 insufficient_fee: insufficient fee

    {"required_fees":{"amount":335664214,"asset_id":0},"alt_fees_paid":{"amount":0,"asset_id":0},"xts_fees":{"amount":335664000,"asset_id":0}}
    th_a  transaction_evaluation_state.cpp:81 validate_required_fee


Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: clout on August 06, 2014, 10:43:57 pm
My two observations after using the client is that my preallocation is smaller than it was in btsx and I can create shorts with no collateral.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: tonyk on August 06, 2014, 10:51:23 pm
Are win executable coming soon?

I downloaded the VS Express 2013 (took me about 1h, probably my crawling internet ) but

Following the instructions (i.e. BUILD_WIN32.md)  I ran into trouble on the second line:

“Clone the BitShares repository
  ```
cd D:\BitShares
git clone https://github.com/bitshares/bitshares_toolkit.git”


gives me

C:\BitShares>git clone https://github.com/bitshares/bitshares_toolkit.git
'git' is not recognized as an internal or external command,
operable program or batch file.


Should I install win git or something? [Edit] I guess yes.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 06, 2014, 11:06:11 pm
getting an error trying to submit bid..

Code: [Select]
>>> wallet_market_submit_bid default 20 XTS 1.1 USD
10 assert_exception: Assert Exception
amount > 0: amount: 0
    {"amount":0}
    th_a  transaction.cpp:86 withdraw

    {"account":"XTSAur3esR3GjYoLeSWpRg9bikr7XU7mXaU3","amount":0}
    th_a  transaction.cpp:88 withdraw

    {"amount_to_withdraw":{"amount":0,"asset_id":0},"from_account_address":"XTSMK21EWkq9zv6EMtgCcnbhCJTfMA8aV8T5","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"XTS93Hrgku6UiNAtHAhUdMHHqRxcutCp2Bot","amount":220000,"claim_input_data":""}}],"signatures":[]},"required_signatures":["XTS4vf7789zhFYhkU9zSsbCPBeTVv1a8Acvs","XTS8Uh9QYQyn3QDXzbGBTpxYZpJ9dqEYopp7"]}
    th_a  wallet.cpp:424 withdraw_to_transaction

    {"from_account_name":"default","real_quantity":20,"quantity_symbol":"XTS","quote_price":1.1000000000000001,"quote_symbol":"USD","sign":true}
    th_a  wallet.cpp:3823 submit_bid

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_bid

    {"command":"wallet_market_submit_bid"}
    th_a  cli.cpp:543 execute_command
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: sfinder on August 06, 2014, 11:31:52 pm
nice.  compiling ..............

BTW,how can i get test fund?
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 07, 2014, 12:13:23 am
nice.  compiling ..............

BTW,how can i get test fund?

Import PTS wallet?
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 07, 2014, 12:20:21 am
getting an error trying to submit bid..

Code: [Select]
>>> wallet_market_submit_bid default 20 XTS 1.1 USD
10 assert_exception: Assert Exception
amount > 0: amount: 0
    {"amount":0}
    th_a  transaction.cpp:86 withdraw

    {"account":"XTSAur3esR3GjYoLeSWpRg9bikr7XU7mXaU3","amount":0}
    th_a  transaction.cpp:88 withdraw

    {"amount_to_withdraw":{"amount":0,"asset_id":0},"from_account_address":"XTSMK21EWkq9zv6EMtgCcnbhCJTfMA8aV8T5","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"XTS93Hrgku6UiNAtHAhUdMHHqRxcutCp2Bot","amount":220000,"claim_input_data":""}}],"signatures":[]},"required_signatures":["XTS4vf7789zhFYhkU9zSsbCPBeTVv1a8Acvs","XTS8Uh9QYQyn3QDXzbGBTpxYZpJ9dqEYopp7"]}
    th_a  wallet.cpp:424 withdraw_to_transaction

    {"from_account_name":"default","real_quantity":20,"quantity_symbol":"XTS","quote_price":1.1000000000000001,"quote_symbol":"USD","sign":true}
    th_a  wallet.cpp:3823 submit_bid

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_bid

    {"command":"wallet_market_submit_bid"}
    th_a  cli.cpp:543 execute_command

Do you have any USD in your account?  Because that bid requires 22 USD to place.   
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 07, 2014, 12:22:25 am
My two observations after using the client is that my preallocation is smaller than it was in btsx and I can create shorts with no collateral.

How?
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Riverhead on August 07, 2014, 12:38:55 am
nice.  compiling ..............

BTW,how can i get test fund?
Post your public key here.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 07, 2014, 12:42:26 am
getting an error trying to submit bid..

Code: [Select]
>>> wallet_market_submit_bid default 20 XTS 1.1 USD
10 assert_exception: Assert Exception
amount > 0: amount: 0
    {"amount":0}
    th_a  transaction.cpp:86 withdraw

    {"account":"XTSAur3esR3GjYoLeSWpRg9bikr7XU7mXaU3","amount":0}
    th_a  transaction.cpp:88 withdraw

    {"amount_to_withdraw":{"amount":0,"asset_id":0},"from_account_address":"XTSMK21EWkq9zv6EMtgCcnbhCJTfMA8aV8T5","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"XTS93Hrgku6UiNAtHAhUdMHHqRxcutCp2Bot","amount":220000,"claim_input_data":""}}],"signatures":[]},"required_signatures":["XTS4vf7789zhFYhkU9zSsbCPBeTVv1a8Acvs","XTS8Uh9QYQyn3QDXzbGBTpxYZpJ9dqEYopp7"]}
    th_a  wallet.cpp:424 withdraw_to_transaction

    {"from_account_name":"default","real_quantity":20,"quantity_symbol":"XTS","quote_price":1.1000000000000001,"quote_symbol":"USD","sign":true}
    th_a  wallet.cpp:3823 submit_bid

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_bid

    {"command":"wallet_market_submit_bid"}
    th_a  cli.cpp:543 execute_command

Do you have any USD in your account?  Because that bid requires 22 USD to place.

Code: [Select]
>>> wallet_account_balance
ACCOUNT                         BALANCE                     
============================================================
   
default                         3,919.2297 USD             
                                30,689.84430 XTS   
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: alt on August 07, 2014, 01:59:48 am
can't execute marketing ...
Code: [Select]
test (unlocked) >>> blockchain_market_order_book USD XTS
                  BIDS (* Short Order)                                       |                                   ASKS                                 
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATE
RAL
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------
8.3300 USD                                                      MARKET PRICE | 0.667 USD / XTS                         450.00000 XTS              300.1500 USD
254.7211 USD              169.81413 XTS                        1.5 USD / XTS*|
5,015.8400 USD            7,520.00000 XTS                    0.667 USD / XTS |
1,707.1770 USD            2,563.32895 XTS                    0.666 USD / XTS*|
100.0000 USD              1,000.00000 XTS                      0.1 USD / XTS |
400.0000 USD              40,000.00000 XTS                    0.01 USD / XTS*|
400.0000 USD              40,000.00000 XTS                    0.01 USD / XTS*|
400.0000 USD              40,000.00000 XTS                    0.01 USD / XTS*|
5.0000 USD                50,000.00000 XTS                  0.0001 USD / XTS |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

.....
Last Error:  insufficient collateral (37004)



Details:
37004 insufficient_collateral: insufficient collateral

    {"_current_bid":{"type":"bid_order","market_index":{"order_price":{"ratio":"0.0667","quote_asset_id":22,"base_asset_id":0},"owner":"XTSAYkow2SAz8Lz7nfmtdFiWXrppBUNBouWw"},"state":{"balance":48372861},"collateral":null},"cover_ask":{"type":"cover_order","market_index":{"order_price":{"ratio":"0.1","quote_asset_id":22,"base_asset_id":0},"owner":"XTSE5MCvDZX5qSyNXgyR1RTZvajhbtiHPVYg"},"state":{"balance":47452788},"collateral":632703840},"cover_ask.get_highest_cover_price()":{"ratio":"0.075","quote_asset_id":22,"base_asset_id":0}}
    th_a  chain_database.cpp:588 get_next_ask

    {}
    th_a  chain_database.cpp:623 get_next_ask
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: alt on August 07, 2014, 02:01:34 am

getting an error trying to submit bid..

Code: [Select]
>>> wallet_market_submit_bid default 20 XTS 1.1 USD
10 assert_exception: Assert Exception
amount > 0: amount: 0
    {"amount":0}
    th_a  transaction.cpp:86 withdraw

    {"account":"XTSAur3esR3GjYoLeSWpRg9bikr7XU7mXaU3","amount":0}
    th_a  transaction.cpp:88 withdraw

    {"amount_to_withdraw":{"amount":0,"asset_id":0},"from_account_address":"XTSMK21EWkq9zv6EMtgCcnbhCJTfMA8aV8T5","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"withdraw_op_type","data":{"balance_id":"XTS93Hrgku6UiNAtHAhUdMHHqRxcutCp2Bot","amount":220000,"claim_input_data":""}}],"signatures":[]},"required_signatures":["XTS4vf7789zhFYhkU9zSsbCPBeTVv1a8Acvs","XTS8Uh9QYQyn3QDXzbGBTpxYZpJ9dqEYopp7"]}
    th_a  wallet.cpp:424 withdraw_to_transaction

    {"from_account_name":"default","real_quantity":20,"quantity_symbol":"XTS","quote_price":1.1000000000000001,"quote_symbol":"USD","sign":true}
    th_a  wallet.cpp:3823 submit_bid

    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_bid

    {"command":"wallet_market_submit_bid"}
    th_a  cli.cpp:543 execute_command

Do you have any USD in your account?  Because that bid requires 22 USD to place.

Code: [Select]
>>> wallet_account_balance
ACCOUNT                         BALANCE                     
============================================================
   
default                         3,919.2297 USD             
                                30,689.84430 XTS   
you are delegate, test with a normal account?
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: clout on August 07, 2014, 02:29:04 am
My two observations after using the client is that my preallocation is smaller than it was in btsx and I can create shorts with no collateral.

How?

My preallocation was reduced by more than 50% upon importing keys and I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: tonyk on August 07, 2014, 02:47:22 am
I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS

It is fine, imho, (other than todays feed was supposed to be 1USD/XTS)...

I am in my 6 hour of trying to compile this baby on win 7. I have given up almost 700 times up to now, and have come back to try one more thing... 3 more hours of trying, that's my goal.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: toast on August 07, 2014, 02:56:19 am
I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS

that's ok because the rest of the collateral is from the opposite side of the trade - you won't get another available 120k XTS when it executes but it will go straight into margin
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: clout on August 07, 2014, 03:09:02 am
I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS

It is fine, imho, (other than todays feed was supposed to be 1USD/XTS)...

I am in my 6 hour of trying to compile this baby on win 7. I have given up almost 700 times up to now, and have come back to try one more thing... 3 more hours of trying, that's my goal.

I was just going by the market price of btsx, didn't look at the feeds yet. Also its a lot easier to build on ubuntu. I downloaded the os on one of my pcs. It takes like 6 lines of code to build the client
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: clout on August 07, 2014, 03:09:33 am
I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS

that's ok because the rest of the collateral is from the opposite side of the trade - you won't get another available 120k XTS when it executes but it will go straight into margin

So its not 200% collateral?
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: tonyk on August 07, 2014, 03:26:01 am
I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS

that's ok because the rest of the collateral is from the opposite side of the trade - you won't get another available 120k XTS when it executes but it will go straight into margin

So its not 200% collateral?
It is ! it is 100 + 100 (received by selling bitUSD).
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: tonyk on August 07, 2014, 03:26:37 am
I am currently shorting 1,200 USD at 0.01 USD/XTS when I only had 120,000 XTS

It is fine, imho, (other than todays feed was supposed to be 1USD/XTS)...

I am in my 6 hour of trying to compile this baby on win 7. I have given up almost 700 times up to now, and have come back to try one more thing... 3 more hours of trying, that's my goal.


I was just going by the market price of btsx, didn't look at the feeds yet. Also its a lot easier to build on ubuntu. I downloaded the os on one of my pcs. It takes like 6 lines of code to build the client
I knoooow.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: tonyk on August 07, 2014, 03:27:18 am

I am in my 6 hour of trying to compile this baby on win 7. I have given up almost 700 times up to now, and have come back to try one more thing... 3 more hours of trying, that's my goal.

I have read numerous times the long explanation what should be done with the line:
set(Boost_USE_DEBUG_PYTHON ON) in the file D:\BitShares\bitshares_toolkit\libraries\fc\CMakeLists.txt
My understanding is that it should be commented out (i.e has # ,so to not be compiled)
The confusion comes because after the longest instructions in the guide I found that line is already commented out?
So, should it stay like it is:
#  set(Boost_USE_DEBUG_PYTHON ON)

Never mind. I give up:

 Then hit **Configure**.  It may ask you to specify a generator for this
 project; if it does, choose **Visual Studio 12** and select **Use default
 native compilers**.  Look through the output and fix any errors.  Then
 hit **Generate**.

I have no idea in hell how to fix those.

Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitbro on August 07, 2014, 04:05:41 am
How does real usd interact w the Btsx system? I thought it was only usd price feeds...
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: vikram on August 07, 2014, 04:12:54 am
This dry run uses a new genesis block using a snapshot of the AGS and PTS chains from July 18th which was the last day of AGS donations. We need to verify this genesis snapshot. Everyone please check your genesis balances and see if they are the expected amount.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bitcoinerS on August 07, 2014, 05:30:57 am
This dry run uses a new genesis block using a snapshot of the AGS and PTS chains from July 18th which was the last day of AGS donations. We need to verify this genesis snapshot. Everyone please check your genesis balances and see if they are the expected amount.

Mine is about twice what was expected and initialized as part of Bitshares X.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: ElMato on August 07, 2014, 06:25:47 am
I cant register my account even if it has 300K BTSX.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "a6af01440bb0a5ee048fdc4389f064759ab9339d",
  "bitshares_toolkit_revision_age": "50 minutes ago",
  "fc_revision": "978de7885a8065bc84b07bfb65b642204e894f55",
  "fc_revision_age": "4 days ago",
  "compile_date": "compiled on Aug  7 2014 at 02:15:43"
}
>> wallet_account_register matias matias

10 assert_exception: Assert Exception
amount > 0: amount: 0
    {"amount":0}
    bitshares  transaction.cpp:86 withdraw

    {"account":"XTSPEWEr9iV9QnYQ67Tqi2Aa5U26Jdo6sofS","amount":0}
    bitshares  transaction.cpp:88 withdraw

    {"amount_to_withdraw":{"amount":0,"asset_id":0},"from_account_address":"XTSNGh6PkvBKDxYrmYRsFU9ERKZxVpDXD1Nz","trx":{"expiration":"19700101T000000","delegate_slate_id":null,"operations":[{"type":"register_account_op_type","data":{"name":"matias","public_data":null,"owner_key":"XTS5sesA3xkU4e4r3XMGsydhk6tBAqrTYNBL5yKL9L2ofp3jADp6B","active_key":"XTS5sesA3xkU4e4r3XMGsydhk6tBAqrTYNBL5yKL9L2ofp3jADp6B","delegate_pay_rate":255,"meta_data":null}}],"signatures":[]},"required_signatures":[]}
    bitshares  wallet.cpp:424 withdraw_to_transaction

    {"account_to_register":"matias","public_data":null,"pay_with_account_name":"matias","delegate_pay_rate":255}
    bitshares  wallet.cpp:3310 register_account

    {"account_name":"matias","data":null}
    bitshares  client.cpp:2696 wallet_account_register

    {}
    bitshares  common_api_client.cpp:1075 wallet_account_register

    {"command":"wallet_account_register"}
    bitshares  cli.cpp:543 execute_command
>> wallet_account_balance

ACCOUNT                         BALANCE                     
============================================================
matias                          316,926.52958 XTS


Reading other users posts seems that

void transaction::withdraw( const balance_id_type& account, share_type amount )
is being called with amount=0 in some cases

wallet_market_submit_bid
wallet_account_register



Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: ElMato on August 07, 2014, 06:30:51 am
This dry run uses a new genesis block using a snapshot of the AGS and PTS chains from July 18th which was the last day of AGS donations. We need to verify this genesis snapshot. Everyone please check your genesis balances and see if they are the expected amount.

My balance is about 50% of what i claim in BitsharesX
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: emski on August 07, 2014, 06:39:05 am
Too bad all the good stuff happens when I'm in vacation. I wish I was at home to take a look on this. I'll test it when I have reliable internet. Btsx was released when I was at the seaside with no internet and on my birth day.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: testz on August 07, 2014, 10:30:32 am
This dry run uses a new genesis block using a snapshot of the AGS and PTS chains from July 18th which was the last day of AGS donations. We need to verify this genesis snapshot. Everyone please check your genesis balances and see if they are the expected amount.

AGS looks fine, how you scale PTS balances?
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Webber on August 07, 2014, 01:47:15 pm
Can someone explain the difference between bids\asks order and cover\shorts order ? I'm confused it.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Riverhead on August 07, 2014, 02:01:50 pm
Getting Invalid Market when trying to place an order that matches an Ask


Code: [Select]
default (unlocked) >>> wallet_market_submit_bid riverheadtest 20 USD 1.1 XTS
37001 invalid_market: invalid market


    {"quote_symbol":"XTS","quantity_symbol":"USD"}
    th_a  wallet.cpp:3746 submit_bid


    {"from_account_name":"riverheadtest","real_quantity":20,"quantity_symbol":"USD","quote_price":1.1000000000000001,"quote_symbol":"XTS","sign":true}
    th_a  wallet.cpp:3822 submit_bid


    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_bid


    {"command":"wallet_market_submit_bid"}
    th_a  cli.cpp:543 execute_command
default (unlocked) >>> blockchain_market_order_book


Code: [Select]

 1.1 USD / XTS                            20.00000 XTS               22.0000 USD


Code: [Select]

ACCOUNT                         BALANCE                     
============================================================
riverheadtest                   302,949.04312 XTS     
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: clout on August 07, 2014, 02:14:37 pm
Getting Invalid Market when trying to place an order that matches an Ask


Code: [Select]
default (unlocked) >>> wallet_market_submit_bid riverheadtest 20 USD 1.1 XTS
37001 invalid_market: invalid market


    {"quote_symbol":"XTS","quantity_symbol":"USD"}
    th_a  wallet.cpp:3746 submit_bid


    {"from_account_name":"riverheadtest","real_quantity":20,"quantity_symbol":"USD","quote_price":1.1000000000000001,"quote_symbol":"XTS","sign":true}
    th_a  wallet.cpp:3822 submit_bid


    {}
    th_a  common_api_client.cpp:1347 wallet_market_submit_bid


    {"command":"wallet_market_submit_bid"}
    th_a  cli.cpp:543 execute_command
default (unlocked) >>> blockchain_market_order_book


Code: [Select]

 1.1 USD / XTS                            20.00000 XTS               22.0000 USD


Code: [Select]

ACCOUNT                         BALANCE                     
============================================================
riverheadtest                   302,949.04312 XTS     

other way around
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Riverhead on August 07, 2014, 02:37:27 pm
This probably is more to do with my lack of understanding of how the market works that a bug.  I'm trying to buy USD with XTS.  I either get Invalid market or, if I switch it around, insufficient funds (probably because I don't have any USD yet).
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 07, 2014, 02:53:52 pm
There is a bug in the market, I put the restriction on the wrong side... I am crafting a more detailed post with what I have learned.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: alt on August 07, 2014, 03:45:28 pm
There is a bug in the market, I put the restriction on the wrong side... I am crafting a more detailed post with what I have learned.
margin call never execute....
when the bid price is higher then 1.0, it should not execute margin call
when the price lower then 1.0, still not execute....

Code: [Select]
test (unlocked) >>> blockchain_market_order_book USD XTS                                                                                                       [37/1915]                  BIDS (* Short Order)                                       |                                   ASKS                                 

TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
990.0000 USD              1,000.00000 XTS                     0.99 USD / XTS | 0.66 USD / XTS                            1.00000 XTS                0.6600 USD
750.0000 USD              1,000.00000 XTS                     0.75 USD / XTS | 1. USD / XTS                              0.69712 XTS                0.6971 USD
5,015.8400 USD            7,520.00000 XTS                    0.667 USD / XTS | 1.1 USD / XTS                            20.00000 XTS               22.0000 USD
1,707.1770 USD            2,563.32895 XTS                    0.666 USD / XTS*| 2. USD / XTS                             68.05085 XTS              136.1017 USD
100.0000 USD              1,000.00000 XTS                      0.1 USD / XTS |
5.0000 USD                50,000.00000 XTS                  0.0001 USD / XTS |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             |                                   MARGIN                                 
                                                                             | CALL PRICE                                   QUANTITY                     TOTAL   COLLATE
RAL
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------
                                                                             | 1. USD / XTS                          4,745.27880 XTS            4,745.2788 USD   6,327.0
3840 XTS
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: liondani on August 07, 2014, 04:45:24 pm
Too bad all the good stuff happens when I'm in vacation. I wish I was at home to take a look on this. I'll test it when I have reliable internet. Btsx was released when I was at the seaside with no internet and on my birth day.

I am on vacations the next days too  :)
So I can understand you  ;)


PS BTW nice birthday gift! :D
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: clout on August 08, 2014, 02:58:32 am
Are other ppl having trouble publishing feeds. I get the following error:

Code: [Select]
default (unlocked) >>> wallet_publish_price_feed delegate1.clout 1 USD
10 assert_exception: Assert Exception
eval_state.check_signature( eval_state._current_state->get_account_record( feed.delegate_id )->active_key() ):
    {}
    th_a  feed_operations.cpp:9 evaluate

    {"op":{"type":"update_feed_op_type","data":{"feed":{"feed_id":22,"delegate_id":302},"value":{"ratio":"0.1","quote_asset_id":22,"base_asset_id":0}}}}
    th_a  operation_factory.hpp:52 evaluate

    {"trx":{"expiration":"20140808T045517","delegate_slate_id":null,"operations":[{"type":"update_feed_op_type","data":{"feed":{"feed_id":22,"delegate_id":302},"value":{"ratio":"0.1","quote_asset_id":22,"base_asset_id":0}}},{"type":"withdraw_op_type","data":{"balance_id":"XTS7DbUr7JgQmnCNBHzqeuSgUCqSb5rgGWBQ","amount":10000,"claim_input_data":""}}],"signatures":["2089f2192f02135e5ec530f09fad47895e547ab206df88aca56ddd420f57d9ab58222a9b25fd378aa8a6ca529c396014c50057220a0ae10e96e68d5ad7557f5bff"]}}
    th_a  transaction_evaluation_state.cpp:189 evaluate

    {"trx":{"expiration":"20140808T045517","delegate_slate_id":null,"operations":[{"type":"update_feed_op_type","data":{"feed":{"feed_id":22,"delegate_id":302},"value":{"ratio":"0.1","quote_asset_id":22,"base_asset_id":0}}},{"type":"withdraw_op_type","data":{"balance_id":"XTS7DbUr7JgQmnCNBHzqeuSgUCqSb5rgGWBQ","amount":10000,"claim_input_data":""}}],"signatures":["2089f2192f02135e5ec530f09fad47895e547ab206df88aca56ddd420f57d9ab58222a9b25fd378aa8a6ca529c396014c50057220a0ae10e96e68d5ad7557f5bff"]}}
    th_a  chain_database.cpp:1759 evaluate_transaction

    {"trx":{"expiration":"20140808T045517","delegate_slate_id":null,"operations":[{"type":"update_feed_op_type","data":{"feed":{"feed_id":22,"delegate_id":302},"value":{"ratio":"0.1","quote_asset_id":22,"base_asset_id":0}}},{"type":"withdraw_op_type","data":{"balance_id":"XTS7DbUr7JgQmnCNBHzqeuSgUCqSb5rgGWBQ","amount":10000,"claim_input_data":""}}],"signatures":["2089f2192f02135e5ec530f09fad47895e547ab206df88aca56ddd420f57d9ab58222a9b25fd378aa8a6ca529c396014c50057220a0ae10e96e68d5ad7557f5bff"]}}
    th_a  chain_database.cpp:2166 store_pending_transaction

    {}
    th_a  wallet.cpp:2228 sign_and_cache_transaction

    {"account_to_publish_under":"delegate1.clout","amount_per_xts":1,"amount_asset_symbol":"USD","sign":true}
    th_a  wallet.cpp:2633 publish_price

    {}
    th_a  common_api_client.cpp:1619 wallet_publish_price_feed

    {"command":"wallet_publish_price_feed"}
    th_a  cli.cpp:543 execute_command
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: maqifrnswa on August 08, 2014, 04:00:09 am
can someone share a node IP? mine is stuck with one connection that is 32 hours out of date
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Harvey on August 08, 2014, 09:13:35 am
I also have only one connection for a long time.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: Riverhead on August 08, 2014, 10:25:04 am
I think Bytemaster is fixing a couple bugs so there probably aren't many peers running.
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: spartako on August 08, 2014, 01:58:25 pm
I compiled the code without problem, but when I started the client I have only a connection and after few seconds I obtain this message:
Code: [Select]
I am disconnecting peer 107.170.30.182:1776 for reason: You offered us a block that we reject as invalid

And I stuck at block number 251 with 0 connections:
Code: [Select]
(wallet closed) >>> getinfo
{
  "blockchain_head_block_num": 251,
  "blockchain_head_block_age": "42 hours old",
  "blockchain_head_block_timestamp": "2014-08-06T19:34:30",
  "blockchain_average_delegate_participation": "0.66 %",
  "blockchain_confirmation_requirement": 1,
  "blockchain_accumulated_fees": "7.99032 XTS",
  "blockchain_delegate_pay_rate": "0.00006 XTS",
  "blockchain_share_supply": "1,999,999,999.80949 XTS",
  "blockchain_blocks_left_in_round": 52,
  "blockchain_next_round_time": "42 hours ago",
  "blockchain_next_round_timestamp": "2014-08-06T19:43:10",
  "blockchain_random_seed": "f205e0933b9053f74027ff78cb473d5f1ff02d2f",
  "client_data_dir": "/home/fabiux/.BitSharesXTS",
  "network_num_connections": 0,
  "network_num_connections_max": 200,
  "ntp_time": "2014-08-08T13:57:31",
  "ntp_time_error": -0.0095650000000000006,
  "wallet_open": false,
  "wallet_unlocked": null,
  "wallet_unlocked_until": null,
  "wallet_unlocked_until_timestamp": null,
  "wallet_scan_progress": null,
  "wallet_block_production_enabled": null,
  "wallet_next_block_production_time": null,
  "wallet_next_block_production_timestamp": null
}
Title: Re: Dry Run 11: The Wolf of Coin Market Cap
Post by: bytemaster on August 08, 2014, 03:32:16 pm
Yes... this dry run is now over... recent updates in the market code have hard-forked the test-net.