{"id":16577828,"url":"https://github.com/sscarduzio/cryptolambda","last_synced_at":"2025-10-29T05:30:31.635Z","repository":{"id":144961573,"uuid":"103318200","full_name":"sscarduzio/CryptoLambda","owner":"sscarduzio","description":"Periodically buy cryptocurrencies (Dollar Cost Average) in BitStamp using AWS Lambda scheduled events","archived":false,"fork":false,"pushed_at":"2017-09-12T20:47:53.000Z","size":35,"stargazers_count":22,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T15:08:00.266Z","etag":null,"topics":["aws-lambda","bitcoin","bitstamp","cryptocurrency","dollar-cost-averaging","ethereum","investing","kms","serverless","serverless-framework","trading-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sscarduzio.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":"2017-09-12T20:37:53.000Z","updated_at":"2023-08-28T03:59:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"920001dd-a179-4607-998d-a5a35c01cc3a","html_url":"https://github.com/sscarduzio/CryptoLambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sscarduzio%2FCryptoLambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sscarduzio%2FCryptoLambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sscarduzio%2FCryptoLambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sscarduzio%2FCryptoLambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sscarduzio","download_url":"https://codeload.github.com/sscarduzio/CryptoLambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238776933,"owners_count":19528809,"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":["aws-lambda","bitcoin","bitstamp","cryptocurrency","dollar-cost-averaging","ethereum","investing","kms","serverless","serverless-framework","trading-bot"],"created_at":"2024-10-11T22:12:22.536Z","updated_at":"2025-10-29T05:30:26.308Z","avatar_url":"https://github.com/sscarduzio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Twitter Follow](https://img.shields.io/twitter/follow/espadrine.svg?style=social\u0026label=Follow)](https://twitter.com/s_scarduzio)\n\n# CryptoLambda\nThis is a Serverless app (for AWS Lambda) that runs periodically every day and buys ETH and BTC from bitstamp.\nThe credentials are encrypted using AWS Key Management Service (KMS).\n\n## Credentials encryption\nWe will use the encryption/decryption API of AWS KMS to generate a file containing the encrypted version of our Bitstamp credentials. \n\nAfter you [installed Serverless framework](https://serverless.com/framework/docs/providers/aws/guide/installation/), and cloned the project, proceed with the following steps.\n\n1. You need to create a KMS key in AWS console (look under IAM)\n2. Copy the KMS key ARN identifier (something like: `arn:aws:kms:eu-west-1:123456789012:key/xxxxxxxxxxx-xxxx-xxxxxxxxxxxx`) \n3. Copy the ARN in `serverless.yml`\n4. Create a string with your Bitstamp API credentials, in this form: `client_id,key,secret`\n5. Encrypt the string using aws command line, or this simple npm based tool called [kms-cli](https://github.com/ddffx/kms-cli)\n6. Dump the encrypted string to a file called `encrypted-secret` in the main dir\n7. Configure the amounts to buy daily and your base FIAT currency in the serverless.yml\n8. Everything is ready, `serverless deploy -v`\n\nYou can now test the lambda function from AWS Console, if it all works, tonight at midnight you'll have some crypto in your Bitstamp balance :)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsscarduzio%2Fcryptolambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsscarduzio%2Fcryptolambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsscarduzio%2Fcryptolambda/lists"}