You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

orderbook.d.ts 861B

12345678910111213141516171819202122
  1. import { FormattedOrderbookOrder } from './parse/orderbook-order';
  2. import { Issue } from '../common/types/objects';
  3. import { BookOffer } from '../common/types/commands';
  4. import { RippleAPI } from '..';
  5. export declare type FormattedOrderbook = {
  6. bids: FormattedOrderbookOrder[];
  7. asks: FormattedOrderbookOrder[];
  8. };
  9. export declare function formatBidsAndAsks(orderbook: OrderbookInfo, offers: BookOffer[]): {
  10. bids: FormattedOrderbookOrder[];
  11. asks: FormattedOrderbookOrder[];
  12. };
  13. export declare type GetOrderbookOptions = {
  14. limit?: number;
  15. ledgerVersion?: number;
  16. };
  17. export declare type OrderbookInfo = {
  18. base: Issue;
  19. counter: Issue;
  20. };
  21. export declare function getOrderbook(this: RippleAPI, address: string, orderbook: OrderbookInfo, options?: GetOrderbookOptions): Promise<FormattedOrderbook>;
  22. //# sourceMappingURL=orderbook.d.ts.map