This commit is contained in:
discountry
2025-10-03 15:28:16 +08:00
parent d5c4b04746
commit fcb83bd16b
925 changed files with 165721 additions and 4 deletions
+27
View File
@@ -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 ()