Giter Site home page Giter Site logo

alpaca-examples's Introduction

Alpaca API Examples

Table of Contents

Overview

Alpaca is a technology company that offers various services related to stock and crypto trading. They provide simple, modern API-first solutions for individuals and businesses to connect applications and build algorithms to buy and sell stocks or crypto.

Alpaca-py provides an interface for interacting with the API products Alpaca offers. These API products are provided as various REST, WebSocket and SSE endpoints that allow you to do everything from streaming market data to creating your own investment apps.

Setup

Setup - Requirements Install:

For this particular project, you only need to install the dependencies, to use the project. The dependencies are listed in the requirements.txt file and can be installed by running the following command:

pip install -r requirements.txt

After running that command, the dependencies should be installed.

Example Files

Market Data:

  • use_crypto.py
    • Demonstrates how to use the CryptoHistoricalData service from the Alpaca API.
  • use_news.py
    • Demonstrates how to use the NewsRequest service from the Alpaca API.
  • use_screener.py
    • Demonstrates how to use the ScreenerClient service from the Alpaca API.
  • use_stocks.py
    • Demonstrates how to use the StockHistoricalData service from the Alpaca API.

Trading:

  • use_accounts.py
    • Demonstrates how to use the TradingClient to get the account and account configurations.
  • use_assets.py
    • Demonstrates how to use the TradingClient to get asset information.
  • use_corporate_accouncements.py
    • Demonstrates how to use the TradingClient to get corporate announcements.
  • use_orders.py
    • Demonstrates how to use the TradingClient to create, submit, delete, query, and replace orders.

Support These Projects

Patreon: Help support this project and future projects by donating to my Patreon Page. I'm always looking to add more content for individuals like yourself, unfortuantely some of the APIs I would require me to pay monthly fees.

YouTube: If you'd like to watch more of my content, feel free to visit my YouTube channel Sigma Coding.

alpaca-examples's People

Contributors

areed1192 avatar

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.