Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reetou/tinkoff-invest-elixir
Unofficial Tinkoff Invest SDK for Elixir
https://github.com/reetou/tinkoff-invest-elixir
elixir stonks tinkoff tinkoff-invest
Last synced: about 1 month ago
JSON representation
Unofficial Tinkoff Invest SDK for Elixir
- Host: GitHub
- URL: https://github.com/reetou/tinkoff-invest-elixir
- Owner: reetou
- License: mit
- Created: 2021-02-06T00:12:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T10:08:53.000Z (almost 4 years ago)
- Last Synced: 2024-11-29T10:26:40.772Z (about 1 month ago)
- Topics: elixir, stonks, tinkoff, tinkoff-invest
- Language: Elixir
- Homepage: https://hex.pm/packages/tinkoff_invest
- Size: 83 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![Stonks](https://i.imgur.com/xkNPyqU.jpg)
# TinkoffInvest
TinkoffInvest SDK Elixir programming language.
REST клиент для Тинькофф.Инвестиций на Elixir.
## Installation
The package can be installed
by adding `tinkoff_invest` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:tinkoff_invest, "~> 0.2"}
]
end
```## Configuration
```elixir
config :tinkoff_invest,
token: "MYTOKEN",
broker_account_id: "123",
mode: :production # You can also use :sandbox for Sandbox mode (:production by default)
# Tokens and account ids are different depending on your mode
```## Example
Get stonks
```elixir
TinkoffInvest.Market.stocks()
|> TinkoffInvest.payload()
|> Enum.map(fn %TinkoffInvest.Model.Instrument{figi: figi} ->
IO.inspect(figi, label: "Stock FIGI: ")
end)
```See `TinkoffInvest` module for more details
Documentation: [https://hexdocs.pm/tinkoff_invest](https://hexdocs.pm/tinkoff_invest).