Author Topic: Testing client 0.x Ruby API  (Read 1741 times)

0 Members and 1 Guest are viewing this topic.

Offline 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

Offline 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.

Offline roadscape

http://cryptofresh.com  |  witness: roadscape

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
afaik bids are working the other way round:
Code: [Select]
wallet_market_submit_bid <my account> 1 BTS 1 BTC

Offline 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:-

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

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

Offline bulletproof

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

Offline 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.

Offline 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.