@tomei/live-price
Version:
Tomei live-price Package
103 lines (88 loc) • 2.05 kB
text/typescript
import {
BelongsTo,
Column,
DataType,
ForeignKey,
HasMany,
Model,
Table,
} 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[];
}