Documentation
¶
Index ¶
- Constants
- func AboutBox()
- func ExecCmd(cmd_arg string, wait_time uint32) string
- func Exit()
- func FormatNumber(N interface{}) (string, error)
- func GetAccount(idx int) string
- func GetAccountBrcode(acnt_no string) string
- func GetAccountCount() int
- func GetEncryptPassword(pwd string) string
- func GetMultiBlockCount(h syscall.Handle) int
- func GetMultiData(h syscall.Handle, n ...int) string
- func GetMultiDataFloat(h syscall.Handle, n ...int) float32
- func GetMultiDataInt(h syscall.Handle, n ...int) int
- func GetMultiFieldCount(h syscall.Handle, block_idx int, rec_idx int) int
- func GetMultiRecordCount(h syscall.Handle, block_idx int) int
- func GetRecvRqID(h syscall.Handle) int
- func GetReqMessage(h syscall.Handle) string
- func GetReqMsgCode(h syscall.Handle) string
- func GetRtCode(h syscall.Handle) string
- func GetSendRqID(h syscall.Handle) int
- func GetSingleData(h syscall.Handle, n ...int) string
- func GetSingleDataFloat(h syscall.Handle, n ...int) float32
- func GetSingleDataInt(h syscall.Handle, n ...int) int
- func GetSingleFieldCount(h syscall.Handle) int
- func Init(efx_dir string, sysmsg_cb SysMsgCallback) (err error)
- func IsMoreNextData(h syscall.Handle) bool
- func LaunchApp(file_path string, args string, waitInputIdle bool, waitTerminate bool, ...) syscall.Handle
- func MessageLoop()
- func NewControl(id uint, recv_cb EventCallback, real_cb EventCallback, error_cb EventCallback) syscall.Handle
- func ProcessMessage(millisec uint) int
- func PtrToString(p unsafe.Pointer, max_len int) string
- func Quit(exit_code int)
- func RequestAccountBalance(h syscall.Handle, account string, param ...string)
- func RequestData(h syscall.Handle, qry_name string, param string)
- func RequestNextData(h syscall.Handle, qry_name string)
- func RequestRealData(h syscall.Handle, qry_name string, code string)
- func SetMultiBlockData(h syscall.Handle, block_idx int, rec_idx int, field_idx int, data string)
- func SetMultiData(h syscall.Handle, rec_idx int, field_idx int, data string)
- func SetSingleData(h syscall.Handle, field_idx int, data string)
- func SetSingleDataEx(h syscall.Handle, block_idx int, field_idx int, data string)
- func Synchonize(millisec uint) uint32
- func UnrequestAllRealData(h syscall.Handle)
- func UnrequestRealData(h syscall.Handle, qry_name string, code string)
- type EventCallback
- type InvestInfo
- type MarketType
- type MarketWarning
- type StockMasterInfo
- type StockMasterItem
- func (smi StockMasterItem) BaseDate() string
- func (smi StockMasterItem) Capital() int64
- func (smi StockMasterItem) IsBackdoorListing() bool
- func (smi StockMasterItem) IsClearanceSale() bool
- func (smi StockMasterItem) IsCreditLimtOver() bool
- func (smi StockMasterItem) IsCreditable() bool
- func (smi StockMasterItem) IsETF() bool
- func (smi StockMasterItem) IsInsincerityNotice() bool
- func (smi StockMasterItem) IsLoanable() bool
- func (smi StockMasterItem) IsManagement() bool
- func (smi StockMasterItem) IsMarketWarning() bool
- func (smi StockMasterItem) IsNewListing() bool
- func (smi StockMasterItem) IsStockLoanable() bool
- func (smi StockMasterItem) IsSuspension() bool
- func (smi StockMasterItem) ListingCount() int64
- func (smi StockMasterItem) ListingDate() string
- func (smi StockMasterItem) MarginRate() int
- func (smi StockMasterItem) MarketType() MarketType
- func (smi StockMasterItem) MarketWarnCode() MarketWarning
- func (smi StockMasterItem) ParValue() int
- func (smi StockMasterItem) ROE() float32
- func (smi StockMasterItem) Sales() int
- func (smi StockMasterItem) SeqNo() int
- func (smi StockMasterItem) StockCode() string
- func (smi StockMasterItem) StockName() string
- type SysMsgCallback
Constants ¶
View Source
const REQ_LIMIT_MS uint = 10 // 초당 조회TR 및 주문TR 제한: 20ms 간 5개 TR 이하 호출
Variables ¶
This section is empty.
Functions ¶
func FormatNumber ¶
func GetAccount ¶
func GetAccountBrcode ¶
func GetAccountCount ¶
func GetAccountCount() int
func GetEncryptPassword ¶
func GetMultiBlockCount ¶
func GetRecvRqID ¶
func GetReqMessage ¶
func GetReqMsgCode ¶
func GetSendRqID ¶
func GetSingleFieldCount ¶
func Init ¶
func Init(efx_dir string, sysmsg_cb SysMsgCallback) (err error)
func IsMoreNextData ¶
func MessageLoop ¶
func MessageLoop()
func NewControl ¶
func NewControl(id uint, recv_cb EventCallback, real_cb EventCallback, error_cb EventCallback) syscall.Handle
func ProcessMessage ¶
func RequestAccountBalance ¶
func RequestNextData ¶
func SetMultiBlockData ¶
func SetSingleDataEx ¶
func Synchonize ¶
func UnrequestAllRealData ¶
Types ¶
type InvestInfo ¶
type InvestInfo struct { ROE float32 // 자기자본이익률 // contains filtered or unexported fields }
type MarketWarning ¶
type MarketWarning int32
const ( CODE_NONE MarketWarning = iota CODE_CAUTION CODE_WARNING CODE_DANGER )
type StockMasterInfo ¶
type StockMasterInfo interface { SeqNo() int StockCode() string StockName() string MarketType() MarketType IsETF() bool IsSuspension() bool // 거래정지 IsClearanceSale() bool // 정리매매 IsManagement() bool // 관리종목 MarketWarnCode() MarketWarning // 시장 경고 코드 IsMarketWarning() bool // 경고 예고 여부 IsInsincerityNotice() bool // 불성실 공시 여부 IsBackdoorListing() bool // 우회상장 여부 IsCreditable() bool // 신용주문 가능 MarginRate() int // 증거금 비율 ParValue() int // 액면가 ListingDate() string // 상장 날짜 ListingCount() int64 IsNewListing() bool Capital() int64 Sales() int // 매출액 ROE() float32 BaseDate() string // 기준년월 IsCreditLimtOver() bool IsLoanable() bool // 담보대출가능 여부 IsStockLoanable() bool // 대주가능 여부 }
type StockMasterItem ¶
type StockMasterItem struct {
// contains filtered or unexported fields
}
func FindStockMaster ¶
func FindStockMaster(stock_code string) *StockMasterItem
func FindStockMasterByName ¶
func FindStockMasterByName(stock_name string) *StockMasterItem
func GetStockMasterItem ¶
func GetStockMasterItem(seq_no int32) *StockMasterItem
func (StockMasterItem) BaseDate ¶
func (smi StockMasterItem) BaseDate() string
func (StockMasterItem) Capital ¶
func (smi StockMasterItem) Capital() int64
func (StockMasterItem) IsBackdoorListing ¶
func (smi StockMasterItem) IsBackdoorListing() bool
func (StockMasterItem) IsClearanceSale ¶
func (smi StockMasterItem) IsClearanceSale() bool
func (StockMasterItem) IsCreditLimtOver ¶
func (smi StockMasterItem) IsCreditLimtOver() bool
func (StockMasterItem) IsCreditable ¶
func (smi StockMasterItem) IsCreditable() bool
func (StockMasterItem) IsETF ¶
func (smi StockMasterItem) IsETF() bool
func (StockMasterItem) IsInsincerityNotice ¶
func (smi StockMasterItem) IsInsincerityNotice() bool
func (StockMasterItem) IsLoanable ¶
func (smi StockMasterItem) IsLoanable() bool
func (StockMasterItem) IsManagement ¶
func (smi StockMasterItem) IsManagement() bool
func (StockMasterItem) IsMarketWarning ¶
func (smi StockMasterItem) IsMarketWarning() bool
func (StockMasterItem) IsNewListing ¶
func (smi StockMasterItem) IsNewListing() bool
func (StockMasterItem) IsStockLoanable ¶
func (smi StockMasterItem) IsStockLoanable() bool
func (StockMasterItem) IsSuspension ¶
func (smi StockMasterItem) IsSuspension() bool
func (StockMasterItem) ListingCount ¶
func (smi StockMasterItem) ListingCount() int64
func (StockMasterItem) ListingDate ¶
func (smi StockMasterItem) ListingDate() string
func (StockMasterItem) MarginRate ¶
func (smi StockMasterItem) MarginRate() int
func (StockMasterItem) MarketType ¶
func (smi StockMasterItem) MarketType() MarketType
func (StockMasterItem) MarketWarnCode ¶
func (smi StockMasterItem) MarketWarnCode() MarketWarning
func (StockMasterItem) ParValue ¶
func (smi StockMasterItem) ParValue() int
func (StockMasterItem) ROE ¶
func (smi StockMasterItem) ROE() float32
func (StockMasterItem) Sales ¶
func (smi StockMasterItem) Sales() int
func (StockMasterItem) SeqNo ¶
func (smi StockMasterItem) SeqNo() int
func (StockMasterItem) StockCode ¶
func (smi StockMasterItem) StockCode() string
func (StockMasterItem) StockName ¶
func (smi StockMasterItem) StockName() string
Click to show internal directories.
Click to hide internal directories.