{"id":26951849,"url":"https://github.com/ohkashi/efxmfc-go","last_synced_at":"2026-05-17T08:31:53.619Z","repository":{"id":211493180,"uuid":"728289569","full_name":"ohkashi/efxmfc-go","owner":"ohkashi","description":"a go wrapper for eFriend Expert Host DLL 한국투자증권","archived":false,"fork":false,"pushed_at":"2023-12-17T09:51:44.000Z","size":3121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-17T12:15:53.928Z","etag":null,"topics":["efriend-expert","openapi","trading"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ohkashi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-06T16:17:43.000Z","updated_at":"2023-12-17T09:46:46.000Z","dependencies_parsed_at":"2023-12-16T11:21:48.301Z","dependency_job_id":"ada74eac-f46e-4348-a5b5-7ad2d6754c00","html_url":"https://github.com/ohkashi/efxmfc-go","commit_stats":null,"previous_names":["ohkashi/efxmfc-go"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ohkashi/efxmfc-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohkashi%2Fefxmfc-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohkashi%2Fefxmfc-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohkashi%2Fefxmfc-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohkashi%2Fefxmfc-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohkashi","download_url":"https://codeload.github.com/ohkashi/efxmfc-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohkashi%2Fefxmfc-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["efriend-expert","openapi","trading"],"created_at":"2025-04-03T00:17:53.772Z","updated_at":"2026-05-17T08:31:53.594Z","avatar_url":"https://github.com/ohkashi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"true_friend.png\"\u003e\n\n# efxmfc-go\na go wrapper for [`EfxMfc`](https://github.com/ohkashi/EfxMfc)  \n한국투자증권 `eFriend Expert` Host DLL을 위한 Go 패키지\n\n[![Licence](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\n### Example\n\nThis is a simple request tr and realdata. ([efx-console](https://github.com/ohkashi/efxMfc-go/blob/main/examples/efx-console/main.go))\n\n```go\npackage main\n\nimport (\n    efx \"efxmfc\"\n    \"fmt\"\n    \"os\"\n    \"syscall\"\n    \"time\"\n)\n\n...\n\nfunc main() {\n    acc_cnt := efx.GetAccountCount()\n    fmt.Printf(\"AccountCount: %d\\n\", acc_cnt)\n    for i := 0; i \u003c acc_cnt; i++ {\n        acnt_no := efx.GetAccount(i)\n        fmt.Printf(\"Account[%d]: %s, %s\\n\", i, acnt_no, efx.GetAccountBrcode(acnt_no))\n    }\n    efx1 := efx.NewControl(100, OnRecvData, OnRecvRealData, OnRecvError)\n\n    var pwd string\n    fmt.Print(\"Enter Password: \")\n    fmt.Scanln(\u0026pwd)\n    wait_time := time.Now()\n    if len(pwd) == 4 {\n        fmt.Printf(\"Encrypt: %s\\n\\n\", efx.GetEncryptPassword(pwd))\n        sync_time := efx.Synchonize(efx.REQ_LIMIT_MS)\n        fmt.Printf(\"Synchonize() elapsed time: %v, sync time: %dms\\n\",\n            time.Since(wait_time), sync_time)\n        efx.RequestAccountBalance(efx1, efx.GetAccount(acc_cnt-1), pwd)\n        wait_time = time.Now()\n        wait_recv_data()\n    }\n    fmt.Println()\n\n    go func() {\n        stock_code := []string{\"254120\", \"081000\", \"005930\", \"294090\", \"149950\", \"052670\", \"078940\"}\n        for _, code := range stock_code {\n            sync_time := efx.Synchonize(efx.REQ_LIMIT_MS)\n            fmt.Printf(\"Synchonize() elapsed time: %v, sync time: %dms\\n\",\n                time.Since(wait_time), sync_time)\n            efx.SetSingleData(efx1, 0, \"J\")\n            efx.SetSingleData(efx1, 1, code)\n            efx.RequestData(efx1, \"SCP\", code)\n            wait_time = time.Now()\n            wait_recv_data()\n        }\n\n        var real_code string\n        for _, code := range stock_code {\n            str := code + \"   \"\n            real_code += str\n        }\n        efx.RequestRealData(efx1, \"SC_R\", real_code)\n        fmt.Printf(\"--\u003e RequestRealData(\\\"SC_R\\\", \\\"%s\\\")\\n\", real_code)\n    }()\n\n    //efx.Quit(0)\n    efx.MessageLoop()\n    efx.Exit()\n}\n```\n\n[walk-chart](https://github.com/ohkashi/efxMfc-go/blob/main/examples/walk-chart/walk-chart.go)\n\n![walk-chart](https://github.com/ohkashi/efxMfc-go/blob/main/examples/walk-chart.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohkashi%2Fefxmfc-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohkashi%2Fefxmfc-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohkashi%2Fefxmfc-go/lists"}