glupbit/quotation/trade
Recent trade history — GET /trades/ticks.
Types
A recent trade execution.
pub type Trade {
Trade(
market: String,
trade_date_utc: String,
trade_time_utc: String,
timestamp: Int,
trade_price: Float,
trade_volume: Float,
prev_closing_price: Float,
change_price: Float,
ask_bid: String,
sequential_id: Int,
)
}
Constructors
-
Trade( market: String, trade_date_utc: String, trade_time_utc: String, timestamp: Int, trade_price: Float, trade_volume: Float, prev_closing_price: Float, change_price: Float, ask_bid: String, sequential_id: Int, )
Values
pub fn get_recent_trades(
c: client.PublicClient,
market market: types.Market,
count count: option.Option(Int),
to to: option.Option(String),
cursor cursor: option.Option(String),
days_ago days_ago: option.Option(Int),
) -> Result(types.ApiResponse(List(Trade)), types.ApiError)
Get recent trades for a market.