watch

package
v0.0.0-...-b1d7d69 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestStruct0 = NewReportWatch{
		Ctx: Content{
			Title:    "무상증자 테스트용",
			Link:     "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20220525000375",
			Category: "TEST",
		},
		T: 1,
	}
	TestStruct1 = NewReportWatch{
		Ctx: Content{
			Title:    "유상증자 테스트용",
			Link:     "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20220525000311",
			Category: "TEST",
		},
		T: 2,
	}

	TestStruct2 = NewReportWatch{
		Ctx: Content{
			Title:    "전환사채 테스트용",
			Link:     "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20220525000128",
			Category: "TEST",
		},
		T: 4,
	}

	TestStruct3 = NewReportWatch{
		Ctx: Content{
			Title:    "교환사채 테스트용",
			Link:     "https://dart.fss.or.kr/dsaf001/main.do?rcpNo=20220519000209",
			Category: "TEST",
		},
		T: 5,
	}
)

Functions

func PrettyPrintB

func PrettyPrintB(b BonusIssue, nw NewReportWatch)

func PrettyPrintC

func PrettyPrintC(c ConvertibleIssue, nw NewReportWatch)

func PrettyPrintE

func PrettyPrintE(e ExchangeIssue, nw NewReportWatch)

func PrettyPrintR

func PrettyPrintR(r RightsIssue, nw NewReportWatch)

Types

type BonusIssue

type BonusIssue struct {
	Company      string
	StkPrice     string
	NewStockDist string // distribute n stocks for every 1 stock. 1주당 n개 배분
	ReportDate   time.Time
	LockDate     string // snapShot. 권리락일
}

type ChannelTitle

type ChannelTitle struct {
	Title     string    `xml:"title"`
	Link      string    `xml:"link"`
	Desc      string    `xml:"description"`
	Language  string    `xml:"language"`
	Copyright string    `xml:"copyright"`
	PubDate   string    `xml:"pubDate"`
	Item      []Content `xml:"item"`
}

type Content

type Content struct {
	Title    string `xml:"title"`
	Link     string `xml:"link"`
	Category string `xml:"category"`
	PubDate  string `xml:"pubDate"`
	Creator  string `xml:"dc:creator"`
}

type ConvertibleIssue

type ConvertibleIssue struct {
	Company    string
	ReportDate time.Time
	ConvertPrc string
	Ratio      string
}

type ExchangeIssue

type ExchangeIssue struct {
	Company    string
	ReportDate time.Time
	Rate       string
	Ratio      string
}

type Feed

type Feed struct {
	ChannelInit xml.Name     `xml:"rss"`
	ChannelDet  ChannelTitle `xml:"channel"`
}

type NewReportWatch

type NewReportWatch struct {
	Ctx     Content
	RawUrl  string // url to raw report
	T       int    // report type
	OrgHTML string // original HTML in string
	Rawhtml string // inner HTML in string
}

func Rss

func Rss() ([]NewReportWatch, error)

func (*NewReportWatch) GetDcmNo

func (dartReport *NewReportWatch) GetDcmNo() (string, string)

func (*NewReportWatch) GetRcpNo

func (dartReport *NewReportWatch) GetRcpNo() (string, string)

func (*NewReportWatch) InnerReportURL

func (dartReport *NewReportWatch) InnerReportURL() error

func (*NewReportWatch) OuterReportText

func (dartReport *NewReportWatch) OuterReportText() error

func (*NewReportWatch) Run

func (dartReport *NewReportWatch) Run() interface{}

type ReportMap

type ReportMap map[string]string

type RightsIssue

type RightsIssue struct {
	Company        string
	NewStockPrc    string // 신주발행가액
	BefTotalVolume string // 유상증자 전 총 주식 수
	AftTotalVolume string // 신주의 수
	ReportDate     time.Time
}

Jump to

Keyboard shortcuts

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