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: 4 months 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T10:08:53.000Z (over 4 years ago)
- Last Synced: 2025-03-17T08:54:57.023Z (4 months ago)
- Topics: elixir, stonks, tinkoff, tinkoff-invest
- Language: Elixir
- Homepage: https://hex.pm/packages/tinkoff_invest
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# 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).