Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Dry Run 9: [Block]Chain Hang Low (featuring guest performer: ~~BitUSD~~)  (Read 4052 times)

Offline toast


If you last pulled before ~8pm forum time then you need to wipe your chain directory and rebuild. We reset to smooth the delegate registration fee out a bit.

Theme song:  https://www.youtube.com/watch?v=4SBN_ikibtg

This is the first dry run featuring market functionality. We did not test it very extensively which means you should expect things to break.

Please use this thread only for helping us debug, particularly market_* commands

Mac Wallet: http://bitshares.org/BitSharesXT-0.1.2.dmg

Known Issues:
  Wallet Account Transaction Ledger displays ERROR for market transactions, that is a display bug.
  The volume metric on the price history is hardcoded to 1... coming soon  :)
  Wallet Account Transaction Ledger does not currently display an entry showing your collateral returned to your account after covering a short position.  (A display issue)
  When listing the order book, "Margin Calls" show up in the ask table even though they shouldn't.  This is a display issue as well. 


Market Matching Algorithm:

Code: [Select]
 
while( highest_bid >= lowest_ask )
     trade_quantity        = min( highest_bid.quote_quantity, highest_ask.quote_quantity )
     usd_paid_by_bid       = trade_quantity
     usd_received_by_ask   = trade_quantity
     xts_paid_by_ask       = trade_quantity * ask_price
     xts_received_by_bid   = trade_quantity * bid_price
     fees = xts_paid_by_ask - xts_received_by_bid
     ask.balance -= xts_paid_by_ask
     bid.balance -= usd_paid_by_bid

New Delegate Pay & Registration Fee Calculations
Code: [Select]
foreach block
    total_accumulated_fees += all_transactions_fees
    delegate_pay = total_accumulated_fees / (blocks_per_day*14)
    delegate_registration = delegate_pay * blocks_per_hour * 2 / 101
    total_accumulated_fees -= (delegate_pay)

Effectively if there are no new fees or transactions delegate pay will fall by about 1% per block.

Wallet Import Enhancements

 Bitcoin wallet import has been fixed, and should work with Bitcoin Core, BitShares PTS, Armory, Electrum, and Multibit formats. Please test.

New Commands

Code: [Select]
default (unlocked) >>> blockchain_market_order_book USD XTS
                  BIDS (* Short Order)                                       |                                   ASKS
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9.8800 USD                98.80000 XTS                         0.1 USD / XTS | 0.01333201790756645 USD / XTS             3.75037 XTS                0.0500 USD
15.0000 USD               1,500.00000 XTS                     0.01 USD / XTS*| 1.23 USD / XTS                        9,959.39033 XTS           12,250.0501 USD
                                                                             | 1.3609963334667113 USD / XTS             29.39016 XTS               39.9999 USD
                                                                             | 1.62007525615913535 USD / XTS             6.14169 XTS                9.9500 USD
                                                                             | 6. USD / XTS                             10.00000 XTS               60.0000 USD
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             |                                   MARGIN
                                                                             | CALL PRICE                                   QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                             | 1.62007525615913535 USD / XTS             6.14169 XTS                9.9500 USD   8.18893 XTS
                                                                             | 1.3609963334667113 USD / XTS             29.39016 XTS               39.9999 USD   39.18689 XTS
                                                                             | 0.01333201790756645 USD / XTS             3.75037 XTS                0.0500 USD   5.00050 XTS

Code: [Select]
default (unlocked) >>> wallet_account_transaction_history
RECEIVED            BLOCK     FROM                TO                  AMOUNT                FEE                 MEMO                                    ID
----------------------------------------------------------------------------------------------------------------------------------------------------------------
2014-07-15T21:46:25 0         GENESIS             founders            16,666,667.16466 XTS  0.00000 XTS         claim genesis balance                   N/A
2014-07-15T21:47:32 392       founders            ORDER-3eyFiYt5      10,000.00000 XTS      0.10000 XTS         sell 10000 XTS @ 1.23 USD               88fef923
2014-07-15T21:47:50 ERROR     ORDER-3eyFiYt5      UNKNOWN             8.08943 XTS           7.98993 XTS         pay ask @ 1.23 USD / XTS                00000000
2014-07-15T21:47:50 ERROR     ORDER-3eyFiYt5      UNKNOWN             32.52024 XTS          25.85359 XTS        pay ask @ 1.23 USD / XTS                00000000
2014-07-15T21:47:50 ERROR     ORDER-3eyFiYt5      founders            9.9500 USD            7.98993 XTS         fill ask @ 1.23 USD / XTS               00000000
2014-07-15T21:47:50 ERROR     ORDER-3eyFiYt5      founders            39.9999 USD           25.85359 XTS        fill ask @ 1.23 USD / XTS               00000000
2014-07-15T21:52:23 421       founders            ORDER-2VqCgSAF      10.0000 USD           0.10000 XTS         buy 100 XTS @ 0.1 USD                   ee1be376
2014-07-15T21:52:40 ERROR     ORDER-2VqCgSAF      UNKNOWN             0.1200 USD            4.80000 XTS         pay bid @ 0.1 USD / XTS                 00000000
2014-07-15T21:52:40 ERROR     ORDER-2VqCgSAF      founders            1.20000 XTS           4.80000 XTS         fill bid @ 0.1 USD / XTS                00000000
2014-07-15T21:52:40 ERROR     ORDER-2VqCgSAF      founders            1.20000 XTS           4.80000 XTS         fill bid @ 0.1 USD / XTS                00000000

Code: [Select]
TYPE        QUANTITY            PRICE                         BALANCE             COST                COLLATERAL          ID
--------------------------------------------------------------------------------------------------------------------------------
bid_order   95.12000 XTS        0.1 USD / XTS                 9.5120 USD          9.5120 USD          N/A                 XTS2VqCgSAFzaoGokbmaeT1SJTVDrCoNm18K
ask_order   9,959.39033 XTS     1.23 USD / XTS                9,959.39033 XTS     12,250.0501 USD     N/A                 XTS3eyFiYt5K1LFpau9iJyVMnpTjDr1kxQuu
cover_order 29.39016 XTS        1.3609963334667113 USD / XTS  39.9999 USD         39.9998 USD         39.18689 XTS        XTS3eyFiYt5K1LFpau9iJyVMnpTjDr1kxQuu
cover_order 6.14169 XTS         1.62007525615913535 USD / XTS 9.9500 USD          9.9499 USD          8.18893 XTS         XTS3eyFiYt5K1LFpau9iJyVMnpTjDr1kxQuu

Code: [Select]
bid founders 100 XTS .1 USD    // buy 100 XTS @ 0.1 USD / XTS
ask founders 10000 XTS 1.23 USD   // sell 10,000 XTS @ 1.23 USD / XTS 
short founders 20  1.12 USD      // short 20 USD at 1.12 USD / XTS

ask / wallet_market_submit_ask <from_account_name> <quantity> <quantity_symbol> <quote_price> <quote_symbol>
bid /  wallet_market_submit_bid <from_account_name> <quantity> <quantity_symbol> <quote_price> <quote_symbol>
short / wallet_market_submit_short <from_account_name> <quantity> <quote_price> <quote_symbol>
« Last Edit: July 15, 2014, 10:41:35 PM by bytemaster »
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 toast

BM already found a hard fork.

"30 minute rule" if you find a hard fork within 30 minutes it's still the same dry run.


Hang tight everyone
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 toast

LOL false alarm you're actually good to go

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 heyD

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
 +5%
building again.

Offline vikram

Can not build:

Code: [Select]
[ 93%] Building CXX object programs/client/CMakeFiles/bitshares_client.dir/main.cpp.o
Linking CXX executable bitshares_client
../../libraries/bitcoin/libbitcoin.a(armory.cpp.o): In function `bts::bitcoin::import_armory_wallet(fc::path const&, std::string const&)':
/home/jakub/projekty/bitshares_toolkit/libraries/bitcoin/armory.cpp:73: undefined reference to `fc::romix::romix(unsigned int, unsigned int, std::string)'
/home/jakub/projekty/bitshares_toolkit/libraries/bitcoin/armory.cpp:74: undefined reference to `fc::romix::deriveKey(std::string const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [programs/client/bitshares_client] Error 1
make[1]: *** [programs/client/CMakeFiles/bitshares_client.dir/all] Error 2
make: *** [all] Error 2

Did you update fc via 'git submodule update'?

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
got something to work on .............
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline dxtr

  • Full Member
  • ***
  • Posts: 71
  • United We Stand, Dispersed We Are.
    • View Profile
Can not build:

Code: [Select]
[ 93%] Building CXX object programs/client/CMakeFiles/bitshares_client.dir/main.cpp.o
Linking CXX executable bitshares_client
../../libraries/bitcoin/libbitcoin.a(armory.cpp.o): In function `bts::bitcoin::import_armory_wallet(fc::path const&, std::string const&)':
/home/jakub/projekty/bitshares_toolkit/libraries/bitcoin/armory.cpp:73: undefined reference to `fc::romix::romix(unsigned int, unsigned int, std::string)'
/home/jakub/projekty/bitshares_toolkit/libraries/bitcoin/armory.cpp:74: undefined reference to `fc::romix::deriveKey(std::string const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [programs/client/bitshares_client] Error 1
make[1]: *** [programs/client/CMakeFiles/bitshares_client.dir/all] Error 2
make: *** [all] Error 2

Did you update fc via 'git submodule update'?

Yes, thx, just removed my post.
Help me out:     wallet_approve_delegate mr.scroodge true

Offline Simeon II

  • Sr. Member
  • ****
  • Posts: 356
    • View Profile

Regarding the win binaries - It is no problem for me waiting couple of hours or even a day or two. Just put the info in the OP or in separate thread when they are available.

Thanks.


sumantso

  • Guest
Oh, last one was over. Waiting for Win binaries then, my machine gets a break :)

Offline dxtr

  • Full Member
  • ***
  • Posts: 71
  • United We Stand, Dispersed We Are.
    • View Profile
Guess in this run I won't register a delegate:

Required "456,475.97790 XTS"

 :'(
Help me out:     wallet_approve_delegate mr.scroodge true

Offline liondani

Guess in this run I won't register a delegate:

Required "456,475.97790 XTS"

 :'(

lol
have same concerns   :)
  https://bitshares.OPENLEDGER.info/?r=GREECE  | You are in Control | BUY | SELL | SHORT | SWAP | LOAN | TRADE |  

Offline dxtr

  • Full Member
  • ***
  • Posts: 71
  • United We Stand, Dispersed We Are.
    • View Profile
Order matching seems not to be implemented:

Code: [Select]
dxtr-wallet (unlocked) >>> blockchain_market_order_book
quote_symbol: USD
base_symbol: XTS
                                  BIDS                                       |                                   ASKS                                 
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1.0000 USD                0.10000 XTS                          10. USD / XTS*| 6.31578947368421052 USD / XTS            14.25000 XTS               90.0000 USD   19.00000 XTS
10.0000 USD               1.00000 XTS                          10. USD / XTS*| 11. USD / XTS                            10.00000 XTS              110.0000 USD
                                                                             | 120. USD / XTS                           10.00000 XTS            1,200.0000 USD

* Short Order

highest bid (10. USD / XTS* ) >= lowest ask ( 6.31578947368421052 USD / XTS ) ...
« Last Edit: July 15, 2014, 05:58:56 PM by dxtr »
Help me out:     wallet_approve_delegate mr.scroodge true

Offline heyD

  • Hero Member
  • *****
  • Posts: 717
  • BitShares everything
    • View Profile
Guess in this run I won't register a delegate:

Required "456,475.97790 XTS"

 :'(

lol
have same concerns   :)

Dudes, you gotta build and register as fast as you can.

@toast,
Any manual or guide about how to test the market features ?

Offline bytemaster

Order matching seems not to be implemented:

Code: [Select]
dxtr-wallet (unlocked) >>> blockchain_market_order_book
quote_symbol: USD
base_symbol: XTS
                                  BIDS                                       |                                   ASKS                                 
TOTAL                     QUANTITY                                     PRICE | PRICE                                        QUANTITY                     TOTAL   COLLATERAL
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1.0000 USD                0.10000 XTS                          10. USD / XTS*| 6.31578947368421052 USD / XTS            14.25000 XTS               90.0000 USD   19.00000 XTS
10.0000 USD               1.00000 XTS                          10. USD / XTS*| 11. USD / XTS                            10.00000 XTS              110.0000 USD
                                                                             | 120. USD / XTS                           10.00000 XTS            1,200.0000 USD

* Short Order

highest bid (10. USD / XTS* ) >= lowest ask ( 6.31578947368421052 USD / XTS ) ...

It is implemented... the lowest ask is a collateral / cover position that will only get executed when the highest bid is less than 6.3.... the real lowest ask is 11.

From OP:
Quote
  When listing the order book, "Margin Calls" show up in the ask table even though they shouldn't.  This is a display issue as well. 
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 emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
20010 insufficient_funds: insufficient funds
"required":"936,261.18318 XTS"

 

Google+