BitShares Forum
Main => Technical Support => Topic started by: bulletproof on August 04, 2015, 01:13:08 pm
-
Hi
I'm writing a Ruby version of xeroc's excellent Python API (https://github.com/xeroc/python-bitsharesrpc) and before I go placing live orders using my own account :o I need a test account. Is there such a thing & if so what config (url/port/credentials) do I use?
Happy to grapheneise the API as required in due course
Cheers
-
Interesting project.
The safest way I have found is to just create a new wallet and a throw away account. Populate the throwaway account with a few BTS and have at it. With the CLI it's easy to open/close different wallets on the same chain. Only the GUI is hard(ish) coded to the "default" wallet.
-
Thanks for the suggestion Riverhead, I'll try that
-
OK, so need a helping hand with orders on the CLI please. CLI 0.9.2 built on Mac OS X, blockchain synced and works fine otherwise. I'm using it successfully to get blockchain data, wallet data etc, but stuck submitting orders. Wallet is open and unlocked and I'd have expected the following to place an order:-
wallet_market_submit_bid <my account> 1 BTC 1 BTS
I expect this to be a order to buy 1 BTC at limit price of 1 BTS - so unlikely to be filled ;). I get this error:
37001 invalid_market: invalid market
Tried different market (asset pairs), searched wiki & professor Google, no joy. Any pointers much appreciated..
-
afaik bids are working the other way round:
wallet_market_submit_bid <my account> 1 BTS 1 BTC
-
If you're working in Ruby, you may find this useful: https://github.com/bitshares/web_services/blob/master/faucet/lib/BitShares/bitshares_api.rb
-
will try that @xeroc, best to get that right..
thanks @roadscape, hadn't seen that code!
Am planning on packaging the API as a Gem so Ruby/Rails projects can integrate the BitShares client :D
-
Awesome, keep us updated. I'll soon need to update http://cryptofresh.com to work with Graphene and it would be great to use your gem.
Here's my repo: https://github.com/roadscape/cryptofresh