Author Topic: Cli_wallet.exe, how to get the list of my open order for a specified account?  (Read 2368 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
The cli wallet doesn't have that call .. only the backend has

Code: [Select]
curl --data '{"id":1, "method":"call", "params":[0,"get_full_accounts",[["xeroc"], false]]}' https://node.bitshares.eu

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
You can get all open orders using "get_full_accounts()" through the backend API. There is a key `limit_orders`

Thanks for your reply.

However, it shows that: no method with name 'get_full_accounts'.

Could you give me more detailed information?

Thanks

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
You can get all open orders using "get_full_accounts()" through the backend API. There is a key `limit_orders`

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
I've always wondered about that, too. How does the web ui do it?
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
That's true .. the cli really sucks at this ..
you may want to look into "uptick" (https://uptick.rocks)
and use

 uptick openorders <accountname>

Offline yangyinzd

  • Full Member
  • ***
  • Posts: 61
    • View Profile
When running the Cli_wallet.exe, after importing my account and submitting an order, how can I get the list of my open order for my imported account?

I can only use the "get_account_history" command to find out the order id of my open order.

Thanks