Main Menu

Testing client 0.x Ruby API

Started by bulletproof, August 04, 2015, 01:13:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roadscape

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
http://cryptofresh.com  |  witness: roadscape

bulletproof

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
Everything is awesome, or if it isn't it ought to be.

roadscape

http://cryptofresh.com  |  witness: roadscape

xeroc

afaik bids are working the other way round:

wallet_market_submit_bid <my account> 1 BTS 1 BTC

bulletproof

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..
Everything is awesome, or if it isn't it ought to be.

bulletproof

Thanks for the suggestion Riverhead, I'll try that
Everything is awesome, or if it isn't it ought to be.

Riverhead


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.

bulletproof

Hi

I'm writing a Ruby version of xeroc's excellent Python API 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
Everything is awesome, or if it isn't it ought to be.