This module exposes the types used in the API.
{ id : OrderId
, clientId : String
}
Combination of order id and client order id.
{ instrumentName : InstrumentName
, side : OrderSide
, price : String
, quantity : String
}
Information needed to create a limit order.
Side information for an order.
Type information for an order.
Id of an order generated by the exchange.
Interval of the candlesticks.
Name of the instrument as defined by the exchange.
{ balance : Basics.Float
, available : Basics.Float
, order : Basics.Float
, stake : Basics.Float
, currency : String
}
Summary of an account.
{ instrumentName : String
, price : Basics.Float
, quantity : Basics.Float
, side : String
, id : Basics.Int
, timestamp : Time.Posix
}
Information from a trade.
{ timestamp : Basics.Int
, open : Basics.Float
, high : Basics.Float
, low : Basics.Float
, close : Basics.Float
, volume : Basics.Float
}
Single candle information.
{ instrumentName : String
, interval : String
, data : List Candle
}
All data of a candlestick diagram.
{ instrumentName : InstrumentName
, currentBidPrice : Basics.Float
, currentAskPrice : Basics.Float
, priceOfLatestTrade : Basics.Float
, timestamp : Basics.Int
, total24hTradedVolume : Basics.Float
, priceOf24hHighestTrade : Basics.Float
, priceOf24hLowestTrade : Basics.Float
, priceChange24h : Basics.Float
}
Information of a ticker
{ instrumentName : InstrumentName
, baseCurrency : String
, quoteCurrency : String
, priceDecimals : Basics.Int
, quantityDecimals : Basics.Int
, marginTradingEnabled : Basics.Bool
}
Information of an instrument.