// Copyright 2017-2021 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 /* eslint-disable sort-keys */ export default { OrderType: { _enum: [ 'BidLimit', 'BidMarket', 'AskLimit', 'AskMarket' ] }, Order: { id: 'Hash', trading_pair: 'Hash', trader: 'AccountId', price: 'FixedU128', quantity: 'FixedU128', order_type: 'OrderType' }, Order4RPC: { id: '[u8;32]', trading_pair: '[u8;32]', trader: '[u8;32]', price: 'Vec', quantity: 'Vec', order_type: 'OrderType' }, MarketData: { low: 'FixedU128', high: 'FixedU128', volume: 'FixedU128', open: 'FixedU128', close: 'FixedU128' }, LinkedPriceLevel: { next: 'Option', prev: 'Option', orders: 'Vec' }, LinkedPriceLevelRpc: { next: 'Vec', prev: 'Vec', orders: 'Vec' }, Orderbook: { trading_pair: 'Hash', base_asset_id: 'u32', quote_asset_id: 'u32', best_bid_price: 'FixedU128', best_ask_price: 'FixedU128' }, OrderbookRPC: { trading_pair: '[u8;32]', base_asset_id: 'u32', quote_asset_id: 'u32', best_bid_price: 'Vec', best_ask_price: 'Vec' }, FrontendPricelevel: { price: 'FixedU128', quantity: 'FixedU128' }, OrderbookUpdates: { bids: 'Vec', asks: 'Vec' }, LookupSource: 'AccountId', Address: 'AccountId' };