Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jrusso1020 committed Sep 24, 2024
1 parent 33e4814 commit a8539e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# alpaca_elixir [![Coverage Status](https://coveralls.io/repos/github/jrusso1020/alpaca_elixir/badge.svg?branch=master)](https://coveralls.io/github/jrusso1020/alpaca_elixir?branch=master) [![jrusso1020](https://circleci.com/gh/jrusso1020/alpaca_elixir.svg?style=svg)](https://circleci.com/gh/jrusso1020/alpaca_elixir)

An Elixir wrapper for the [Alpaca](https://alpaca.markets/) web api v2 for trading stocks commission free.

## Installation
Expand All @@ -9,7 +10,7 @@ by adding `alpaca_elixir` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:alpaca_elixir, "~> 2.1.0"}
{:alpaca_elixir, "~> 2.2.0"}
]
end
```
Expand All @@ -19,32 +20,37 @@ and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/alpaca_elixir](https://hexdocs.pm/alpaca_elixir).

## Getting Started

### Registration

This library requires a valid Alpaca Client ID and Secret to work. You can get both a Client ID and Secret by creating an account at [Alpaca](https://alpaca.markets/). Once you have created an account you will need to create an OAuth app to get access to a Client ID and Secret.

### Client ID and Secret Configuration

To configure your app to make calls to Alpaca setup your configuration using the proper values like below

```elixir
config :alpaca_elixir,
api_host: System.get_env("ALPACA_API_HOST"),
client_id: System.get_env("ALPACA_CLIENT_ID"),
client_secret: System.get_env("ALPACA_CLIENT_SECRET")
```


## Testing

You can run tests using `mix test` generally

### Testing using Docker Container

If you would like to use the Docker container you can use the following commands in your terminal to build the Docker image, start the container, and start an interactive bash session within the container.

```bash
docker build -t alpaca-elixir .
docker run -it -t alpaca-elixir bash
```

Once you have access to the interactive bash session you should be able to run tests like so.

```bash
mix test
```


2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule AlpacaElixir.MixProject do
def project do
[
app: :alpaca_elixir,
version: "2.1.0",
version: "2.2.0",
elixir: "~> 1.10",
preferred_cli_env: ["coveralls.html": :test],
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit a8539e7

Please sign in to comment.