@tomei/live-price
Version:
Tomei live-price Package
37 lines (36 loc) • 1.41 kB
TypeScript
import { ObjectBase } from '@tomei/general';
import { IFeedHistoryAttr } from '../../interfaces/price-feed-history-attr.interface';
import { SourceFeedName } from '../../enum/feed.enum';
export declare class FeedHistory extends ObjectBase implements IFeedHistoryAttr {
ObjectId: string;
ObjectName: string;
TableName: 'price_FeedHistory';
ObjectType: 'FeedHistory';
FeedName: SourceFeedName;
DateTime: Date;
Currency: string;
SourceFeedBuyPrice: number;
SourceFeedSellPrice: number;
FeedBuyPrice: number;
FeedSellPrice: number;
IsSourceFeedAvailableYN: string;
IsManualPriceActivatedYN: string;
IsManualCutOffYN: string;
IsCircuitBreakerActivatedYN: string;
private static _Repo;
get FeedHistoryId(): string;
set FeedHistoryId(value: string);
private constructor();
static init(dbTransaction: any, FeedHistoryId?: string): Promise<FeedHistory>;
saveFeedPrice(priceData: IFeedHistoryAttr, dbTransaction: any): Promise<FeedHistory>;
static getLatestPrice(feedName: string, currency: string, timestamp?: Date, dbTransaction?: any): Promise<IFeedHistoryAttr>;
static findAll(page: number, row: number, feedName: string, search?: {
DateTime: {
startDate: Date;
endDate: Date;
};
}, dbTransaction?: any): Promise<{
rows: IFeedHistoryAttr[];
count: number;
}>;
}