@tomei/live-price
Version:
Tomei live-price Package
22 lines (21 loc) • 844 B
TypeScript
import { Model } from 'sequelize-typescript';
import { IFeedHistoryAttr } from '../interfaces/price-feed-history-attr.interface';
import TomeiPriceHistoryModel from './price-tomei-price-history.entity';
import SourceFeedModel from './price-source-feed.entity';
import { SourceFeedName } from '../enum/feed.enum';
export default class FeedHistoryModel extends Model implements IFeedHistoryAttr {
FeedHistoryId: string;
FeedName: SourceFeedName;
DateTime: Date;
Currency: string;
SourceFeedBuyPrice: number;
SourceFeedSellPrice: number;
FeedBuyPrice: number;
FeedSellPrice: number;
IsSourceFeedAvailableYN: string;
IsManualPriceActivatedYN: string;
IsManualCutOffYN: string;
IsCircuitBreakerActivatedYN: string;
SourceFeed: SourceFeedModel;
TomeiPriceHistories: TomeiPriceHistoryModel[];
}