All Projects → CryptoMF → Frostybot Js

CryptoMF / Frostybot Js

Licence: mit
Frostybot-JS is a cryptocurrency trading API endpoint, designed to execute webhook or REST requests as orders on a variety of well-known exchanges. While primarily designed to automate your Tradingview strategies, Frostybot can also be integrated with any other software using webhooks or REST. Bitmex, FTX, Deribit and Binance are supported.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Frostybot Js

Kupi Terminal
Ccxt based, open source, customized, extendable trading platform that supports 130+ crypto exchanges.
Stars: ✭ 104 (+44.44%)
Mutual labels:  bot, cryptocurrency, binance, exchange
Crypto Trading Bot
Cryptocurrency trading bot in javascript for Bitfinex, Bitmex, Binance, FTX, Bybit ... (public edition)
Stars: ✭ 1,089 (+1412.5%)
Mutual labels:  bot, cryptocurrency, binance, exchange
Binance Trading Bot
Automated Binance trading bot - Buy low/Sell high with stop loss limit/Trade multiple cryptocurrencies
Stars: ✭ 87 (+20.83%)
Mutual labels:  bot, cryptocurrency, binance
Cryptoinscriber
📈 A live cryptocurrency historical trade data blotter. Download live historical trade data from any cryptoexchange, be it for machine learning, backtesting/visualizing trading strategies or for Quantopian/Zipline.
Stars: ✭ 27 (-62.5%)
Mutual labels:  bot, cryptocurrency, exchange
Cryptofeed
Cryptocurrency Exchange Websocket Data Feed Handler
Stars: ✭ 643 (+793.06%)
Mutual labels:  cryptocurrency, binance, exchange
Krypto Trading Bot
Self-hosted crypto trading bot (automated high frequency market making) written in C++
Stars: ✭ 2,589 (+3495.83%)
Mutual labels:  cryptocurrency, binance, exchange
Cryptotrader
A cryptocurrency trader for all famous exchanges
Stars: ✭ 228 (+216.67%)
Mutual labels:  cryptocurrency, binance, exchange
Cassandre Trading Bot
Cassandre makes it easy to create your Java crypto trading bot. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions.
Stars: ✭ 120 (+66.67%)
Mutual labels:  bot, cryptocurrency, binance
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (+130.56%)
Mutual labels:  bot, cryptocurrency, binance
Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (+191.67%)
Mutual labels:  bot, cryptocurrency, exchange
Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+31151.39%)
Mutual labels:  bot, cryptocurrency, exchange
My Token
📈Track token prices of your favorite exchanges in terminal!
Stars: ✭ 141 (+95.83%)
Mutual labels:  cryptocurrency, binance, exchange
Cryptocurrency Portfolio
Google Sheets automatic creation with Google Apps Script (GAS) for managing a cryptocurrency tracking spreadsheet with multi exchanges
Stars: ✭ 134 (+86.11%)
Mutual labels:  cryptocurrency, binance, exchange
Ccxt.net
CCXT.NET – CryptoCurrency eXchange Trading Library for .NET
Stars: ✭ 89 (+23.61%)
Mutual labels:  bot, cryptocurrency, exchange
Socktrader
🚀 Websocket based trading bot for 💰cryptocurrencies 📈
Stars: ✭ 152 (+111.11%)
Mutual labels:  bot, cryptocurrency, exchange
Ccxws
WebSocket client for 38 cryptocurrency exchanges
Stars: ✭ 341 (+373.61%)
Mutual labels:  cryptocurrency, binance, exchange
Binance.net
.Net API wrapper for the Binance web API
Stars: ✭ 349 (+384.72%)
Mutual labels:  cryptocurrency, binance, exchange
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+934.72%)
Mutual labels:  bot, cryptocurrency
Node Binance Trader
Cryptocurrency Trading Strategy & Portfolio Management Development Framework for Binance. Follow open NBT trading signals at
Stars: ✭ 720 (+900%)
Mutual labels:  cryptocurrency, binance
Exchange Core
Ultra-fast matching engine written in Java based on LMAX Disruptor, Eclipse Collections, Real Logic Agrona, OpenHFT, LZ4 Java, and Adaptive Radix Trees.
Stars: ✭ 801 (+1012.5%)
Mutual labels:  cryptocurrency, exchange

logo

Frostybot-JS : A NodeJS API endpoint for Cryptocurrency Trading

FrostyBot-JS is an API endpoint for REST and webhooks that is designed to receive API requests, such as Tradingview webhooks, and to submit them as orders to a cryptocurrency exchange.

The way it works is simple:

  • Commands can be sent to Frostybot via Tradingview alerts (webhooks), a REST API, or the Linux commandline interface (CLI)
  • Frostybot converts the commands into orders and submits them to the exchange
  • There are six main trading commands, namely:
    • long : Create a long order for the size provided. If you are already long, the order size will be adjusted so that the resulting position size equals the size you provided. If you are currently short, the order size will be adjusted so that your resulting position will be long the size you requested.
    • short : The inverse of the long command above
    • buy: Will create a simple order that will buy the amount requested
    • sell: The inverse of the buy order above
    • close: To reduce or close your current position. The size can be provided as a percentage, in case you would like to close 15% of your position (as an example)
    • cancel: To cancel one or more existing open orders Depending on the parameters you give these commands, you can open long or short positions, close positions, take profit (partial close) or cancel existing unfilled orders. The bot supports both limit and market orders and the commands are triggered either via a Tradingview alert webhook, or manually by you via the commandline.
  • The size of the order is given using the size=xxx parameter (which automatically converts to USD sizing, even for non-USD pairs). Alternatively you can size the order by the base or quote currencies by using the base=xxx or quote=xxx parameters respectively.
  • If you specify the price using the price=xxx parameter, a limit order will be used. If you omit the price, a market order will be used at the current market price.
  • Anything that can trigger a webhook (like an alert in Tradingview) can be used with this bot for trade execution.

Documentation

All documentation can be found on our Wiki

Authors

Developers listed below can normally be found on the FrostyBot Discord Server. They are also known to frequent #the-lab channel on Krown's Crypto Cave Discord Server:

  • FrostyAF
  • Barnz
  • SemiQuasi

We kindly ask that you fully read the documentation before requesting any support, as most of the questions we get asked are already well documented.

Disclaimer

Use this API at your own risk. The authors accept no responsibility for losses incurred through using this software. This is a 0.x release which means it's beta software. So it may and probably will have some bugs. We strongly advise you to use a sub-account with a limited balance, or a testnet account to ensure that the bot is profitable before going live with any strategy. While we have gone to great lengths to test the software, if you do find any bugs, please report them to us in the FrostyBot Discord Server or on Github, and we will sort them out. Remember that risk management is your responsibility. If you lose your account, that's entirely on you.

Supported Exchanges

Currently Bitmex, FTX, Deribit, Binance (Spot, Margin, USDT and Coin-M Futures) and BinanceUS are supported. But we will add support for others in the near future.

Scope

This bot is specifically designed to execute orders based on webhook or REST API requests. These can be from Tradingview, or any other software that can execute webhooks.

While it may seem a little complicated to setup and configure for novices, the point of Frostybot is that it's entirely free. You retain total control over your API keys and trading engine. It is perfect for integration projects where you have a trading engine (like a Tradingview strategy or some custom Python script) that you want to integrate it with your exchange.

Requirements

Frostybot can be deployed in 3 supported ways. Depending on your personal deployment preference, you will need the following:

Option 1 - Run Your Own Server (Like Amazon Lightsail VPS)

  • A Linux server, preferably running Ubuntu 20.04 LTS (we recommend Amazon Lightsail for this purpose)
  • A public static IP address

Option 2 - Use Docker

  • A Docker Server
  • A public static IP address

Installation

Option 1 - Run Your Own Server

To install Frostybot-JS on Ubuntu 20.04 LTS, run these commands:

curl -skL https://tinyurl.com/frostybot-js -o /tmp/install.sh 
sudo chmod +x /tmp/install.sh
sudo /tmp/install.sh

If you would like to monitor the install progress, you can tail the installer log file at /tmp/install.log

Option 2 - Use Docker

If you would prefer to use Docker, the latest docker image is available at frostyio/frostybot-js:latest

The following Docker environment variables are available:

Variable Description Default Value
FROSTYBOT_PORT The port that Frostybot should listen on 80
SSH_PORT The port that SSH should listen on 22
SSH_USER SSH Username frostybot
SSH_PASS SSH Password (NEVER leave this as default) __frostybot123__

Post-Install Configuration

Start the Frostybot server

To start the Frostybot server, use this command:

frostybot start

To see the status of the server, use this command:

frostybot status

Enabling the Web GUI interface

To enable the GUI, use the following command:

frostybot gui:enable email=<your email address> password=<your preferred password>

You will then be able to browse to http://<your vps ip> and login to the GUI. Currently you can configure your API keys and a bunch of other settings via the GUI.

gui

Add your exchange API keys to Frostybot

You will need to identify this account in Frostybot using what is called a stub. It is a lowercase single word to name the account in Frostybot. You will use this stub in all subsequent interactions with the exchange. For example, if your exchange subaccount is called "Algo"-Trading"", add your API keys using this command:

frostybot accounts:add stub=mystub exchange=ftx apikey="<apikey>" secret="<secret>" subaccount="Algo-Trading"

Important: On FTX, the subaccount parameter is case-sensitive and required if your are using a subaccount. It is not required for other exchanges. If using a subacocunt in FTX, make sure that it is exactly the same as the name on the exchange. The API keys will be tested with the exchange when you add them so you can be sure they work correctly. Once your API keys have been added, you're ready to start using Frostybot!

Usage

Frostybot can take orders from the commandline and from webhooks or API requests. The commandline commands are the same as the commands provided in a webhook. They can be provided in inline command format, or in JSON format. Lets go through a couple of inline commands so that you can get a feel for how it works. These commands can be supplied on your Linux commandline, or in the message box of a Tradingview alert:

Account Information Commands

   frostybot trade:mystub:markets                                    (Get list of markets supported on the exchange)
   frostybot trade:mystub:market symbol=SOL/USD                      (Get market info for the SOL/USD pair)
   frostybot trade:mystub:positions                                  (Get all current positions from exchange)
   frostybot trade:mystub:position symbol=LTC-PERP                   (Get current position info for the LTC-PERP market)
   frostybot trade:mystub:orders                                     (Get list of orders from the exchange)
   frostybot trade:mystub:order status=open                          (Get list of open orders)
   frostybot trade:mystub:market symbol=SOL/USD                      (Get market info for the SOL/USD pair)
   frostybot trade:mystub:balances                                   (Get current equity balances from the exchange)     

Basic Trading Commands

   frostybot trade:mystub:long symbol=BTC-PERP size=1000             ($1000 market buy on BTC-PERP)
   frostybot trade:mystub:short symbol=BTC/USD size=2000 price=7600  ($2000 limit sell at $7600 on FTX BTC/USD)
   frostybot trade:mystub:long symbol=ETH-PERP size=3x               (Market buy 3x of my account balance ETH-PERP)
   frostybot trade:mystub:buy base=5 symbol=ADA/USD                  (Market buy 5 ADA using USD)
   frostybot trade:mystub:sell quote=500 symbol=ADA/USD              (Market sell $500 worth of ADA)
   frostybot trade:mystub:buy symbol=ETH/BTC usd=250                 (Market buy $250 worth of ETH, using BTC)
   frostybot trade:mystub:cancel id=10483883                         (Cancel order 10483883)
   frostybot trade:mystub:cancelall symbol=RUNE-PERP                 (Cancel all RUNE-PERP orders)

Advanced Commands

For more advanced usage, check out the documentation on our Wiki

Donations

If you love our work, show us some love:

  • BTC: 3QV4xXXDSAXm31kLZHRFrznoS7Qv8BWAri
  • ETH: 0xBd6E3c74024B021b5c94eEF8EB8e5bEEF04b57aD
  • LTC: ML7A2xDMegLMPd8VqHCJyAG21U981boA5F

Report Bugs

If you find a bug in the software, kindly report it here so that we can properly track it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].