BitShares Forum

Main => Technical Support => Topic started by: sharique-knysys on April 06, 2016, 07:44:18 am

Title: How do I know if limit order create request full filled?
Post by: sharique-knysys on April 06, 2016, 07:44:18 am
Hi,
I create limit_order_create request from bitshares-2-ui and I set 5 minutes expiration time for this request. How do I know my request is full fill and I get required amount of smartcoins. Is there any api method which gives me this information? Please guide me
Title: Re: How do I know if limit order create request full filled?
Post by: xeroc on April 06, 2016, 09:00:23 am
you can go through the account's history and see if you find a "filled" order .. not sure if there is a virtual operation of some kind added if the order expires .. but if it fills, there certainly is one
Title: Re: How do I know if limit order create request full filled?
Post by: sharique-knysys on April 06, 2016, 09:22:05 am
Can you give me an exact api name and method of that api? Because I found some methods in account history api. I dont know how to invoke these methods. Can you give me an example code?
Title: Re: How do I know if limit order create request full filled?
Post by: xeroc on April 06, 2016, 10:04:39 am
http://docs.bitshares.eu/api/websocket.html#requesting-api-access
http://docs.bitshares.eu/api/history.html#account-history

python example:
https://github.com/xeroc/python-graphenelib/blob/master/grapheneapi/graphenewsprotocol.py#L149-L168