CCXT.Signing.Custom (ccxt_client v0.6.1)

Copy Markdown View Source

Custom signing escape hatch for exchanges with non-standard authentication.

Delegates to a user-provided module that implements CCXT.Signing.Behaviour.

Configuration

signing: %{
  pattern: :custom,
  custom_module: MyApp.CustomSigners.MyExchange
}

Validation

{:ok, _} = CCXT.Signing.Custom.validate_module(MyApp.CustomSigners.MyExchange)

See CCXT.Signing.Behaviour for the full contract and available helpers.

Summary

Functions

Delegates signing to the custom module specified in config.

Validates that a module implements the signing contract (sign/3).

Functions

sign(request, credentials, config)

Delegates signing to the custom module specified in config.

Raises ArgumentError if :custom_module is not specified or invalid.

validate_module(module)

@spec validate_module(module()) :: {:ok, module()} | {:error, String.t()}

Validates that a module implements the signing contract (sign/3).

Returns {:ok, module} if the module exports sign/3, or {:error, reason} with an actionable message.