/** * Original work Copyright (c) 2022 Signum Network */ import { AssetTrade } from './assetTrade'; import { Indexable } from './indexable'; /** * Journal Entry of {@link TradeHistory} * @category entities */ export interface JournalEntry { order: string; asset: string; account: string; accountRS: string; quantityQNT: string; priceNQT: string; height: number; timestamp: number; name: string; decimals: number; price: string; executedQuantityQNT: string; executedVolumeNQT: string; type: 'bid' | 'ask'; status: 'filled' | 'open' | 'cancelled'; trades: AssetTrade[]; } /** * Trade History * @category entities */ export interface TradeHistory extends Indexable { account: string; accountRS: string; asset: string; nextIndex?: number; tradeJournal: JournalEntry[]; }