Packages

Elixir client for Interactive Brokers' Client Portal API

Current section

Files

Jump to
ibkr_api mix.exs
Raw

mix.exs

defmodule IbkrApi.MixProject do
use Mix.Project
@source_url "https://github.com/MikaAK/ibkr_api"
@version "0.1.1"
@description "Elixir client for Interactive Brokers' Client Portal API"
def project do
[
app: :ibkr_api,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: @description,
package: package(),
docs: docs(),
source_url: @source_url
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {IbkrApi.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:finch, "~> 0.16"},
{:proper_case, "~> 1.3"},
{:error_message, "~> 0.3"},
{:jason, "~> 1.4"},
{:ex_doc, "~> 0.29", only: :dev, runtime: false}
]
end
defp package do
[
maintainers: ["Mika Kalathil"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib .formatter.exs mix.exs README.md LICENSE)
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
extras: [
"README.md",
"guides/tutorials/getting_started.md",
"guides/tutorials/authentication.md",
"guides/how-to/account_management.md",
"guides/how-to/trading.md",
"guides/reference/api_reference.md",
"guides/explanations/architecture.md"
],
groups_for_extras: [
Tutorials: ~r/guides\/tutorials\/.?/,
"How-To Guides": ~r/guides\/how-to\/.?/,
Reference: ~r/guides\/reference\/.?/,
Explanation: ~r/guides\/explanations\/.?/
],
groups_for_modules: [
"Client Portal": [
IbkrApi.ClientPortal.Auth,
IbkrApi.ClientPortal.Account,
IbkrApi.ClientPortal.Contract,
IbkrApi.ClientPortal.Order,
IbkrApi.ClientPortal.Profile,
IbkrApi.ClientPortal.Trade
],
"Core": [
IbkrApi,
IbkrApi.Application,
IbkrApi.Config,
IbkrApi.HTTP
]
]
]
end
end