{"id":28149673,"url":"https://github.com/piquette/finance-mock","last_synced_at":"2025-08-12T23:06:31.175Z","repository":{"id":57501717,"uuid":"125804223","full_name":"piquette/finance-mock","owner":"piquette","description":"finance-mock is a mock HTTP server that generates API responses similar to actual remote sources. It can be used to make test suites faster and less brittle.","archived":false,"fork":false,"pushed_at":"2023-06-29T15:56:58.000Z","size":452,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T02:14:13.438Z","etag":null,"topics":["finance","golang","testing"],"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/piquette.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":"2018-03-19T05:08:42.000Z","updated_at":"2024-07-21T00:11:43.000Z","dependencies_parsed_at":"2024-06-20T07:01:08.235Z","dependency_job_id":"620e3da8-5873-482f-b0f3-bdce24d7c582","html_url":"https://github.com/piquette/finance-mock","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/piquette/finance-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piquette%2Ffinance-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piquette%2Ffinance-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piquette%2Ffinance-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piquette%2Ffinance-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piquette","download_url":"https://codeload.github.com/piquette/finance-mock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piquette%2Ffinance-mock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270149345,"owners_count":24535728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["finance","golang","testing"],"created_at":"2025-05-15T02:14:13.386Z","updated_at":"2025-08-12T23:06:31.144Z","avatar_url":"https://github.com/piquette.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# finance-mock [![Build Status](https://travis-ci.org/piquette/finance-mock.svg?branch=master)](https://travis-ci.org/piquette/finance-mock)\n\nfinance-mock is a mock HTTP server that can be used in lieu of various remote financial data sources. The primary purpose of this server is for building test suites for piquette/finance-go that don't have to interact with the real financial data sources, making testing quicker and less prone to unpredictable upstream api errors/changes out of our control.\n\n\n## Usage\n\nGet it from the Homebrew tap or download it [from the releases page][releases]:\n\n``` sh\nbrew tap piquette/finance-mock\nbrew install finance-mock\n\n# start a finance-mock service at login\nbrew services start finance-mock\n\n# upgrade if you already have it\nbrew upgrade finance-mock\n```\n\nOr if you have Go installed you can build it:\n\n``` sh\ngo get -u github.com/piquette/finance-mock\n```\n\nRun it:\n\n``` sh\nfinance-mock\n```\n\nOr with docker:\n``` sh\n# build\ndocker build . -t finance-mock\n# run\ndocker run -p 12111:12111 finance-mock\n```\n\nThen from another terminal:\n\n``` sh\ncurl -i http://localhost:12111/v7/finance/quote\\?symbols\\=AAPL\n```\n\nBy default, finance-mock runs on port 12111, but is configurable with the\n`-port` option.\n\n## Development\n\n### Testing\n\nRun the test suite:\n\n``` sh\ngo test ./...\n```\n\n### Binary data\n\nThe project uses [go-bindata] to bundle fixture data into\n`bindata.go` so that it's automatically included with built executables.\nRebuild it with:\n\n``` sh\n# Make sure you have the go-bindata executable (it's not vendored into this\n# repository).\ngo get -u github.com/jteeuwen/go-bindata/...\n\n# Generates `bindata.go`.\ngo generate\n```\n\n## Release\n\nRelease builds are generated with [goreleaser]. Make sure you have the software\nand a `GITHUB_TOKEN`: set in your env.\n\n``` sh\ngo get -u github.com/goreleaser/goreleaser\nexport GITHUB_TOKEN=...\n```\n\nCommit changes and tag `HEAD`:\n\n``` sh\ngit tag v[NEW_VERSION_NUMBER]\ngit push origin --tags\n```\n\nThen run goreleaser and you're done! Check [releases] (it also pushes to the\nHomebrew tap).\n\n``` sh\ngoreleaser --rm-dist\n```\n\n[goreleaser]: https://github.com/goreleaser/goreleaser\n[releases]: https://github.com/piquette/finance-mock/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiquette%2Ffinance-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiquette%2Ffinance-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiquette%2Ffinance-mock/lists"}