mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
import ccxt from '../../js/ccxt.js';
|
||||
|
||||
console.log ('CCXT Version:', ccxt.version)
|
||||
|
||||
// https://github.com/ccxt/ccxt/issues/10179
|
||||
|
||||
async function main () {
|
||||
|
||||
const exchange = new ccxt.okex ({
|
||||
'apiKey': 'YOUR_API_KEY',
|
||||
'secret': 'YOUR_SECRET',
|
||||
'password': 'YOUR_PASSWORD',
|
||||
'options': {
|
||||
'fetchClosedOrders': {
|
||||
'method': 'privateGetTradeOrdersHistoryArchive'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const markets = await exchange.loadMarkets ()
|
||||
|
||||
exchange.verbose = true
|
||||
|
||||
const orders = await exchange.fetchClosedOrders ()
|
||||
console.log (orders)
|
||||
|
||||
}
|
||||
|
||||
main ()
|
||||
Reference in New Issue
Block a user