Giter Site home page Giter Site logo

get_open_orders() issue about pylivetrader HOT 6 CLOSED

alpacahq avatar alpacahq commented on June 15, 2024
get_open_orders() issue

from pylivetrader.

Comments (6)

h55nick avatar h55nick commented on June 15, 2024

@paulanto09009 could you give some steps to reproduce?

https://docs.alpaca.markets/web-api/orders/#get-a-list-of-orders does not seem to have a default limit and looking at the _broker code it looks to be ok. Also can't reproduce, but this would be a pretty serious issue for me if this is true!

Thanks

from pylivetrader.

umitanuki avatar umitanuki commented on June 15, 2024

Good find the document doesn't say that, but it is 50 as far as I know, and yes if there are too many canceled orders, it pushes open orders so pylivetrader doesn't find it. It should instead use get_orders with status='open'

from pylivetrader.

umitanuki avatar umitanuki commented on June 15, 2024

https://docs.alpaca.markets/web-api/orders/#get-a-list-of-orders

Actually, there were undocumented parameters. SDK needs to support it first. alpacahq/alpaca-trade-api-python#34

from pylivetrader.

h55nick avatar h55nick commented on June 15, 2024

submitted a PR here: alpacahq/alpaca-trade-api-python#35

from pylivetrader.

umitanuki avatar umitanuki commented on June 15, 2024

#45 should cover this.

from pylivetrader.

ttt733 avatar ttt733 commented on June 15, 2024

This should be fixed by the latest release. @paulanto09009, are you able to verify that your issue was resolved in pylivetrader v0.0.17?

from pylivetrader.

Related Issues (20)

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.