glupbit/quotation/market

Trading pair listing — GET /market/all.

Types

Specific caution flags for a trading pair.

pub type MarketCaution {
  MarketCaution(
    price_fluctuations: Bool,
    trading_volume_soaring: Bool,
    deposit_amount_soaring: Bool,
    global_price_differences: Bool,
    concentration_of_small_accounts: Bool,
  )
}

Constructors

  • MarketCaution(
      price_fluctuations: Bool,
      trading_volume_soaring: Bool,
      deposit_amount_soaring: Bool,
      global_price_differences: Bool,
      concentration_of_small_accounts: Bool,
    )

Market event warnings and caution indicators.

pub type MarketEvent {
  MarketEvent(warning: Bool, caution: MarketCaution)
}

Constructors

A trading pair listed on Upbit.

pub type TradingPair {
  TradingPair(
    market: String,
    korean_name: String,
    english_name: String,
    market_event: option.Option(MarketEvent),
  )
}

Constructors

Values

pub fn list_all(
  c: client.PublicClient,
) -> Result(types.ApiResponse(List(TradingPair)), types.ApiError)

List all trading pairs.

pub fn list_all_detailed(
  c: client.PublicClient,
) -> Result(types.ApiResponse(List(TradingPair)), types.ApiError)

List all trading pairs with detailed market event info.

pub fn trading_pair_decoder() -> decode.Decoder(TradingPair)

Decoder for a TradingPair JSON object.

Search Document