binance

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package binance reads a Binance account's history and balances with a read-only API key: deposits and withdrawals, spot trades (delisted pairs included), converts, card and bank purchases, dust conversions, distributions (airdrops, token swaps), Auto-Invest, Simple Earn rewards, ETH/SOL liquid staking, Binance Pay and P2P. Binance is treated as one account: moves between its internal wallets (spot, funding, earn) are not activities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg source.Config) (source.Source, error)

New builds the connector.

Types

type Binance

type Binance struct {
	// contains filtered or unexported fields
}

Binance is a configured connector.

func (*Binance) Activities

func (b *Binance) Activities(ctx context.Context, f source.Fetch) error

func (*Binance) Balances

func (b *Binance) Balances(ctx context.Context) ([]model.Balance, error)

func (*Binance) Import

func (b *Binance) Import(name string, data []byte, existing []model.Activity) (*source.Statement, error)

Import implements source.Importer.

func (*Binance) State

func (b *Binance) State() []byte

func (*Binance) Test

func (b *Binance) Test(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL