Comments (4)
Since CreateOrder is executed in OrderTypeMarket, the Order is processed immediately, so the Order should not be cancelable.
You should be able to tell by checking the OrderStatus included in the GetOpenOrders Response.
Line 218 in 931bcfe
from bybit.
Since CreateOrder is executed in OrderTypeMarket, the Order is processed immediately, so the Order should not be cancelable.
You should be able to tell by checking the OrderStatus included in the GetOpenOrders Response.
Line 218 in 931bcfe
So how can we close a position with the API ?
Another weird things, I can't create an order with the same OrderLinkId after the previous position has been Filled or Cancelled.
I'm wondering if the issue is only on the testnet or not
from bybit.
how can we close a position with the API ?
For example, it would be possible to eliminate the position by executing a Place Order.
I can't create an order with the same OrderLinkId after the previous position has been Filled
(I think it's previous order
, not previous position
)
Since the orderLinkId you specified has already been assigned to an order, I don't think you can assign the same orderLinkId to another order.
An error such as
110072, OrderLinkedID is duplicate
should be returned.
from bybit.
It should be resolved and closed.
from bybit.
Related Issues (18)
- failing tests HOT 2
- Concurrent write to websocket connection HOT 8
- USDT Derivatives balance empty HOT 5
- Timestamp errors HOT 4
- panic: repeated read on failed websocket connection HOT 5
- How to make cross margin leverage order ? HOT 1
- Missing property in V5GetPositionInfoItem HOT 1
- api v5 marketUnit HOT 2
- Custom http client HOT 2
- Turnover in kline request is wrong HOT 2
- Update types HOT 2
- Subscribe to multiple symbols as in Pybit HOT 5
- Signing seems to be broken? HOT 9
- Testnet HOT 2
- USDTPerp ListLinearPositions doesn't return errors properly HOT 3
- API V5 HOT 35
- Warning: int vs int64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bybit.