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
@@ -0,0 +1,36 @@
- [Okex Fetch Closed Orders Archive](./examples/js/)
```javascript
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 ()
```