{"id":36485810,"url":"https://github.com/austin-millan/webull-client","last_synced_at":"2026-01-12T01:51:07.038Z","repository":{"id":132431175,"uuid":"277197911","full_name":"austin-millan/webull-client","owner":"austin-millan","description":"A wrapper for the Webull API ","archived":false,"fork":false,"pushed_at":"2023-07-01T05:24:39.000Z","size":526,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T08:07:56.117Z","etag":null,"topics":["api","broker","brokerage","client","library","order","trading","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austin-millan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-04T23:05:32.000Z","updated_at":"2023-07-07T16:36:47.000Z","dependencies_parsed_at":"2024-06-20T07:03:46.103Z","dependency_job_id":"9c79a840-e095-4527-ae2e-1d651ed2d740","html_url":"https://github.com/austin-millan/webull-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/austin-millan/webull-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-millan%2Fwebull-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-millan%2Fwebull-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-millan%2Fwebull-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-millan%2Fwebull-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austin-millan","download_url":"https://codeload.github.com/austin-millan/webull-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austin-millan%2Fwebull-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["api","broker","brokerage","client","library","order","trading","wrapper"],"created_at":"2026-01-12T01:51:06.489Z","updated_at":"2026-01-12T01:51:07.033Z","avatar_url":"https://github.com/austin-millan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webull Client\n\nMaster Pipeline Status: [![pipeline status](https://gitlab.com/brokerage-api/webull-client/badges/master/pipeline.svg)](https://gitlab.com/brokerage-api/webull-client/commits/master)\n\nDev Pipeline Status: [![pipeline status](https://gitlab.com/brokerage-api/webull-client/badges/dev/pipeline.svg)](https://gitlab.com/brokerage-api/webull-client/commits/dev)\n\n## About\n\nA Golang library for the [Webull](https://www.webull.com/) brokerage.\n\n## Example Usage\n\n### Get Authorization\n\nFirst set some environment variables:\n\n```bash\nexport WEBULL_USERNAME='your.email@domain.com'\nexport WEBULL_PASSWORD='SuperStrongPasswerrrdd12345'\nexport WEBULL_PIN='123456'\n```\n\nWebull requires an MFA email when authenticating new devices.\n\nOnce your device has been authorized, you should be able to see device name in your Webull app under \"Settings\" -\u003e \"Two-Factor Authentication\".\n\nNow your subsequent API calls can simply use your device ID and token. Your token is retrieved from using `Client.Login(...)`\nor using the `NewClient` constructor:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\twebull \"gitlab.com/brokerage-api/webull-client/client\"\n\tmodel \"gitlab.com/brokerage-api/webull-client/models\"\n\t\"os\"\n)\n\nfunc main() {\n\t// Authenticate your device\n\tcreds := webull.Credentials{\n\t\tUsername:    os.Getenv(\"WEBULL_USERNAME\"),\n\t\tPassword:    os.Getenv(\"WEBULL_PASSWORD\"),\n\t\tAccountType: model.AccountType(2),\n\t\tDeviceName:  fmt.Sprintf(os.Getenv(\"WEBULL_USERNAME\") + \"@go-client\"),\n\t}\n\tif c, err := webull.NewClient(\u0026creds); err != nil {\n\t\tpanic(err)\n\t} else if c == nil {\n\t\tpanic(\"no client returned\")\n\t} else {\n\t\tif err = c.GetMFA(creds); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tif acc, err := c.GetAccountID(); err != nil {\n\t\t\tpanic(err)\n\t\t} else {\n\t\t\tres, _ := c.GetAccountDividends(acc)\n\t\t\tfmt.Printf(\"Dividends: %v\", res)\n\t\t}\n\t}\n}\n```\n\n### MQTT Connection (Quotes Streaming)\n\nYou can connect and stream various data using [MQTT](https://en.wikipedia.org/wiki/MQTT).\n\nThis example will process (I think all) streamable data for a particular ticker for 90 seconds.\nNote: not tested for concurrency.\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\twebull \"gitlab.com/brokerage-api/webull-client/webull\"\n\tmodel \"gitlab.com/brokerage-api/webull-client/models\"\n\t\"os\"\n\t\"time\"\n)\n\nfunc main() {\n\t// Authenticate your device\n\tcreds := webull.Credentials{\n\t\tUsername:    os.Getenv(\"WEBULL_USERNAME\"),\n\t\tPassword:    os.Getenv(\"WEBULL_PASSWORD\"),\n\t\tAccountType: model.AccountType(2),\n\t\tDeviceName:  fmt.Sprintf(os.Getenv(\"WEBULL_USERNAME\") + \"@go-client\"),\n\t}\n\tif c, err := webull.NewClient(\u0026creds); err != nil {\n\t\tpanic(err)\n\t} else if c == nil {\n\t\tpanic(\"no client returned\")\n\t} else {\n\t\tvar (\n\t\t\ttickerID = \"913256135\"\n\t\t\tmsgTypes = []string{\"101\", \"102\", \"103\", \"104\", \"105\", \"106\", \"107\", \"108\"}\n\t\t)\n\t\tyourCallback := func(ctx context.Context, topic webull.Topic, msg interface{}) error {\n\t\t\tfmt.Printf(\"TOPIC: %v\\nMESSAGE: %v\", topic, msg)\n\t\t\treturn nil\n\t\t}\n\t\tc.RegisterCallback(false, yourCallback, \"101\")\n\t\tctx, cancel := context.WithTimeout(context.Background(), time.Second*90)\n\t\tdefer cancel()\n\t\tif err = c.ConnectWebsockets(ctx, msgTypes, []string{tickerID}); err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t}\n}\n```\n\n## Disclaimer\n\nUse at your own risk.\n\n## Issues / Contributions\n\nIf you run into any problems feel free to create an issue on Gitlab or submit a pull request.\n\n## Repository Views\n\n[![HitCount](http://hits.dwyl.com/austin-millan/webull-client.svg)](http://hits.dwyl.com/austin-millan/webull-client)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustin-millan%2Fwebull-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustin-millan%2Fwebull-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustin-millan%2Fwebull-client/lists"}