Documentation
¶
Overview ¶
Package tinvest holds shared primitives for the T-Invest (Tinkoff Investments) API clients: endpoint constants and the x-app-name value (AppName).
The transport clients live in sub-packages so importing this package stays dependency-light: github.com/acidsailor/tinvest/grpc provides the gRPC client (NewConn / NewClient), and github.com/acidsailor/tinvest/rest provides the REST gateway client. Each transport owns its own typed *ConfigError for invalid construction input — there are no sentinel errors. Financial values are converted via the github.com/acidsailor/tinvest/money package.
Index ¶
Constants ¶
View Source
const ( // AppName is the default x-app-name header value identifying this client library. AppName = "github.com/acidsailor/tinvest" // EndpointProduction is the T-Invest live trading API endpoint. EndpointProduction = "invest-public-api.tinkoff.ru:443" // EndpointSandbox is the T-Invest sandbox API endpoint for testing without real money. EndpointSandbox = "sandbox-invest-public-api.tinkoff.ru:443" // EndpointProductionREST is the T-Invest REST gateway (live trading). EndpointProductionREST = "https://" + EndpointProduction + "/rest" // EndpointSandboxREST is the T-Invest REST gateway sandbox. EndpointSandboxREST = "https://" + EndpointSandbox + "/rest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package money provides protobuf-free conversions between T-Invest units/nano money values (int64 units + int32 nano-billionths) and udecimal.Decimal, plus sign handling and display formatting.
|
Package money provides protobuf-free conversions between T-Invest units/nano money values (int64 units + int32 nano-billionths) and udecimal.Decimal, plus sign handling and display formatting. |
|
Package rest error types are the shared restkit types, re-exported as aliases so callers match them with errors.As without importing restkit:
|
Package rest error types are the shared restkit types, re-exported as aliases so callers match them with errors.As without importing restkit: |
|
Package spec embeds the dereferenced T-Invest OpenAPI document used by the MCP server to assemble per-tool JSON schemas.
|
Package spec embeds the dereferenced T-Invest OpenAPI document used by the MCP server to assemble per-tool JSON schemas. |
Click to show internal directories.
Click to hide internal directories.