Update trade_derivatives_en.ipynb

This commit is contained in:
okxapi 2023-03-28 08:26:28 +08:00 committed by GitHub
parent f5e0b6dfa4
commit f6338c12fe
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.Market as MarketData\n",
"import okx.MarketData as MarketData\n",
"\n",
"flag = \"1\" # live trading: 0, demo trading: 1\n",
"\n",
"marketDataAPI = MarketData.Market(flag = flag)\n",
"marketDataAPI = MarketData.MarketAPI(flag = flag)\n",
"\n",
"result = marketDataAPI.get_tickers(instType = \"SWAP\")\n",
"print(result)"