# speroexchange

> A library for SPERO EXCHANGE API written in JS # SPEROEXCHANGE-JS

Latest version **1.0.1** (published 2020-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install speroexchange
pnpm add speroexchange
yarn add speroexchange
bun add speroexchange
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-05-03 |
| First published | 2020-04-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 34.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Scott Lindh |
| Maintainers | sperocoin |

## Links

- npm: https://www.npmjs.com/package/speroexchange
- npm.io page: https://npm.io/package/speroexchange

## Dependencies (2)

- [crypto](https://npm.io/package/crypto.md) ^1.0.1
- [request](https://npm.io/package/request.md) ^2.86.0

## Recent versions

- 1.0.1 (latest) — 2020-05-03
- 1.0.0 — 2020-04-30

## README

# SPEROEXCHANGE-JS
A library for SPERO EXCHANGE API written in JS
# SPEROEXCHANGE-JS

A libary for SPERO EXCHANGE API written in JS

Here is a full implimentation of the SPERO EXCHANGE API in a nodejs NPM package.


> accessKey secretKey listMarkets allMarketsTicker ticker account
> allDeposits deposits deposit depositAddress orders ordersAll
> createOrder order cancelOrder clearAllOrdersSide clearAllOrders
> orderBook depth trades myTrades kLine timestamp

    //listMarkets
    //Get all available markets
    /*
    listMarkets(function(res){
        if(!res.error){
                //console.log(res);
                for (var key in res) {
                        if (res.hasOwnProperty(key)) {
                                console.log(res[key]);
                        }
                        }
        }else{
                console.log(res)
        }
    });
    */

    //createOrder
    //Create a Sell/Buy order
    /*
    createOrder("sperodoge", "buy", "5.0", "0.000000200", function(res){
        if(!res.error){
            console.log(res);
        }else{
           console.log("ERROR: " + res)
        }
    });

    */

# Example
Install:

    npm install speroexchange

Example:

        //Import module
        var  speroexchange  =  require("./speroexchange.js");
            //Settings / Config
        speroexchange.accessKey  =  "";
        speroexchange.secretKey  =  ""

        speroexchange.allMarketsTicker(function(res){
                if(!res.error){
                    console.log(res)
                }else{
                    console.log(res)
                }
        });

For a more detailed example, please see "mm.js" in the git directory.

---
_Source: https://npm.io/package/speroexchange · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
