Sam Fredrickson
83fd89446d
All checks were successful
Build & Test / Main (push) Successful in 1m20s
30 lines
567 B
Go
30 lines
567 B
Go
package coindesk_test
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
|
|
"code.humancabbage.net/sam/moonmath/coindesk"
|
|
)
|
|
|
|
func TestXxx(t *testing.T) {
|
|
now := time.Now()
|
|
then := now.Add(time.Duration(-24) * time.Hour)
|
|
|
|
values, err := coindesk.GetPriceValues(context.Background(), coindesk.BTC, then, now)
|
|
if err != nil {
|
|
t.Errorf("test failure: %v", err)
|
|
}
|
|
_ = values
|
|
fmt.Println()
|
|
|
|
tickers, err := coindesk.GetAssetTickers(context.Background(), coindesk.BTC, coindesk.ETH)
|
|
if err != nil {
|
|
t.Errorf("test failure: %v", err)
|
|
}
|
|
_ = tickers
|
|
fmt.Println()
|
|
}
|