BinanceElixir.Spot.Reconciliation (binance_elixir v0.2.1)

Copy Markdown View Source

Submits a Spot order once and reconciles uncertain results by client order ID.

The caller supplies :persist, a function that durably reserves the unique client order ID before submission. It must refuse duplicate IDs, including after application restarts. An unresolved result must remain reserved.

Summary

Functions

Updates an unresolved result with a matching executionReport event.

Functions

observe(lifecycle, event)

@spec observe(map(), map()) :: map()

Updates an unresolved result with a matching executionReport event.

submit(client, symbol_info, params, opts \\ [])

@spec submit(BinanceElixir.t(), map(), map() | keyword(), keyword()) ::
  {:ok, map()} | {:error, map()}