lovebug356/elm-crypto-com-exchange/1.0.0

NOTE: the latest version is 2.0.0

CryptoComExchange.Api

This module provides a REST API to the crypto.com exchange.

Public API

-> Maybe InstrumentName
-> ResponseHandler (List Trade) msg

Fetches the public trades for a particular instrument

getTickerList : Configuration -> ResponseHandler (List Ticker) msg

Fetches the public tickers for all instruments.

getTicker : Configuration -> InstrumentName -> ResponseHandler Ticker msg

Fetches the public tickers for an instrument (e.g. BTC_USDT).

-> ResponseHandler Candlestick msg

Retrieves candlesticks (k-line data history) over a given period for an instrument (e.g. BTC_USDT)

getInstruments : Configuration -> ResponseHandler (List Instrument) msg

Provides information on all supported instruments (e.g. BTC_USDT)

Private API

getAccountSummary : PrivateConfiguration -> ResponseHandler (List Account) msg

Returns the account balance of a user for a particular token

PrivateConfiguration
-> LimitOrderRequest
-> ResponseHandler OrderReference msg

Creates a new BUY or SELL order on the Exchange.

PrivateConfiguration
-> ResponseHandler () msg

Cancels an existing order on the Exchange (asynchronous)