Author Topic: Dry Run 11: The Wolf of Coin Market Cap  (Read 11855 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

Yes... this dry run is now over... recent updates in the market code have hard-forked the test-net.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
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
}
wallet_account_set_approval spartako

Offline Riverhead

I think Bytemaster is fixing a couple bugs so there probably aren't many peers running.

Offline Harvey

  • Sr. Member
  • ****
  • Posts: 244
    • View Profile
I also have only one connection for a long time.
BTS       Witness:harvey-xts Seed:128.199.143.47:2015 API:wss://128.199.143.47:2016 
MUSE   Witness:harvey-xts Seed:128.199.143.47:2017 API:ws://128.199.143.47:2018

Offline maqifrnswa

  • Hero Member
  • *****
  • Posts: 661
    • View Profile
can someone share a node IP? mine is stuck with one connection that is 32 hours out of date
maintains an Ubuntu PPA: https://launchpad.net/~showard314/+archive/ubuntu/bitshares [15% delegate] wallet_account_set_approval maqifrnswa true [50% delegate] wallet_account_set_approval delegate1.maqifrnswa true

clout

  • Guest
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

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
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

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
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

Offline bytemaster

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.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline Riverhead

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).

clout

  • Guest
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

Offline Riverhead

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     

Offline Webber

  • Sr. Member
  • ****
  • Posts: 223
    • View Profile
Can someone explain the difference between bids\asks order and cover\shorts order ? I'm confused it.
Bitshares2.0 witness node:delegate.webber
Bitshares2.0 API:ws://114.215.116.57:8090

Offline testz

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?

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
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.

Offline ElMato

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
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

Offline ElMato

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
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




Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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.
>>> approve bitcoiners

Offline vikram

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.

bitbro

  • Guest
How does real usd interact w the Btsx system? I thought it was only usd price feeds...

Offline tonyk

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

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.

« Last Edit: August 07, 2014, 03:32:12 am by tonyk »
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
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.
« Last Edit: August 07, 2014, 12:18:48 pm by tonyk »
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
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).
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

clout

  • Guest
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?

clout

  • Guest
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

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
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
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
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.
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

clout

  • Guest
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

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi

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?

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
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

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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   
>>> approve bitcoiners

Offline Riverhead

nice.  compiling ..............

BTW,how can i get test fund?
Post your public key here.

Offline bytemaster

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?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

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.   
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

nice.  compiling ..............

BTW,how can i get test fund?

Import PTS wallet?
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
nice.  compiling ..............

BTW,how can i get test fund?
« Last Edit: August 07, 2014, 12:11:55 am by sfinder »
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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
>>> approve bitcoiners

Offline tonyk

  • Hero Member
  • *****
  • Posts: 3308
    • View Profile
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.
« Last Edit: August 06, 2014, 11:34:22 pm by tonyk »
Lack of arbitrage is the problem, isn't it. And this 'should' solves it.

clout

  • Guest
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.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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


>>> approve bitcoiners

Offline bytemaster

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
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline bytemaster

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.
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline ripplexiaoshan

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 2300
    • View Profile
  • BitShares: jademont
BTS committee member:jademont

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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,
>>> approve bitcoiners

Offline Riverhead

Anyone help a poor tester out?  :-\


XTS7tdYLcPHsp1uUxEdEQmBQ6grLHRqhFXvKmbEfQ8bxuoStAiaso

Sent.


Thank you :)

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Anyone help a poor tester out?  :-\


XTS7tdYLcPHsp1uUxEdEQmBQ6grLHRqhFXvKmbEfQ8bxuoStAiaso

Sent.
>>> approve bitcoiners

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
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
>>> approve bitcoiners

Offline Riverhead

Anyone help a poor tester out?  :-\


XTS7tdYLcPHsp1uUxEdEQmBQ6grLHRqhFXvKmbEfQ8bxuoStAiaso

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
ok .. so this is just the dryrun .. NOT OFFICIAL blockchain!

good to know .. can setup a node tomorrow

Offline Riverhead

« Last Edit: August 06, 2014, 08:28:30 pm by Riverhead »

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
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.
« Last Edit: August 07, 2014, 04:13:54 am by vikram »
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.