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/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36" // 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 = 120 // ResponseActionTypeTimelineDetail represents the value the app will look for in order to determine // if any details can be fetched. ResponseActionTypeTimelineDetail = "timelineDetail" // ResponseTimeFormat represents the default date time format in the response. ResponseTimeFormat = "2006-01-02T15:04:05-0700" // ResponseTimeFormatAlt represents the alternative date time format in the response. ResponseTimeFormatAlt = time.RFC3339Nano // 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 ¶
Types ¶
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/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. |
Click to show internal directories.
Click to hide internal directories.