import { DB } from '../db/DB'; import { NumericDictionary } from 'lodash'; import { Augur } from '../../index'; import * as t from 'io-ts'; export interface MarketTradingPosition { timestamp: number; frozenFunds: string; marketId: string; realized: string; unrealized: string; total: string; unrealizedCost: string; realizedCost: string; totalCost: string; realizedPercent: string; unrealizedPercent: string; totalPercent: string; currentValue: string; } export interface TradingPosition { timestamp: number; frozenFunds: string; marketId: string; outcome: number; netPosition: string; rawPosition: string; averagePrice: string; realized: string; unrealized: string; total: string; unrealizedCost: string; realizedCost: string; totalCost: string; realizedPercent: string; unrealizedPercent: string; totalPercent: string; currentValue: string; } export interface UserTradingPositions { tradingPositions: TradingPosition[]; tradingPositionsPerMarket: { [marketId: string]: MarketTradingPosition; }; frozenFundsTotal: string; unrealizedRevenue24hChangePercent: string; } export interface ProfitLossResult { timestamp: number; position: string; averagePrice: string; cost: string; realized: string; unrealized: string; total: string; } export declare class Users { static getUserTradingPositionsParams: t.IntersectionType<[t.IntersectionType<[t.InterfaceType<{ account: t.StringType; }, t.TypeOfProps<{ account: t.StringType; }>, t.OutputOfProps<{ account: t.StringType; }>, unknown>, t.PartialType<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }, t.TypeOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }>, t.OutputOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }>, unknown>], t.Compact & t.TypeOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }>>, t.Compact & t.OutputOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }>>, unknown>, 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.Compact & t.TypeOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }>> & t.TypeOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>>, t.Compact & t.OutputOfPartialProps<{ universe: t.StringType; marketId: t.StringType; outcome: t.NumberType; }>> & t.OutputOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>>, unknown>; static getProfitLossParams: t.IntersectionType<[t.PartialType<{ universe: t.StringType; account: t.StringType; endTime: t.NumberType; }, t.TypeOfPartialProps<{ universe: t.StringType; account: t.StringType; endTime: t.NumberType; }>, t.OutputOfPartialProps<{ universe: t.StringType; account: t.StringType; endTime: t.NumberType; }>, unknown>, t.PartialType<{ startTime: t.NumberType; periodInterval: t.NumberType; outcome: t.NumberType; }, t.TypeOfPartialProps<{ startTime: t.NumberType; periodInterval: t.NumberType; outcome: t.NumberType; }>, t.OutputOfPartialProps<{ startTime: t.NumberType; periodInterval: t.NumberType; outcome: t.NumberType; }>, unknown>], t.Compact & t.TypeOfPartialProps<{ startTime: t.NumberType; periodInterval: t.NumberType; outcome: t.NumberType; }>>, t.Compact & t.OutputOfPartialProps<{ startTime: t.NumberType; periodInterval: t.NumberType; outcome: t.NumberType; }>>, unknown>; static getProfitLossSummaryParams: t.PartialType<{ universe: t.StringType; account: t.StringType; endTime: t.NumberType; }, t.TypeOfPartialProps<{ universe: t.StringType; account: t.StringType; endTime: t.NumberType; }>, t.OutputOfPartialProps<{ universe: t.StringType; account: t.StringType; endTime: t.NumberType; }>, unknown>; static getUserTradingPositions(augur: Augur, db: DB, params: t.TypeOf): Promise; static getProfitLoss(augur: Augur, db: DB, params: t.TypeOf): Promise; static getProfitLossSummary(augur: Augur, db: DB, params: t.TypeOf): Promise>; } export declare function sumTradingPositions(tradingPositions: MarketTradingPosition[]): MarketTradingPosition; //# sourceMappingURL=Users.d.ts.map