Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - robrigo

Pages: 1 ... 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37
421
General Discussion / Re: BitUSD Market Maker Live
« on: September 12, 2014, 05:24:08 pm »
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/BuildInstructionsBitSharesX

Except for the "Configuration and Compilation (Core)" step; here i had to change the CMAKE_PREFIX_PATH part of the command:

Code: [Select]
# 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-setup

For this step I passed the following flags to run: --rpcuser=user --rpcpassword=***** --server

5) Now, I opened my wallet on the CLI by running

Code: [Select]
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:

Code: [Select]
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?

422
General Discussion / Re: BitUSD Market Maker Live
« on: September 12, 2014, 03:10:11 pm »

2) I modified main.py in the market_maker script to replace the account_name with my market maker. So that specifies the account to pull funds from. What is USER / PASS corresponding to then? Perhaps a registered account in my wallet as well as the wallet password?

The rpc connection specified in the client's config.json

Doh... that makes perfect sense. Thanks for the info!

423
General Discussion / Re: BitUSD Market Maker Live
« on: September 12, 2014, 03:04:55 pm »
I will be making it significantly easier to user today

robrigo: make an account, fund it, and replace "arbiteur" with your bot's account name

Great, looking forward to your updates. So to clarify:

1) So I should follow this additional step when making bitshares_toolkit to get the release version?

Code: [Select]
# OSX users only!
export CMAKE_PREFIX_PATH=~/Qt/5.3/

cmake -DCMAKE_BUILD_TYPE=Release .
make

2) I modified main.py in the market_maker script to replace the account_name with my market maker. So that specifies the account to pull funds from. What is USER / PASS corresponding to then? Perhaps a registered account in my wallet as well as the wallet password?

Thanks for the quick answers guys!

424
General Discussion / Re: BitUSD Market Maker Live
« on: September 12, 2014, 02:35:35 pm »
I haven't run the CLI version yet but I assume this requires the CLI version? Just wondering I tried to get it to work but keep getting connection refused:

Code: [Select]
Initializing with URL:  http://robrigo-market-maker:************@localhost:8000/rpc
Init price:  0.039835
Init price:  25.103530
Traceback (most recent call last):
  File "main.py", line 107, in <module>
    init_usd_balance = client.get_balance("USD")
  File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 57, in get_balance
    response = self.request("wallet_account_balance", [self.account_name, asset])
  File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 29, in request
    response = requests.post(self.url, data=json.dumps(payload), headers=headers)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 92, in post
    return request('post', url, data=data, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 48, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 451, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 557, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 407, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(61, 'Connection refused'))

So I assume I would need to build / run the bitshares_toolikit? If so, is there any danger of building the client when I already have the GUI installed (i.e. will it modify my current data directory?).

Edit: just remember reading somewhere I can pass an argument to make a 2nd data directory. So that should do the trick!

Thanks! I have been meaning to dig into running a delegate but my less interesting full time job comes first.

Can we have an instruction manual for how you got it to work?

I will certainly publish anything useful I can find... hoping to look into this more tonight after I finish up some more work for my employer.

You probably have the wrong port number.... make sure the port matches the port you passed to the bitshares_client via --httpport

Thanks for the response bytemaster. I was using 8000 for the port but the problem was with the fact that I had not built bitshares_toolkit yet!

So I just built the toolkit, is there some place in the technical wiki I can see all the flags that can be passed to the run command? Currently I am trying to figure out how to make my CLI instance and GUI instance "share" the same data directory... as the master branch of bitshares_toolkit created a new data directory called "BitShares XTS-Test23" to use. If I specify the directory I am using with the 0.4.14 OS X binary I get an issue with the database version:

Code: [Select]
(lldb) run --server --data-dir=/Users/rob/Library/Application\ Support/BitShares\ X/
Process 34216 launched: './bitshares_client' (x86_64)
Loading blockchain from: /Users/rob/Library/Application Support/BitShares X/chain
Loading config from file: /Users/rob/Library/Application Support/BitShares X/config.json
------------ error --------------
30012 new_database_version: new database version

    {"database_version":136,"133":133}
    th_a  chain_database.cpp:258 open_database

    {"data_dir":"/Users/rob/Library/Application Support/BitShares X/chain"}
    th_a  chain_database.cpp:302 open_database

    {"data_dir":"/Users/rob/Library/Application Support/BitShares X/chain"}
    th_a  chain_database.cpp:1094 open

    {"data_dir":"/Users/rob/Library/Application Support/BitShares X/"}
    th_a  client.cpp:1689 open
Process 34216 exited with status = 0 (0x00000000)

I'm going to guess this could probably be fixed by changing some of the config params? Some other questions:

1) Should rpc_username / rpc_password flags match the 'arbiteur' info in the market maker script? Or an account in my wallet?

2) Is it possible to share a data directory between running the latest master branch as CLI / running the GUI or should I keep these separate?

Sorry if my questions seem simple; first time actually diving into this (although I have been wanting to for weeks)!

425
General Discussion / Re: BitUSD Market Maker Live
« on: September 11, 2014, 09:39:02 pm »
I haven't run the CLI version yet but I assume this requires the CLI version? Just wondering I tried to get it to work but keep getting connection refused:

Code: [Select]
Initializing with URL:  http://robrigo-market-maker:************@localhost:8000/rpc
Init price:  0.039835
Init price:  25.103530
Traceback (most recent call last):
  File "main.py", line 107, in <module>
    init_usd_balance = client.get_balance("USD")
  File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 57, in get_balance
    response = self.request("wallet_account_balance", [self.account_name, asset])
  File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 29, in request
    response = requests.post(self.url, data=json.dumps(payload), headers=headers)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 92, in post
    return request('post', url, data=data, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 48, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 451, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 557, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 407, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(61, 'Connection refused'))

So I assume I would need to build / run the bitshares_toolikit? If so, is there any danger of building the client when I already have the GUI installed (i.e. will it modify my current data directory?).

Edit: just remember reading somewhere I can pass an argument to make a 2nd data directory. So that should do the trick!

Thanks! I have been meaning to dig into running a delegate but my less interesting full time job comes first.

Can we have an instruction manual for how you got it to work?

I will certainly publish anything useful I can find... hoping to look into this more tonight after I finish up some more work for my employer.

426
General Discussion / Re: BitUSD Market Maker Live
« on: September 11, 2014, 09:23:24 pm »
I haven't run the CLI version yet but I assume this requires the CLI version? Just wondering I tried to get it to work but keep getting connection refused:

Code: [Select]
Initializing with URL:  http://robrigo-market-maker:************@localhost:8000/rpc
Init price:  0.039835
Init price:  25.103530
Traceback (most recent call last):
  File "main.py", line 107, in <module>
    init_usd_balance = client.get_balance("USD")
  File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 57, in get_balance
    response = self.request("wallet_account_balance", [self.account_name, asset])
  File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 29, in request
    response = requests.post(self.url, data=json.dumps(payload), headers=headers)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 92, in post
    return request('post', url, data=data, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/api.py", line 48, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 451, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Python/2.7/site-packages/requests/sessions.py", line 557, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Python/2.7/site-packages/requests/adapters.py", line 407, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(61, 'Connection refused'))

So I assume I would need to build / run the bitshares_toolikit? If so, is there any danger of building the client when I already have the GUI installed (i.e. will it modify my current data directory?).

Edit: just remember reading somewhere I can pass an argument to make a 2nd data directory. So that should do the trick!

Thanks! I have been meaning to dig into running a delegate but my less interesting full time job comes first.

427
Please ask and vote on questions at the following link: http://www.reddit.com/r/BeyondBitcoinShow/comments/2g4vpd/submit_questions_for_12_sep_2014_dev_voice/

Or better yet--Join us! Follow @Beyond_Bitcoin for updates on upcoming events, attend, record and report live from our Mumble Server!
https://bitsharestalk.org/index.php?topic=4150.0

I have word that CinniDev of Cinnicoin will be there to hangout with Bytemaster and the community. He would like to discuss some thoughts about potentially cooperating with bitshares devs and community, during the afterparty. We leave it to him to explain further!

 +5%

I will definitely be there, it is always enjoyable to hear all of the ideas and questions that come out of these mumble hangouts!

428
General Discussion / Re: SuperNetworks
« on: September 11, 2014, 04:45:50 am »
Let me guess.

Some one pump several NXT-AE Assets.Because nearly all of the NXT-AE volume is too low (even the star product NEM),pumping would be easy.Some of the assets are even his.
Before he pumps,he post a thread: xxx is gonna rise,watch me !I'm Buying!!!

Then ....After ten assets...wow,everyone knows he is a a smart investor with great track record,9 wins,only 1lost.

So,he go to his final game : I'm really good at investing ...You should give me your money to invest .

 :P Just a crazy guess.

Good explanation.

He DOES believe, he is a great investor though... {English grammar question: is it 'he does believe' or 'he do believes' or something else, the correct way to write this in English?}

You got it right tonyk.

429
General Discussion / Re: Is Anyone Still Holding Bitcoin?
« on: September 10, 2014, 11:55:15 pm »
Question for the BitShares faithful: Is anyone still holding Bitcoin or other cryptos? Why? And if so, what percentage of your crypto assets are you holding outside of BitShares?

I sold all my junk coins for AGS and PTS. Since BTSX has come out, I realize that I've done what was once unthinkable: sold out (almost entirely) of Bitcoin. I just have nickels and dimes remaining in my BTC wallets at this point. So I would say that 99% of my crypto 'portfolio' is now in BTSX, a little BitUSD, and other BitShares commitments. Am I wrong to believe in this so strongly? I don't think so. Every dime I keep in Bitcoin is one dime that won't double, triple, or tentuple nearly as fast as it should in BitShares. Yes, there are risks, but as long as you are in crypto, risks are par for the course. I'm not interested in balancing or diversifying anymore; this is not money I need to eat or pay the mortgage. The (very realistically possible) potential rewards here vastly exceed anything else.

I am also "all in" on the BitShares ecosystem insofar as my crypto investments for the same reason. If BTC starts a rise I will hedge some but other than that, I believe in the success of the technology, team, and community emanating from BitShares. Here's to paying off my college debt (or at least a good chunk of it) on the ride to the moon.  8)

430
General Discussion / Re: BitShares X needs an awesome hook...
« on: September 10, 2014, 03:15:22 pm »
OldMan's suggestion from a different thread stuck with me:

Quote from: OldMan
"Faster than a credit card and safer than a bank."

431
I am not sure if the "10% or more" statement is good for us .. may be an overestimate

Fixed. How does that sound? It's the best I can come up with while being sparse.

I think your new wording is a good compromise without making any definitive promise. Well done!

Also I think it would look good if you could work in the actual brand logo at the top somehow, like "What is " + <Insert actual BTSX logo you see when you load the wallet". This could help to establish brand identity. It might not look right without tweaking your fonts though.

432
Muse/SoundDAC / Re: PeerTracks! The first BitShares Music front end website
« on: September 10, 2014, 01:17:49 pm »
Personaly I don't like the symbolism in home page.
I like the people dancing but not the... signs...
Of course you will get big support from this demographic  :P
So what the hell !!!

hmmm...

I'm used to that meaning "rock on," I've observed a lot of people throwing that at concerts, but it's been a while since I've been to one so maybe not anymore. people did actually do that though. makes me wonder about the etymology of this gesture. might have to go wikipedia this one.

we're all heathens over here :)

Yeah it definitely really common at concerts to see that gesture in the crowd still today... especially for heavier music (metal, rock). It's a pretty innocuous gesture imo.

433
General Discussion / Re: my open orders Disappeared, how repair???
« on: September 10, 2014, 06:32:30 am »
my open orders Disappeared, how repair???

Known issue, fix should be available tomorrow. Your order hasn't been lost. :)

434
Muse/SoundDAC / Re: PeerTracks! The first BitShares Music front end website
« on: September 10, 2014, 04:29:57 am »
peertracks.com

Check it out. Read up on it.

I need you guys to let me know what isn't clear. What FAQs you would add. What sentences you would reformulate and of course where are those pesky typos!

Praise, criticism, worries, questions, interpretive dance. This is the place for it.

The site is still being worked on. So it might work and then stop working and work again. temporary temporary. I don't need this brought up in the complaints lol

I needed to add "www" to resolve the link: http://www.peertracks.com


Nevermind it works for me now after refreshing a bunch. Might have been cached from previous visits. Sorry for confusion. :)

435
General Discussion / Re: BitUSD: BitBTC market?
« on: September 10, 2014, 03:10:36 am »
Shouldn't the market be flipped to BitBTC: BitUSD? The math, I think would be easier.  Is there a reason why this shouldn't or wouldn't be implemented?

Check out the "Flip Market" button next to the trading pair name in the market view for a specific pair. Then you can see the Buy / Sell bitBTC view.

Pages: 1 ... 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37