Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python follower order #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions bitget-python-sdk-api/bitget/mix/trace_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ def current_track(self, symbol, productType, pageSize=20, pageNo=1):
else:
return "pls check args "

'''
跟随者获取跟单信息
symbol: 交易对名称
productType: umcbl(USDT专业合约) dmcbl(混合合约) sumcbl(USDT专业合约模拟盘) sdmcbl(混合合约模拟盘)
pageNo: 从1开始
:return:
'''

def follower_order(self, symbol, productType, pageSize=20, pageNo=1):
params = {}
if symbol:
params["symbol"] = symbol
params["productType"] = productType
params["pageSize"] = pageSize
params["pageNo"] = pageNo
return self._request_with_params(
GET, MIX_TRACE_V1_URL + "/followerOrder", params
)
else:
return "pls check args "

'''
交易员获取当前带单
symbol: 交易对名称
Expand Down