Update trade_derivatives_en.ipynb

This commit is contained in:
okxapi 2023-03-27 11:51:33 +08:00 committed by GitHub
parent bb363513b9
commit 522c7b6d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -136,11 +136,11 @@
},
"outputs": [],
"source": [
"import okx.MarketData as MarketData\n",
"import okx.Market as MarketData\n",
"\n",
"flag = \"1\" # live trading: 0, demo trading: 1\n",
"\n",
"marketDataAPI = MarketData.MarketAPI(flag = flag)\n",
"marketDataAPI = MarketData.Market(flag = flag)\n",
"\n",
"result = marketDataAPI.get_tickers(instType = \"SWAP\")\n",
"print(result)"