internal

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RestAPIBaseURI Trade Republic's REST API base URI.
	RestAPIBaseURI = "https://api.traderepublic.com/api/v1"

	// WebsocketBaseHost Trade Republic's websocket base host.
	WebsocketBaseHost = "api.traderepublic.com"

	// HTTPUserAgent used for all HTTP communications.
	HTTPUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) " +
		"AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15"

	// CookieNamePrefix prefix used by Trade Republic for its auth cookies.
	CookieNamePrefix = "tr_"

	// SessionRefreshInterval represents in how many seconds session has to be refreshed to keep it alive.
	SessionRefreshInterval = 60

	// ResponseActionTypeTimelineDetail represents the value the app will look for in order to determine
	// if any details can be fetched.
	ResponseActionTypeTimelineDetail = "timelineDetail"

	// CSVFilename filename under which a CSV file with transaction entries has to be saved.
	CSVFilename = "./transactions.csv"

	// TransactionDocumentsBaseDir base directory under which downloaded transaction documents are saved.
	TransactionDocumentsBaseDir = "./documents/transactions"

	// ActivityLogDocumentsBaseDir base directory under which downloaded activity documents are saved.
	ActivityLogDocumentsBaseDir = "./documents/activity"
)

Variables

This section is empty.

Functions

func GetRuntimeTimezone

func GetRuntimeTimezone(logger *log.Logger) error

Types

type DateTime

type DateTime struct {
	time.Time
}

func (*DateTime) MarshalCSV

func (date *DateTime) MarshalCSV() (string, error)

func (*DateTime) UnmarshalCSV

func (date *DateTime) UnmarshalCSV(csv string) error

type OperationCounter added in v0.11.0

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

func NewOperationCounter added in v0.11.0

func NewOperationCounter() *OperationCounter

func (*OperationCounter) Processed added in v0.11.0

func (c *OperationCounter) Processed() *atomic.Uint64

func (*OperationCounter) Skipped added in v0.11.0

func (c *OperationCounter) Skipped() *atomic.Uint64

Directories

Path Synopsis
Package filesystem is a generated GoMock package.
Package filesystem is a generated GoMock package.
Package reader is a generated GoMock package.
Package reader is a generated GoMock package.
traderepublc
api
api/auth
Package auth is a generated GoMock package.
Package auth is a generated GoMock package.
api/timeline/activitylog
Package activitylog is a generated GoMock package.
Package activitylog is a generated GoMock package.
api/timeline/details
Package details is a generated GoMock package.
Package details is a generated GoMock package.
api/timeline/transactions
Package transactions is a generated GoMock package.
Package transactions is a generated GoMock package.
portfolio/document
Package document is a generated GoMock package.
Package document is a generated GoMock package.
portfolio/instrument
Package instrument is a generated GoMock package.
Package instrument is a generated GoMock package.
portfolio/transaction
Package transaction is a generated GoMock package.
Package transaction is a generated GoMock package.

Jump to

Keyboard shortcuts

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