import { DB } from "../db/DB"; import { Augur } from "../../index"; import { Address } from "../logs/types"; import * as t from "io-ts"; export declare const OutcomeParam: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; export declare const makerTakerValues: { 'either': string; 'maker': string; 'taker': string; }; export declare const OrdersParams: t.PartialType<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }, t.TypeOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>, t.OutputOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>, unknown>; export interface MarketTradingHistory { [marketId: string]: MarketTrade[]; } export interface MarketTrade { transactionHash: string; logIndex: number; orderId: string; type: string; price: string; amount: string; maker: boolean | null; selfFilled: boolean; settlementFees: string; marketId: string; outcome: number; timestamp: number; tradeGroupId: string | null; creator: string; filler: string; } export declare enum OrderState { ALL = "ALL", OPEN = "OPEN", FILLED = "FILLED", CANCELED = "CANCELED" } export interface AllOrders { [orderId: string]: { orderId: Address; tokensEscrowed: string; sharesEscrowed: string; marketId: Address; }; } export interface Order { orderId: string; transactionHash: string; logIndex: number; owner: string; orderState: OrderState; price: string; amount: string; amountFilled: string; fullPrecisionPrice: string; fullPrecisionAmount: string; tokensEscrowed: string; sharesEscrowed: string; canceledBlockNumber?: string; canceledTransactionHash?: string; canceledTime?: string; creationTime: number; creationBlockNumber: number; originalFullPrecisionAmount: string; } export interface Orders { [marketId: string]: { [outcome: number]: { [orderType: string]: { [orderId: string]: Order; }; }; }; } export declare const OrderType: t.KeyofType<{ buy: any; sell: any; }>; export declare const BetterWorseOrdersParams: t.InterfaceType<{ marketId: t.StringType; outcome: t.NumberType; orderType: t.KeyofType<{ buy: any; sell: any; }>; price: t.NumberType; }, t.TypeOfProps<{ marketId: t.StringType; outcome: t.NumberType; orderType: t.KeyofType<{ buy: any; sell: any; }>; price: t.NumberType; }>, t.OutputOfProps<{ marketId: t.StringType; outcome: t.NumberType; orderType: t.KeyofType<{ buy: any; sell: any; }>; price: t.NumberType; }>, unknown>; export interface BetterWorseResult { betterOrderId: string | null; worseOrderId: string | null; } export declare class Trading { static GetTradingHistoryParams: t.IntersectionType<[t.PartialType<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }, t.TypeOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>, t.OutputOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>, unknown>, t.PartialType<{ universe: t.StringType; account: t.StringType; marketIds: t.ArrayType; outcome: t.NumberType; ignoreReportingStates: t.ArrayType; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }, t.TypeOfPartialProps<{ universe: t.StringType; account: t.StringType; marketIds: t.ArrayType; outcome: t.NumberType; ignoreReportingStates: t.ArrayType; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>, t.OutputOfPartialProps<{ universe: t.StringType; account: t.StringType; marketIds: t.ArrayType; outcome: t.NumberType; ignoreReportingStates: t.ArrayType; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>, unknown>], t.Compact & t.TypeOfPartialProps<{ universe: t.StringType; account: t.StringType; marketIds: t.ArrayType; outcome: t.NumberType; ignoreReportingStates: t.ArrayType; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>>, t.Compact & t.OutputOfPartialProps<{ universe: t.StringType; account: t.StringType; marketIds: t.ArrayType; outcome: t.NumberType; ignoreReportingStates: t.ArrayType; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>>, unknown>; static GetAllOrdersParams: t.PartialType<{ account: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; }, t.TypeOfPartialProps<{ account: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; }>, t.OutputOfPartialProps<{ account: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; }>, unknown>; static GetOrdersParams: t.IntersectionType<[t.PartialType<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }, t.TypeOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>, t.OutputOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>, unknown>, t.PartialType<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }, t.TypeOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>, t.OutputOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>, unknown>], t.Compact & t.TypeOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>>, t.Compact & t.OutputOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.KeyofType<{ 0: any; 1: any; 2: any; 3: any; 4: any; 5: any; 6: any; 7: any; }>; orderType: t.StringType; account: t.StringType; orderState: t.StringType; ignoreReportingStates: t.ArrayType; makerTaker: t.KeyofType<{ 'either': string; 'maker': string; 'taker': string; }>; earliestCreationTime: t.NumberType; latestCreationTime: t.NumberType; }>>, unknown>; static GetBetterWorseOrdersParams: t.InterfaceType<{ marketId: t.StringType; outcome: t.NumberType; orderType: t.KeyofType<{ buy: any; sell: any; }>; price: t.NumberType; }, t.TypeOfProps<{ marketId: t.StringType; outcome: t.NumberType; orderType: t.KeyofType<{ buy: any; sell: any; }>; price: t.NumberType; }>, t.OutputOfProps<{ marketId: t.StringType; outcome: t.NumberType; orderType: t.KeyofType<{ buy: any; sell: any; }>; price: t.NumberType; }>, unknown>; static getTradingHistory(augur: Augur, db: DB, params: t.TypeOf): Promise; static getAllOrders(augur: Augur, db: DB, params: t.TypeOf): Promise; static getOrders(augur: Augur, db: DB, params: t.TypeOf): Promise; static getBetterWorseOrders(augur: Augur, db: DB, params: t.TypeOf): Promise; } //# sourceMappingURL=Trading.d.ts.map