Generated Binance CCXT Pro target.
This module is generated from ts/src/pro/binance.ts; do not edit the
generated Elixir file by hand. Public method coverage, source spans, IR
lowering status, runtime-owned contracts, and test evidence are recorded in
lib/ccxt/pro_manifest.json.
The target supports both stateless calls and CCXT-style instance calls:
binance =
Ccxt.Pro.binance(%{
apiKey: "...",
secret: "...",
binanceEnv: "prod",
options: %{recvWindow: 5_000}
})
{:ok, ticker} = Ccxt.Pro.Binance.watch_ticker(binance, "BTC/USDT")watch_* methods follow CCXT Pro semantics: each call waits for the next
matching websocket message and returns {:ok, value} or {:error, reason}.
The subscription remains active on the shared websocket connection after a
successful call.
Elixir stream_* helpers repeatedly call the generated watch_* methods and
return an Enumerable. For public streams, pass unwatch_on_halt: true when
the enumerable should send the matching Binance unsubscribe request as it
halts.
Private websocket API methods use explicit instance credentials, per-call
:api_key / :api_secret, or environment-specific Pro credentials such as
BINANCE_PROD_API_KEY and BINANCE_PROD_API_SECRET. Production, testnet,
and demo credentials are intentionally separate.
Summary
Types
Functions
@spec describe() :: map()
@spec describe_data() :: map()
@spec stream_balance(keyword()) :: Enumerable.t()
@spec stream_my_trades(String.t() | nil, integer() | nil, integer() | nil, keyword()) :: Enumerable.t()
@spec stream_order_book(String.t(), integer() | nil, keyword()) :: Enumerable.t()
@spec stream_orders(String.t() | nil, integer() | nil, integer() | nil, keyword()) :: Enumerable.t()
@spec stream_positions( [String.t()] | nil, integer() | nil, integer() | nil, keyword() ) :: Enumerable.t()
@spec stream_ticker( String.t(), keyword() ) :: Enumerable.t()
@spec stream_trades(String.t(), integer() | nil, integer() | nil, keyword()) :: Enumerable.t()