ExOanda.CloseoutUnits (ExOanda v0.2.3)

Copy Markdown View Source

Custom Ecto type for representing the position closeout units, which can be a float (representing the number of units) or a string ("ALL" or "NONE").

Summary

Functions

Callback implementation for Ecto.Type.cast/1.

Callback implementation for Ecto.Type.dump/1.

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Callback implementation for Ecto.Type.load/1.

Callback implementation for Ecto.Type.type/0.

Types

t()

@type t() :: String.t() | float()

Functions

cast(value)

Callback implementation for Ecto.Type.cast/1.

dump(value)

Callback implementation for Ecto.Type.dump/1.

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.

load(value)

Callback implementation for Ecto.Type.load/1.

type()

Callback implementation for Ecto.Type.type/0.