Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountConfig ¶
type AccountConfig struct {
Name string `yaml:"name"`
Broker string `yaml:"broker"` // currently supported: broker.CodeKIS, broker.CodeKiwoom
Sandbox bool `yaml:"sandbox"`
AppKey string `yaml:"app_key"`
AppSecret string `yaml:"app_secret"`
AccountID string `yaml:"account_id"`
}
AccountConfig represents a broker account configuration
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Storage StorageConfig `yaml:"storage,omitempty"`
KISProxy KISProxyConfig `yaml:"kis_proxy,omitempty"`
Accounts []AccountConfig `yaml:"accounts,omitempty"`
}
Config represents the application configuration
type KISProxyConfig ¶ added in v0.16.0
type KISProxyConfig struct {
RateLimit KISProxyRateLimitConfig `yaml:"rate_limit,omitempty"`
}
KISProxyConfig represents KIS proxy behavior.
type KISProxyRateLimitConfig ¶ added in v0.16.0
type KISProxyRateLimitConfig struct {
Enabled *bool `yaml:"enabled,omitempty"`
RequestsPerSecond float64 `yaml:"requests_per_second,omitempty"`
Burst int `yaml:"burst,omitempty"`
Overrides []KISProxyRateLimitOverrideConfig `yaml:"overrides,omitempty"`
}
KISProxyRateLimitConfig limits outbound KIS upstream calls from the proxy.
type KISProxyRateLimitOverrideConfig ¶ added in v0.16.1
type KISProxyRateLimitOverrideConfig struct {
Path string `yaml:"path,omitempty"`
TRID string `yaml:"tr_id,omitempty"`
RequestsPerSecond float64 `yaml:"requests_per_second,omitempty"`
Burst int `yaml:"burst,omitempty"`
}
KISProxyRateLimitOverrideConfig applies a stricter limit to selected KIS proxy endpoints.
type ServerConfig ¶
ServerConfig represents server configuration
type StorageConfig ¶
type StorageConfig struct {
TokenDir string `yaml:"token_dir"`
OrderContextDir string `yaml:"order_context_dir"`
}
StorageConfig represents local persistence paths.
Click to show internal directories.
Click to hide internal directories.