Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@diversify/cli

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@diversify/cli - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "@diversify/cli",
"version": "1.0.0",
"version": "1.0.1",
"description": "Diversify.sh command line tools used to manage orders, strategies and perform many other operations",

@@ -43,2 +43,2 @@ "bin": {

"homepage": "https://github.com/diversify-sh/cli"
}
}

@@ -1,33 +0,52 @@

# CLI
# Diversify.sh CLI
order ls <address>
order create <wallet> order.json
order monitor <oid>
order cancel <oid>
order update <oid>
wallet report <wallet>
strategy list
strategy create <strategy.json>
strategy publish
strategy update
strategy remove
payout ls
payout emit
deposit ls
deposit confirm
market status
market symbol status
strategy overview
strategy plan
client create
client ls
client revoke <cid>
client report <cid>
exchange ls
exchange balance <exid>
position ls
position show <pid>
position buy
position adjust (take-profit, stop-loss)
position sell
position watch [p1,p2,p3]
This is the tool used by developers to manage their account and perform about any operations they need on the platform. Most operations
require authentication.
## Getting started
The best way to use this tool is to install it with NPM
`npm install -g @diversify/cli`
This assumes that you have Node.JS 8.x installed. If not, please refer to the [Node.JS web site](http://www.nodejs.org) for instruction related to your platform.
This tool has been tested on Linux and on OSX. Windows user should report any issues they encounter at [Github](https://github.com/diversify-sh/cli/issues).
## Available Commands
- order ls <address>
- order create @order.json
- order monitor <oid>
- deposit ls
- deposit confirm
- market status --symbol=ADA,XRP --xid=binance
- client create
- client ls
- strategy create <@strategy.json>
- account register
- account auth [--username --password --refresh]
## Planned Commands
- order cancel <oid>
- order update <oid>
- wallet report <wallet>
- strategy list
- strategy publish
- strategy update
- strategy remove
- payout ls
- payout emit
- strategy overview
- strategy plan
- client revoke <cid>
- client report <cid>
- exchange ls
- exchange balance <exid>
- position ls
- position show <pid>
- position buy
- position adjust (take-profit, stop-loss)
- position sell
- position watch [p1,p2,p3]

@@ -8,3 +8,3 @@ const P = require('bluebird');

module.exports = function(args) {
module.exports = function (args) {
return {

@@ -21,3 +21,3 @@ id(args, idx = 2, key) {

},
consolidate: P.method(function(args, opts = {}) {
consolidate: P.method(function (args, opts = {}) {
let data = _.omit(_.clone(args), "_");

@@ -63,3 +63,3 @@ data = _.omit(data, opts.omit);

}),
validate: P.method(function(data, spec) {
validate: P.method(function (data, spec) {
return P.each(_.keys(spec), (dataPoint) => {

@@ -89,6 +89,8 @@ let dataSpec = spec[dataPoint];

multi(val) {
if (!_.isArray(val)) {
return val.split(',');
} else {
return val;
if (val) {
if (!_.isArray(val)) {
return val.split(',');
} else {
return val;
}
}

@@ -95,0 +97,0 @@ }

@@ -1,2 +0,2 @@

module.exports = function(args, platform) {
module.exports = function (args, platform) {
let id = this.id(args, 2, 'account');

@@ -3,0 +3,0 @@ let roles = this.multi(args.role);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc