lib/tai/venue_adapters/deribit.ex

defmodule Tai.VenueAdapters.Deribit do
  alias Tai.VenueAdapters.Deribit.{
    StreamSupervisor,
    Products,
    Accounts,
    Positions
  }

  @behaviour Tai.Venues.Adapter

  def stream_supervisor, do: StreamSupervisor
  defdelegate products(venue_id), to: Products
  defdelegate accounts(venue_id, credential_id, credentials), to: Accounts
  def maker_taker_fees(_, _, _), do: {:ok, nil}
  defdelegate positions(venue_id, credential_id, credentials), to: Positions
  def create_order(_order, _credentials), do: {:error, :not_implemented}
  def amend_order(_order, _attrs, _credentials), do: {:error, :not_implemented}
  def amend_bulk_orders(_orders_with_attrs, _credentials), do: {:error, :not_supported}
  def cancel_order(_order, _credentials), do: {:error, :not_implemented}
end