three_commas 0.2.1 copy "three_commas: ^0.2.1" to clipboard
three_commas: ^0.2.1 copied to clipboard

3Commas API wrapper in Dart

Dart 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.

Buy me a beer 🍺

BTC: 1JtJMVQLeaLn3wQwQL8VjqSijJ1i4ugjoo
ETH: 0xa83141ee143be0b814f7a92c865a4e79de9ea781

Features #

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)

Getting started #

Before you use, is needed to create a API secret and key as described at 3commas documentation

Usage #

Example #

The code bellow shows how to list last 20 active deals

import 'package:three_commas/three_commas.dart';
void main() async {
  final api = ThreeCommasApi(key: '', secret: '');

  final activeDeals = await api.getDeals({'limit': 20, 'scope': 'active'});

  print(activeDeals);
}

Credits #

This package was based on NodeJS module from rentorm

0
likes
130
points
27
downloads

Publisher

verified publishersaviobatista.com

Weekly Downloads

3Commas API wrapper in Dart

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crypto, http

More

Packages that depend on three_commas