DpExchangeCore

⚠️ EXPERIMENTAL — read this before depending on it

This package has never run in production anywhere. It is published early and openly so it can be used and reported on, not because it is finished.

Divergences, surprises and outright breakage are all worth reporting: open an issue.

The shared contract for the DpExchange family of exchange adapters: behaviours, value types, canonical-pair normalisation, and the conformance suite every venue package must pass.

This package on its own talks to no exchange. It defines what a venue package is, so that a consumer can drive any venue through one identical facade and add a new one without editing anything outside its own repo.

The family

PackageVenueStatus
dp_exchange_core— the contractexperimental
dp_exchange_coinbaseCoinbasenot yet published
dp_exchange_geminiGemininot yet published
dp_exchange_webullWebullnot yet published
dp_exchange_robinhoodRobinhoodnot yet published
dp_exchange_schwabCharles Schwabnot yet published

Every package shares the DpExchange.* module namespace, which dp_exchange_core owns. dp_exchange_binance and dp_exchange_kraken are reserved names with no implementation — see the idea doc for why, and for what picking either up would take.

Installation

def deps do
[
{:dp_exchange_core, "~> 0.1.0"}
]
end

Pin all three segments. While this is 0.x a minor bump may break you, and that is the signal it is meant to send.

Usage

Consumers do not use this package directly — they depend on a venue package, which depends on this one. See that package's usage-rules.md.

Implementers of a venue package start at DpExchange.Core.Venue (the facade every package exposes) and DpExchange.Core.AdapterContract (the suite that proves it).

Supervision

This library does not start itself. Venue packages expose child_spec/1 and are supervised by you — nothing opens a socket because a dependency was compiled in.

License

MIT. See LICENSE.