Giter Site home page Giter Site logo

Comments (4)

hirokisan avatar hirokisan commented on September 4, 2024

@davidphay

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.

OrderStatus OrderStatus `json:"orderStatus"`

from bybit.

davidphay avatar davidphay commented on September 4, 2024

@davidphay

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.

OrderStatus OrderStatus `json:"orderStatus"`

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.

hirokisan avatar hirokisan commented on September 4, 2024

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.

hirokisan avatar hirokisan commented on September 4, 2024

It should be resolved and closed.

from bybit.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.