bitshares / bitshares-core

BitShares Blockchain node and command-line wallet
https://bitshares.github.io/
Other
1.17k stars 643 forks source link

Extend get_order_book API to return more info #2638

Closed abitmore closed 1 year ago

abitmore commented 1 year ago

PR for #2637 and https://github.com/blocksights/blocksights-open-explorer/issues/9.

This PR adds 4 data fields into the order struct:

The full order struct becomes:

   struct order
   {
      string                     price;
      string                     quote;
      string                     base;
      limit_order_id_type        id;
      account_id_type            owner_id;
      string                     owner_name;
      time_point_sec             expiration;
   };

The order_book struct itself is unchanged.

   struct order_book
   {
     string                      base;
     string                      quote;
     vector< order >             bids;
     vector< order >             asks;
   };
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

81.2% 81.2% Coverage
0.0% 0.0% Duplication