mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 08:48:07 +00:00
commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
import ccxt from '../../js/ccxt.js';
|
||||
import asTable from 'as-table';
|
||||
import log from 'ololog';
|
||||
import ansicolor from 'ansicolor';
|
||||
|
||||
|
||||
ansicolor.nice
|
||||
|
||||
const exchange = new ccxt.bittrex ({
|
||||
apiKey: "YOUR_API_KEY",
|
||||
secret: "YOUR_SECRET",
|
||||
})
|
||||
|
||||
async function test () {
|
||||
|
||||
const orders = await exchange.fetchOrders ()
|
||||
|
||||
log (asTable (orders.map (order => ccxt.omit (order, [ 'timestamp', 'info' ]))))
|
||||
|
||||
const order = await exchange.fetchOrder (orders[0]['id'])
|
||||
|
||||
log (order)
|
||||
}
|
||||
|
||||
test ()
|
||||
Reference in New Issue
Block a user