Skip to content

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

@beijibeijing

Description

@beijibeijing

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这里崩溃过一次,暂时没有复现,不知道啥原因

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions