Closed foolcage closed 3 years ago
https://github.com/zvtvz/zvt/blob/master/zvt/domain/fundamental/trading.py
class MarginTrading(TradingBase, Mixin): __tablename__ = 'margin_trading' code = Column(String(length=32)) # 融资余额(元) fin_value = Column(Float) # 融资买入额(元) fin_buy_value = Column(Float) # 融资偿还额(元) fin_refund_value = Column(Float) # 融券余量(股) sec_value = Column(Float) # 融券卖出量(股) sec_sell_value = Column(Float) # 融券偿还量(股) sec_refund_value = Column(Float) # 融资融券余额(元) fin_sec_value = Column(Float)
https://github.com/zvtvz/zvt/blob/master/zvt/recorders/joinquant/fundamental/joinquant_margin_trading_recorder.py
下载数据
from zvt.domain import * MarginTrading.record_data(provider='joinquant')
https://github.com/zvtvz/zvt/blob/master/zvt/domain/fundamental/trading.py
https://github.com/zvtvz/zvt/blob/master/zvt/recorders/joinquant/fundamental/joinquant_margin_trading_recorder.py
下载数据