Giter VIP home page Giter VIP logo

alpaca-cli's Introduction

  • Coding since 2011.
  • Semi-frequent open-source contributor and volunteer programmer for things I believe in.
  • Currently pursuing interests outside the corporate tech hellscape.
  • Making weird small web things and games πŸ•· πŸ•ΈοΈ πŸ‘Ύ 🎿 πŸ•

alpaca-cli's People

Contributors

dependabot[bot] avatar suddjian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alpaca-cli's Issues

[Feature] Add ability to specify stop loss with an order

From what I could see now, the CLI only allows separate orders.

If I were to put a sell stop below my buy limit and if I then cancel the buy limit, the sell stop will still remain - increasing the chances of selling short when I wanted to use that as a downside protection.

Could you please add stop loss option for both buy & sell side - so when the original order is removed, the stop loss also gets removed.

Thanks!

"account not found" fake error

I had my hopes up when I learned of this only CLI trader for Alpaca (is there another that works under /bin/bash ?)

To prove I connected my account just fine, with money ready to invest:

 alpaca report

Portfolio:
  symbol     qty      cost     value      profit


Performance:
  US$Β 0.00


Yet when I try to place a simple limit order to buy:

 alpaca buy 1 BIZD --type=limit --time-in-force=gtc --limit-price=17.07


404 - {"code":40410000,"message":"account not found for 662d0fac-5c7f-4835-a246-5749cdbf8070"}

I had tried updating/reinstalling, but that made no difference:
npm install -g alpaca-cli ## https://www.npmjs.com/package/alpaca-cli

[Feature] Add ability to specify % of account size to use in trade

Hi there,

Thanks for making alpaca-cli

Could you please add ability to specify how much % of the account should be used in the trade?
For example if my balance at Alpaca is $100 and I specify 20% in a BUY order, then the CLI will open a BUY position with $20 worth of specified instrument.

This will help the trader to control exposure per trade.

Thanks again!

Add some kind of password protection for keys

Right now it stores them in plaintext, which should be fine since this is intended to be run on the user's machine, but adding the ability to put them behind a password would be cool.

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.