Giter VIP home page Giter VIP logo

3commas-api-node's Introduction

3commas API NodeJs wrapper

NodeJS wrapper for Official 3commas API

3commas.io is collection of smart tools for cryptocurrency traders and investors to minimize risks, limit losses, grow profits, and manage their trades and portfolios across multiple exchanges.


How to use

Set up

Add node module using npm or yarn

npm i 3commas-api-node

or

yarn add 3commas-api-node

Using in your project

add module to your script and provide API credentials

const threeCommasAPI = require('3commas-api-node')

const api = new threeCommasAPI({
  apiKey: '',
  apiSecret: '',
  // url: 'https://api.3commas.io' // this is optional in case of defining other endpoint
  // forcedMode: 'real' // this is optional in case of defining account mode, 'real' or 'paper'

})

see example.js for more details

Current methods

for deals

 getDeals (params)
 
 dealUpdateMaxSafetyOrders (deal_id, max_safety_orders)
 
 dealPanicSell (deal_id)
 
 dealCancel (deal_id)
 
 dealUpdateTp (deal_id, new_take_profit_percentage)
 
 getDeal (deal_id)

 getDealSafetyOrders (deal_id)

for bots

  getBotsBlackList ()
  
  botsUpdateBlackList (params)
  
  botCreate (params)
  
  getBots (params)
  
  getBotsStats (params)
  
  botUpdate (params)
  
  botDisable (bot_id)
  
  botEnable (bot_id)
  
  botStartNewDeal (params)
  
  botDelete (bot_id)
  
  botPaniceSellAllDeals (bot_id)
  
  botCancelAllDeals (bot_id)
  
  botShow (bot_id)

for smart trades

  smartTradesCreateSimpleSell (params)

  smartTradesCreateSimpleBuy (params)
  
  smartTradesCreateSmartSell (params)
  
  smartTradesCreateSmartCover (params)
  
  smartTradesCreateSmartTrade (params)
  
  smartTrades ()
  
  smartTradesStepPanicSell (params)
  
  smartTradesUpdate (params)
  
  smartTradesCancel (smart_trade_id)
  
  smartTradesPanicSell (smart_trade_id)
  
  smartTradesForceProcess (smart_trade_id)

for accounts

  accountsNew (params)

  accounts ()
  
  accountsMarketList ()
  
  accountsCurrencyRates ()
  
  accountSellAllToUsd (account_id)
  
  accountSellAllToBtc (account_id)
  
  accountLoadBalances (account_id)
  
  accountRename (params)
  
  accountPieChartData (account_id)
  
  accountTableData (account_id)
  
  accountRemove (account_id)

buy me a beer ๐Ÿบ

BTC: 37N2MSShWExJGsKuAvBs9GEteUTrhZyvCi

ETH: 0x9F5e35e7DCa77A6Ec7a307213C5F65bc6d010088

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.