AlpacaElixir v0.6.0 Alpaca.Last.Trade View Source

A resource that allows us to query for the last trade of a symbol

A last trade has the following methods we can call on it

get/1

The get/1 method allows us to get a singular last trade for a given symbol by calling Alpaca.Last.Trade.get(symbol). Where symbol is the stock symbol you want to retrieve last trade information for.

Link to this section Summary

Functions

A function to get a singlular resource from the Alpaca API

Link to this section Functions

Specs

get(String.t(), map()) :: {:ok, map()} | {:error, map()}

A function to get a singlular resource from the Alpaca API