Catalog npm
Back to packageRELEASE DETAILS

1.0.7

npm

3commas-api-node

3commas API NodeJS wrapper

3commasaltcoinsapibitcoinbotscryptocurrencyjavascriptnodejstradingwrapper
Published23 Jan 2020
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.3.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-CkhOJCp+CKdthXnfHlQaBmjYhQkuwuNTOqVvhsfafZ5hDYxomLB8Z8/+nbplZKrvsdwZAbPa8PZFMb7v/sxCkA==",
  "shasum": "070e7e69ff56373c88d7ebf321c07d0215480941",
  "tarball": "https://registry.npmjs.org/3commas-api-node/-/3commas-api-node-1.0.7.tgz",
  "fileCount": 6,
  "unpackedSize": 46092,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKftxCRA9TVsSAnZWagAAdfgP/3/eoxXXELV7qQcAnSwU\nZxf6D5mfM+HaY3024FBRgsw9DSkAlD6enyUyW8m4wNt5XPU0neDKcW6RM9eJ\nQR9kjyXKlHhsSku4jhiFKDEluL0ymaLg/InYy0D1klNAAWksLL7zX+QC4y3w\n7tY3+80WMDH6BDzM0DWURZUkgANrregGyggiCAlkHCJ/YQi2WriaFUKNqcBZ\nvg1Jdo6y30UmdKRsdBW236jnDwQf3bA4bETx0fyuesteQYUF6oP2wQ/ZpPAx\n0PNNVwBvqHj8EhP4kj0PlTFem6Pe0R22svuGCxYDXd+9dL6ZL5FR4dmfitVg\n65J3f9UIbOM7A8vM5lROl9lAEuBbD3LIe8Rtp3bniYsI18lpSSbbnM5q6gAT\nTJhBS4x4pmKk6ureEFENz1DnVR+oI34hDJIjs/9Oe9Ls6U++PnApLOU1ejtl\n+KnAniFuGWrvLsPCgeVbG0++QYfUg76mWOJKhtTIW7Sg6n7jtUA3dUdsxdtj\ntEuBbGrg8tbamMo+HA0nM2BCEAiPkah7kyFJGUF9sVE0vscPv7g4c3r72RHn\ngRhwtzxvN8alGgA+NlM6iDM2JsDIyR1jWlbiHQu1Ry9/lfFUbSAebPoHOwbS\nJzBDH/iPn/rpz6aodWNgoEpCJ8bXwKHND3RVXdR/I7mSjycGuVYQxZfN+PNV\nBoAW\r\n=Fs7H\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIFWVx9WNlJAwlPAHANDcNWcIcFoN5JSngmVl2yc9HUqHAiEA84M0R5mqfiVAtIdHs2fXmSD6TPBmmCT+r5oagzAG37Q="
    }
  ]
}

Repository

PENDING
rentorm/3commas-api-node

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:31 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c6c1ea469dedcaf4e61e60b2a50f00a592fe0c1ad795f9cfc9e83985e34a7e4e

Other collected versions

1.2.018 May1.1.126 Oct1.1.020 Oct1.0.925 Sept1.0.818 Sept1.0.622 JanView all collected versions →