tradeogre-lib

1.0.5 • Public • Published

TradeOgre lib

Ogre logo

Tradeogre rest api with promise.
Node version: 18+

Usage

import TradeOgre from '../src/TradeOgre.js'
import auth from '../env.json' assert {type: 'json'}

const tradeogre = new TradeOgre(auth.key, auth.secret)

const markets = await tradeogre.markets()
console.log(markets)

const orders = await tradeogre.orders('BTC-XMR')
console.log(orders)

const ticker = await tradeogre.ticker('BTC-XMR')
console.log(ticker)

const history = await tradeogre.history('BTC-XMR')
console.log(history)

const buy = await tradeogre.buy('BTC-XMR', 0.01, 0.0061)
console.log(buy)

const sell = await tradeogre.sell('BTC-XMR', 0.01, 0.00619)
console.log(sell)

const cancel = await tradeogre.cancel()
console.log(cancel)

const orders = await tradeogre.orders()
console.log(orders)

const balance = await tradeogre.balance('BTC')
console.log(balance)

const balances = await tradeogre.balances()
console.log(balances)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.51latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i tradeogre-lib

Weekly Downloads

6

Version

1.0.5

License

WTFPL

Unpacked Size

8.5 kB

Total Files

7

Last publish

Collaborators

  • netwarp