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

pos.VolumeLong += int(fill.Volume) 崩溃 #2

Open
beijibeijing opened this issue Sep 26, 2024 · 0 comments
Open

pos.VolumeLong += int(fill.Volume) 崩溃 #2

beijibeijing opened this issue Sep 26, 2024 · 0 comments

Comments

@beijibeijing
Copy link

trader.go文件中

if fill.OffsetFlag == thost.THOST_FTDC_OF_Open {
		if fill.Direction == thost.THOST_FTDC_D_Buy {
			pos.VolumeLong += int(fill.Volume)

pos.VolumeLong += int(fill.Volume)
报单回调后调用UpdateTrade这里崩溃过一次,暂时没有复现,不知道啥原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant