glupbit/quotation/ticker
Current price snapshots — GET /ticker and GET /ticker/all.
Types
Current price snapshot for a trading pair.
pub type Ticker {
Ticker(
market: String,
trade_date: String,
trade_time: String,
trade_date_kst: String,
trade_time_kst: String,
trade_timestamp: Int,
opening_price: Float,
high_price: Float,
low_price: Float,
trade_price: Float,
prev_closing_price: Float,
change: String,
change_price: Float,
change_rate: Float,
signed_change_price: Float,
signed_change_rate: Float,
trade_volume: Float,
acc_trade_price: Float,
acc_trade_price_24h: Float,
acc_trade_volume: Float,
acc_trade_volume_24h: Float,
highest_52_week_price: Float,
highest_52_week_date: String,
lowest_52_week_price: Float,
lowest_52_week_date: String,
timestamp: Int,
)
}
Constructors
-
Ticker( market: String, trade_date: String, trade_time: String, trade_date_kst: String, trade_time_kst: String, trade_timestamp: Int, opening_price: Float, high_price: Float, low_price: Float, trade_price: Float, prev_closing_price: Float, change: String, change_price: Float, change_rate: Float, signed_change_price: Float, signed_change_rate: Float, trade_volume: Float, acc_trade_price: Float, acc_trade_price_24h: Float, acc_trade_volume: Float, acc_trade_volume_24h: Float, highest_52_week_price: Float, highest_52_week_date: String, lowest_52_week_price: Float, lowest_52_week_date: String, timestamp: Int, )
Values
pub fn get_all_tickers(
c: client.PublicClient,
quote_currencies currencies: List(String),
) -> Result(types.ApiResponse(List(Ticker)), types.ApiError)
Get all tickers filtered by quote currency (e.g., "KRW", "BTC").
pub fn get_tickers(
c: client.PublicClient,
markets markets: List(types.Market),
) -> Result(types.ApiResponse(List(Ticker)), types.ApiError)
Get tickers for specific trading pairs.