Backtrader官方中文文档:【扩展篇】聚宽joinquant的Datafeed

直接上源码咯,类的auth方法填入自己聚宽的账号及密码:

import backtrader as bt
import datetime
from jqdatasdk import *
import pandas as pd

class JoinQuantData(bt.feeds.PandasData):
    '''
    get_price(security, start_date=None, end_date=None, frequency='daily', fields=None, skip_paused=False, fq='pre&

你可能感兴趣的:(Backtrader中文文档,python,backtrader)