backtestify/src/main/java/com/yangwale/backtestify/entity/InstrumentDictionary.java
2026-07-13 19:28:43 +08:00

36 lines
843 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.yangwale.backtestify.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yangwale.backtestify.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
/**
* 合约字典表
*/
@Getter
@Setter
@TableName("t_instrument_dictionary")
public class InstrumentDictionary extends BaseEntity {
@TableId(type = IdType.AUTO)
private Integer id;
/** 交易所代码,如 SHFE */
private String exchangeId;
/** 期货品种,如 rb */
private String symbol;
/** 具体合约代码,如 rb2610 */
private String contractCode;
/** 价格放大倍数 */
private Integer priceScale;
/** 是否当前主力合约0-否1-是 */
private Integer isMain;
}