I think I have it working now... here are the steps I took:
1) Build bitsharesx repo by following these instructions:
http://wiki.bitshares.org/index.php/BuildInstructionsBitSharesXExcept for the "Configuration and Compilation (Core)" step; here i had to change the CMAKE_PREFIX_PATH part of the command:
# OSX users only!
export CMAKE_PREFIX_PATH=/usr/local/ssl
cmake -DCMAKE_BUILD_TYPE=Release .
make
2) Copy market_maker program from develop branch of bitshares_toolkit repo over to "programs" in bitsharesx repo. You have to edit "main.py" and replace "local-market-maker" with your local account.
3) Edit config.json in data directory to specify an rpc_user / rpc_password, and set "enable" to true.
4) Run bitshares_client in bitsharesx repo as mentioned here:
https://github.com/BitShares/bitshares_toolkit/wiki/DPOS-initial-delegate-setupFor this step I passed the following flags to run: --rpcuser=user --rpcpassword=***** --server
5) Now, I opened my wallet on the CLI by running
wallet_open <NAME>
5) Then I could go into "market_maker" and run it as described in bytemasters original post:
python main.py <RPC_USER> <RPC_PASSWORD> <HTTP_RPC_PORT> <LIVE?>
After I got output like:
Initializing with URL: http://<USER>:<PASSWORD>@localhost:<PORT>/rpc
Init price: 0.038721
Init price: 25.825624
{u'id': 0, u'result': [[u'<LOCAL_ACCOUNT>', [[0, 10000000000]]]]}
[u'<LOCAL_ACCOUNT>', [[0, 10000000000]]]
[[0, 10000000000]]
[0, 10000000000]
0.0
{u'id': 0, u'result': [[u'<LOCAL_ACCOUNT>', [[0, 10000000000]]]]}
[u'<LOCAL_ACCOUNT>', [[0, 10000000000]]]
[[0, 10000000000]]
[0, 10000000000]
100000.0
0.0
Price moved - old: 0.038721 new: 0.038721
{
u'id':0,
u'result':{
u'blockchain_head_block_timestamp':u'20140912T170240',
u'blockchain_average_delegate_participation':85.59322033898304,
u'wallet_unlocked':False,
u'wallet_next_block_production_time':None,
u'blockchain_share_supply':199988581761744,
u'network_num_connections':0,
u'blockchain_delegate_pay_rate':155505,
u'blockchain_next_round_timestamp':u'20140912T171950',
u'ntp_time_error':-4.27297,
u'blockchain_random_seed':u'ff8666c7c8c734f737d1005e5862b050aaf0f62a',
u'blockchain_next_round_time':854,
u'wallet_block_production_enabled':None,
u'network_num_connections_max':200,
u'wallet_last_scanned_block_timestamp':None,
u'wallet_next_block_production_timestamp':None,
u'wallet_unlocked_until_timestamp':None,
u'wallet_open':True,
u'blockchain_accumulated_fees':18809928977,
u'blockchain_head_block_num':467948,
u'blockchain_confirmation_requirement':1,
u'client_data_dir':u'/Users/rob/Library/Application Support/BitShares X',
u'blockchain_head_block_age':176,
u'blockchain_blocks_left_in_round':86,
u'wallet_unlocked_until':None,
u'ntp_time':u'20140912T170536',
u'wallet_scan_progress':None,
u'client_version':u'0.4.14'
}
}
I haven't seen any additional output at all yet; haven't read the python completely either to see if that is expected. Maybe I also need to run a command to "unlock" my wallet first?