Skip to content

Commit

Permalink
需求改动,broker不需要加请求个数
Browse files Browse the repository at this point in the history
  • Loading branch information
FutunnOpen committed Mar 26, 2020
1 parent 4af22c1 commit 33799b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
1 change: 0 additions & 1 deletion futu/common/pb/Qot_GetBroker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import "Qot_Common.proto";
message C2S
{
required Qot_Common.Security security = 1; //股票
optional int32 num = 2; //请求的经纪个数
}

message S2C
Expand Down
23 changes: 8 additions & 15 deletions futu/common/pb/Qot_GetBroker_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions futu/quote/open_quote_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,12 +1080,11 @@ def get_plate_stock(self, plate_code, sort_field=SortField.CODE, ascend=True):

return RET_OK, plate_stock_table

def get_broker_queue(self, code, num = 40):
def get_broker_queue(self, code):
"""
获取股票的经纪队列
:param code: 股票代码
:param num: 请求经纪队列档数,LV2 行情用户最多可以获取 40 档,SF 行情用户可以获取全部档位
:return: (ret, bid_frame_table, ask_frame_table)或(ret, err_message)
ret == RET_OK 返回pd dataframe数据,数据列格式如下
Expand Down Expand Up @@ -1126,7 +1125,6 @@ def get_broker_queue(self, code, num = 40):
BrokerQueueQuery.pack_req, BrokerQueueQuery.unpack_rsp)
kargs = {
"code": code,
"num": num,
"conn_id": self.get_sync_conn_id()
}

Expand Down
1 change: 0 additions & 1 deletion futu/quote/quote_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ def pack_req(cls, code, num, conn_id):
req = Request()
req.c2s.security.market = market
req.c2s.security.code = code
req.c2s.num = num
return pack_pb_req(req, ProtoId.Qot_GetBroker, conn_id)

@classmethod
Expand Down

0 comments on commit 33799b6

Please sign in to comment.