Packages

Generic, exchange-agnostic paper trading and simulated-execution engine for Elixir. Pure functional core: portfolio state, execution attempts, positions, and orders. No HTTP, no database, no Polymarket dependency.

Current section

Files

Jump to
paper_ex mix.exs
Raw

mix.exs

defmodule PaperEx.MixProject do
use Mix.Project
@version "0.8.0"
@source_url "https://github.com/mdon/paper_ex"
def project do
[
app: :paper_ex,
version: @version,
elixir: "~> 1.18",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
name: "PaperEx",
source_url: @source_url
]
end
def application do
[
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp description do
"Generic, exchange-agnostic paper trading and simulated-execution engine for Elixir. " <>
"Pure functional core: portfolio state, execution attempts, positions, and orders. " <>
"No HTTP, no database, no Polymarket dependency."
end
defp package do
# `AGENTS.md` and `PACKAGE_PLAN.md` are intentionally excluded:
# internal AI/dev-process planning notes that are not authoritative
# for users of the library.
[
licenses: ["MIT"],
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md),
links: %{
"GitHub" => @source_url
}
]
end
defp docs do
[
main: "PaperEx",
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
defp deps do
# Phase 1 (scaffold) keeps deps minimal. The package is a pure
# functional core: structs and (later) state transitions. No HTTP,
# no database, no JSON serialization yet — `:jason` will be
# reintroduced if/when serialization helpers land.
[
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
end