Skip to content

clients.liquid #

export CMCKEY=92be9b29-7f6c-48e4-9ef2-d6aa0550f620

TODO:! needs to check it works, if needed fix

fn new #

fn new(args LiquidArgs) !LiquidConnection

fn (LiquidConnection) token_price_usdt #

fn (mut h LiquidConnection) token_price_usdt() !f64

fn (LiquidConnection) token_price_btc #

fn (mut h LiquidConnection) token_price_btc() !f64

struct LiquidArgs #

struct LiquidArgs {
pub mut:
	secret        string
	cache_timeout int
}