Documentation ¶
Index ¶
Constants ¶
View Source
const ( BTC_USD_PRICE = 50000 ETH_USD_PRICE = 4000 SOL_USD_PRICE = 100 )
Fixed prices for BTC-USD, ETH-USD, SOL-USD
Variables ¶
View Source
var ( TestFixedPriceExchangeParams = FixedPriceExchangeParams{ BTCUSDPrice: BTC_USD_PRICE, ETHUSDPrice: ETH_USD_PRICE, SOLUSDPrice: SOL_USD_PRICE, } TestFixedPriceExchangeDetails = types.ExchangeQueryDetails{ Exchange: exchange_common.EXCHANGE_ID_TEST_FIXED_PRICE_EXCHANGE, Url: "https://jsonplaceholder.typicode.com/users", PriceFunction: FixedExchangePriceFunction, IsMultiMarket: false, } )
Functions ¶
Types ¶
type FixedPriceTicker ¶
func (FixedPriceTicker) GetAskPrice ¶
func (t FixedPriceTicker) GetAskPrice() string
func (FixedPriceTicker) GetBidPrice ¶
func (t FixedPriceTicker) GetBidPrice() string
func (FixedPriceTicker) GetLastPrice ¶
func (t FixedPriceTicker) GetLastPrice() string
func (FixedPriceTicker) GetPair ¶
func (t FixedPriceTicker) GetPair() string
Click to show internal directories.
Click to hide internal directories.