service

package
Version: v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BTCBitfinexService = &unison.Service{
	Name:        "btc Bitfinex watcher",
	Description: "real time monitor of Bitfinex btc:usd rate.",
	Action:      BTCBitfinexAction,
	Deactivated: false,
	Data: map[string]string{
		"btc_bitfinex_usd": "? USD",
	},
}

BTCBitfinexService updates the bot status to the latest btc price in usd

Functions

func BTCBitfinexAction

func BTCBitfinexAction(ctx *unison.Context) error

BTCBitfinexAction service action

Types

type BitfinexJSON

type BitfinexJSON struct {
	// https://api.bitfinex.com/v1/pubticker/btcusd
	LastPrice string `json:"last_price"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL