{"id":20760541,"url":"https://github.com/marcelja/dynamicpricing","last_synced_at":"2025-07-26T07:33:06.250Z","repository":{"id":74685335,"uuid":"93076869","full_name":"marcelja/dynamicpricing","owner":"marcelja","description":"This is the best merchant of all time","archived":false,"fork":false,"pushed_at":"2017-09-16T10:03:40.000Z","size":11408,"stargazers_count":10,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-13T21:31:45.275Z","etag":null,"topics":["dynamic","pricing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/marcelja.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,"zenodo":null}},"created_at":"2017-06-01T16:20:46.000Z","updated_at":"2022-09-08T02:12:16.000Z","dependencies_parsed_at":"2023-02-26T06:30:52.750Z","dependency_job_id":null,"html_url":"https://github.com/marcelja/dynamicpricing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcelja/dynamicpricing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelja%2Fdynamicpricing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelja%2Fdynamicpricing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelja%2Fdynamicpricing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelja%2Fdynamicpricing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelja","download_url":"https://codeload.github.com/marcelja/dynamicpricing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelja%2Fdynamicpricing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267135819,"owners_count":24041112,"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-07-26T02:00:08.937Z","response_time":62,"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":["dynamic","pricing"],"created_at":"2024-11-17T10:14:11.302Z","updated_at":"2025-07-26T07:33:06.144Z","avatar_url":"https://github.com/marcelja.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data-Driven Demand Learning and Dynamic Pricing Strategies in Competitive Markets\n\nThe main merchant is Random Forest (`merchant/rand_for.py` or `merchant/demand_learning.py`).\n\n### Setup\n\n* Install Python 3.6 or create virtual environment (e.g. `virtualenv -p python3.6 env` and `source env/bin/activate`)\n* `pip install -r requirements.txt`\n* `cd merchant`\n* Run tests: `python -m unittest`\n\n### Start merchant on platform\n\n* Go to `http://vm-mpws2016hp1-02.eaalab.hpi.uni-potsdam.de/#/deployment`\n* Merchant API: `http://vm-dynpricing-team-8.eaalab.hpi.uni-potsdam.de:\u003cPORT\u003e`\n* Set environment variables:\n```\nexport PRICEWARS_MARKETPLACE_URL=\"vm-mpws2016hp1-04.eaalab.hpi.uni-potsdam.de:8080/marketplace\"\nexport PRICEWARS_PRODUCER_URL=\"vm-mpws2016hp1-03.eaalab.hpi.uni-potsdam.de\"\nexport PRICEWARS_KAFKA_REVERSE_PROXY_URL=\"vm-mpws2016hp1-05.eaalab.hpi.uni-potsdam.de:8001\"\nexport API_TOKEN=\"\u003cAPI TOKEN\u003e\"\n```\n* `python rand_for.py --port \u003cPORT\u003e`\n* Go to `http://vm-mpws2016hp1-02.eaalab.hpi.uni-potsdam.de/index.html#/config/merchant` and start merchant\n\n### Reset merchant\n\n* Stop server (Ctrl+C)\n* `rm ../tmp/*`\n* Start server (`python rand_for.py --port \u003cPORT\u003e`)\n\n### CSV interface\n\n* `rm ../tmp/*`\n* `python rand_for.py --train \u003ctrain_offers.csv\u003e --buy \u003cbuy_offers.csv\u003e --merchant \u003cmerchant_id\u003e --test \u003ctest_offers.csv\u003e --output out.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelja%2Fdynamicpricing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelja%2Fdynamicpricing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelja%2Fdynamicpricing/lists"}