pdblp:从`event_type`返回`卷
是否可以为每个event_type
指定我要重述的列?
例如,event_type
= 交易
返回[open
,high
,low
,,代码>关闭,<代码>卷,numevents
],但我只想看到[卷
]。
我将30天的1分钟间隔数据用于30个诉讼,因此包括这些额外的列在内,这正在减慢查询。
end = datetime.datetime.now()
delta = end - BDay(30)
start = delta.replace(hour=0, minute=0, second=0)
interval = 1
cl1 = con.bdib('CL1 Comdty', start_datetime=start,
end_datetime=end, event_type='TRADE', interval=interval)
无论如何是否可以添加字段
参数,例如fields ='卷'
?
Is it possible to specify the columns I want to retreive for each event_type
?
For example, event_type
= TRADE
returns [Open
, High
, Low
, Close
, Volume
, numEvents
] but I just want to see [Volume
].
I am pulling 30days of 1 minute interval data for 30 tickers, so including these extra columns is slowing down the query.
end = datetime.datetime.now()
delta = end - BDay(30)
start = delta.replace(hour=0, minute=0, second=0)
interval = 1
cl1 = con.bdib('CL1 Comdty', start_datetime=start,
end_datetime=end, event_type='TRADE', interval=interval)
Is there anyway to add a fields
parameter such as fields = 'Volume'
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论