koreainvestment

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 6 Imported by: 0

README

Korea investment APIs

Development tip

  • The server may not respond. Do not panic() when response is EOF.
  • The server may not response because of network issue. Use retry pattern

TODOs

  • Instead of panic(), return an error.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultAccount

func GetDefaultAccount() ki.KoreaInvestmentAccount

func GetDefaultKoreaInvestmentInstance

func GetDefaultKoreaInvestmentInstance() *ki.KoreaInvestment

func Initialize

func Initialize(url, applicationKey, applicationSecret string, account ki.KoreaInvestmentAccount)

Types

type ApiInqueryPrice

type ApiInqueryPrice struct {
}

func (ApiInqueryPrice) Call

func (api ApiInqueryPrice) Call(iscd string) string

type InqueryPriceResponse

type InqueryPriceResponse struct {
	AccessToken string `json:"msg1"`
	Output      output `json:"output"`
}

Jump to

Keyboard shortcuts

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