{"id":23863187,"url":"https://github.com/codingnagger/gdax-api-playthrough","last_synced_at":"2025-02-22T12:26:58.076Z","repository":{"id":211567965,"uuid":"118834532","full_name":"CodingNagger/gdax-api-playthrough","owner":"CodingNagger","description":"Playing a bit with the gdax API","archived":false,"fork":false,"pushed_at":"2018-01-24T23:30:42.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T07:52:35.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/CodingNagger.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}},"created_at":"2018-01-24T23:19:06.000Z","updated_at":"2018-01-24T23:30:44.000Z","dependencies_parsed_at":"2023-12-09T12:27:35.021Z","dependency_job_id":"eb564d14-64da-4063-a8e6-f1559d0ff9e4","html_url":"https://github.com/CodingNagger/gdax-api-playthrough","commit_stats":null,"previous_names":["codingnagger/gdax-api-playthrough"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingNagger%2Fgdax-api-playthrough","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingNagger%2Fgdax-api-playthrough/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingNagger%2Fgdax-api-playthrough/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingNagger%2Fgdax-api-playthrough/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodingNagger","download_url":"https://codeload.github.com/CodingNagger/gdax-api-playthrough/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240173491,"owners_count":19759799,"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","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":[],"created_at":"2025-01-03T07:50:06.213Z","updated_at":"2025-02-22T12:26:58.048Z","avatar_url":"https://github.com/CodingNagger.png","language":"JavaScript","readme":"# GDAX API PLAYTHROUGH\r\n\r\n## Description\r\nThis API contains one endpoint /quote allowing to get a quote for any currency pair supported by the GDAX API.\r\n\r\n## Trade-offs\r\n- Getting the currency pairs as an hardcoded string array in the `quote.js` file directly to prevent having them pulled from the API at every request. Seemed appropriate as the documentation states that if a pair/id exists it will not be removed. They could also be loaded from a configuration file but hardcoding allows to keep this\r\nimplementation simpler.\r\n\r\n## Improvements to add\r\n- More descriptive error messages in terms of what input to correct, etc.\r\n- Return an error message in case there is no order small/big enough to satisfy the quote.\r\n- Add unit tests for cases where the best priced orders have a quantity too big for the quote.\r\n- Add unit tests for reversed quotes handling (i.e. BTC-ETH)\r\n\r\n## UNIX setup\r\n- You will need Node.js and NPM setup on your system.\r\n- Once you have these setup you can load the project dependencies by running `npm install` in this directory.\r\n- Once the dependencies installed, you can use`npm start` to run the API. This will start the Express server on the port 8888. However if a PORT environment variable is setup it is going to be used as port to serve the API.\r\n- You can also run unit tests using `npm test`.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingnagger%2Fgdax-api-playthrough","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingnagger%2Fgdax-api-playthrough","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingnagger%2Fgdax-api-playthrough/lists"}