BitShares Forum

Main => Technical Support => Topic started by: starspirit on November 06, 2014, 01:19:06 am

Title: Sorting margin call orders by expiry in the client
Post by: starspirit on November 06, 2014, 01:19:06 am
When I try to sort margin call orders on BitUSD in the client v04.23.1 by expiration, by clicking the arrow next to the header "EXPIRATION", the table does not appear to order correctly for me. Some expirations are recorded as a date, while others are recorded as a number of days, but even despite that they do not appear to have any sort of ascending or descending order.

I would like to monitor this for upcoming expiries.

Thanks
Title: Re: Sorting margin call orders by expiry in the client
Post by: alt on November 06, 2014, 01:29:40 am
I have a command tool for this
Code: [Select]
                 USD
2014-11-05          2.9999 USD
2014-11-07          0.5499 USD
2014-11-09        3392.968 USD
2014-11-10         49.9999 USD
2014-11-11        279.9936 USD
2014-11-12        499.9999 USD
2014-11-13          1.0004 USD
2014-11-15        8269.259 USD
2014-11-16          0.1727 USD
2014-11-17       5020.4607 USD
2014-11-18      66758.5508 USD
2014-11-19       1526.1668 USD
2014-11-20        444.0057 USD
2014-11-21        430.3053 USD
2014-11-27     778482.2726 USD
2014-11-28          0.0999 USD
2015-08-26          0.9999 USD
2015-08-27       2199.9997 USD
2015-08-28          52.024 USD
2015-08-29      56880.1341 USD
2015-09-02         33982.9 USD
2015-09-04       1877.2889 USD
2015-09-11        426.0661 USD
2015-09-13       1858.7402 USD
2015-09-15           200.0 USD
2015-09-17          0.0059 USD
2015-09-19       1226.0169 USD
2015-09-29          0.0001 USD
Code: [Select]
                 CNY
2014-11-09        249.9999 CNY
2014-11-23      75949.9625 CNY
2014-11-27         95.1048 CNY
2014-11-29      15909.7523 CNY
2014-12-01       9999.9999 CNY
2014-12-05        119.3987 CNY
2015-09-10          0.0001 CNY
2015-09-13       3500.9999 CNY
2015-09-15        240.2156 CNY
2015-09-16        110.0669 CNY
2015-09-17      202007.797 CNY
2015-09-19       1181.2958 CNY
Title: Re: Sorting margin call orders by expiry in the client
Post by: starspirit on November 06, 2014, 02:30:27 am
I have a command tool for this
Code: [Select]
                 USD
2014-11-05          2.9999 USD
2014-11-07          0.5499 USD
2014-11-09        3392.968 USD
2014-11-10         49.9999 USD
2014-11-11        279.9936 USD
2014-11-12        499.9999 USD
2014-11-13          1.0004 USD
2014-11-15        8269.259 USD
2014-11-16          0.1727 USD
2014-11-17       5020.4607 USD
2014-11-18      66758.5508 USD
2014-11-19       1526.1668 USD
2014-11-20        444.0057 USD
2014-11-21        430.3053 USD
2014-11-27     778482.2726 USD
2014-11-28          0.0999 USD
2015-08-26          0.9999 USD
2015-08-27       2199.9997 USD
2015-08-28          52.024 USD
2015-08-29      56880.1341 USD
2015-09-02         33982.9 USD
2015-09-04       1877.2889 USD
2015-09-11        426.0661 USD
2015-09-13       1858.7402 USD
2015-09-15           200.0 USD
2015-09-17          0.0059 USD
2015-09-19       1226.0169 USD
2015-09-29          0.0001 USD
Code: [Select]
                 CNY
2014-11-09        249.9999 CNY
2014-11-23      75949.9625 CNY
2014-11-27         95.1048 CNY
2014-11-29      15909.7523 CNY
2014-12-01       9999.9999 CNY
2014-12-05        119.3987 CNY
2015-09-10          0.0001 CNY
2015-09-13       3500.9999 CNY
2015-09-15        240.2156 CNY
2015-09-16        110.0669 CNY
2015-09-17      202007.797 CNY
2015-09-19       1181.2958 CNY
Do you mean a command written into the Console? How does it work? Also, do expiries have a time of day attached, or do they all cover at the same time on any day?
Title: Re: Sorting margin call orders by expiry in the client
Post by: xeroc on November 06, 2014, 07:26:28 am
it's probably not built-in .. but uses the RPC-API to connect to the BTSX client ..

regarding the OP, could you submit a bug report @https://github.com/BitShares/web_wallet/issues ?
Title: Re: Sorting margin call orders by expiry in the client
Post by: starspirit on November 06, 2014, 08:03:18 am
it's probably not built-in .. but uses the RPC-API to connect to the BTSX client ..

regarding the OP, could you submit a bug report @https://github.com/BitShares/web_wallet/issues ?
Ok I've now done that and will do so for future bugs.
For interest I worked out the problem is that the sorting is alphabetical, and also expirations have different formats.