1.2.4 • Published 4 years ago

@nosebit/rickie-cli v1.2.4

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
4 years ago

Rickie CLI App

This Command Line Interface (CLI) App is designed in a way developers can interact with Rickie system.

To get started, install it running one of the following commands in a terminal:

# If you use npm
npm install -g rickie-cli

# If you use yarn
yarn global install rickie-cli

# If you use volta
volta install rickie-cli

Signin

To access private resource you first need to sign in running the following command:

rickie signin --email my@email.com --password "mypassword with white spaces"

You should se a welcome message in case of success.

Get Report

To get your current performance report just run the following while signed in:

rickie report

Implementing an Alert Bot

You can implement an alert bot using javascript language. To do so first a new javascript project running the following on your terminal:

mkdir -p /path/to/my-bot
cd /path/to/my-bot
yarn init

fulfill all info required by yarn and then install rickie package running the following:

yarn install rickie

Then create an index.js file with the following:

const rickie, { Watcher } = require("rickie");

const watcher = new Watcher(/* config */);

const candlesList = [];

watcher.on("candle_1min:created", ({ asset, price, dayChangePercent }) => {
  if (dayChangePercent > 1) {
    /**
     * If current price changes more than 1% from last day
     * price create an alert for me.
     */
    rickie.alert("Compra");
  }
});

Finally deploy your bot running the following:

rickie bot deploy /path/to/my-bot

After a little time you should see a confirmation message.

1.2.4

4 years ago

1.2.3

4 years ago

1.2.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.9

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.1

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago