JKorf / Bybit.Net

A C# .netstandard client library for the Bybit REST and Websocket V5 API focusing on clear usage and models
https://jkorf.github.io/Bybit.Net/
91 stars 62 forks source link

PositionMode type in BybitOrderUpdate after 3.5.0 update #197

Closed hcanak closed 4 months ago

hcanak commented 4 months ago

Hello,

The type of PositionMode field in BybitOrderUpdate class is Bybit.Net.Enums.V5.PositionMode in last update 3.5.0. I think that it should be type of Bybit.Net.Enums.PositionMode. Can you check?

Bybit.Net.Enums.PositionMode is enum of OneWay, BothSideBuy and BothSideSell. Bybit.Net.Enums.V5.PositionMode is enum of MergedSingle and BothSides.

JKorf commented 4 months ago

Hi, seems like you're right. I've updated the enum type and renamed it to PositionIdx in the latest version