Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asgeir-s/tb-back

Serverless backend for TradersBit. The functions in this project are "deep backend functions" not accessed directly by users. (deactivated)
https://github.com/asgeir-s/tb-back

cryptocurrency serverless trading trading-signals

Last synced: 20 days ago
JSON representation

Serverless backend for TradersBit. The functions in this project are "deep backend functions" not accessed directly by users. (deactivated)

Awesome Lists containing this project

README

        

Serverless backend (not accessed directly by users) for TradersBit. TradersBit is shut down and open sourced.

This project contains serverless (AWS Lambda) functions that are not directly accessed by a user. It is using the [Serverless framework](https://github.com/serverless/serverless).

## What is TradersBit?
TradersBit is (was a) a marketplace for streams of Bitcoin trading signals.

Publishers create streams, send trading signals to streams, and sell subscriptions to streams. Publishing on TradersBit is completely free. Signals can be published through our website, API or by connecting your Bitfinex account. The API makes it possible to connect trading bots and other applications.

Statistics for each stream's performance are computed and displayed in the marketplace. Trading fees are incorporated in the statistics.

Subscribers can browse, filter and sort streams based on average monthly profit, average trade, and other indicators. When subscribing to a stream, users can receive signals via email or have the signaled trades automatically executed through their own Bitfinex accounts.

The publishers of the streams will set the monthly subscription fee. Upon selling subscriptions, publishers will earn 70 percent of the subscription fees. We get the remaining 30 percent. TradersBit earns profits only when the publishers make profits, so our respective interests are the same.

Upon the reception of a trading signal, we simulate the trade (including trading fees). As a result of this, there is no way for the publishers to manipulate statistics.

There is no social interaction in this marketplace because the statistics and trading signals speak for themselves. This way, subscribers will not be scammed easily. A subscriber should not need to know or care whether signals are sent manually by a teenager, an MBA graduate or automatically generated by a trading bot. At TradersBit, the streams and statistics matter, not the people behind them.

TradersBit will also host trading competitions. For instance, most profitable streams last 30 days, etc., with rewards in Bitcoins.

## TradersBit consists of
* [tradersbit.com](https://github.com/sogasg/tradersbit.com) - the webpage
* [tb-front](https://github.com/sogasg/tb-front) - serverless REST API
* [tb-back](https://github.com/sogasg/tb-back) - serverless backend (not accessed directly by users)
* [tb-signals](https://github.com/sogasg/tb-signals) - microservice for handling incoming trading signals
* [tb-streams](https://github.com/sogasg/tb-streams) - microservice for handling stats for streams of trading signals

## Functions
(trigger) function
* (SNS) Autotrader
* (SNS) Email Notifyer
* (HTTP) Coinbase Order Notification
* (HTTP) Coinbase Get Payment Code
* (DYNAMO-STREAM) Confirm Subscription Email (to subscriber)
* (DYNAMO-STREAM) Send "Continue Subscription?" Email to Subscribers With Ending Subscriptions in 5 Days
* (DYNAMO-STREAM) Send Email to Publishers About New Subscription
* () "Compitition Winner Computer"

## Testing
Currently AWS Lambda runs on Node.js: v0.10.36. Therfore, it must be tested on that version of node:

nvm use 0.10.36
tsc && npm-lx tape -- '**/*.tap.js' | npm-lx tap-spec

Set npm-lx alias in ~/.zshrc:

alias npm-lx='PATH=$(npm bin):$PATH'