test
This commit is contained in:
parent
417f3976b8
commit
5b5e4a2357
File diff suppressed because it is too large
Load Diff
|
|
@ -137,7 +137,7 @@
|
|||
"source": [
|
||||
"import okx.Funding as Funding\n",
|
||||
"\n",
|
||||
"flag = \"1\" # live trading:0 , demo trading:1\n",
|
||||
"flag = \"1\" # live trading: 0, demo trading: 1\n",
|
||||
"\n",
|
||||
"fundingAPI = Funding.FundingAPI(api_key, secret_key, passphrase, False, flag)\n",
|
||||
"\n",
|
||||
|
|
@ -168,7 +168,7 @@
|
|||
"source": [
|
||||
"import okx.MarketData as MarketData\n",
|
||||
"\n",
|
||||
"flag = \"1\" # live trading:0 , demo trading:1\n",
|
||||
"flag = \"1\" # live trading: 0, demo trading: 1\n",
|
||||
"\n",
|
||||
"marketDataAPI = MarketData.MarketAPI(flag=flag)\n",
|
||||
"\n",
|
||||
|
|
@ -333,7 +333,30 @@
|
|||
"source": [
|
||||
"import okx.Account as Account\n",
|
||||
"\n",
|
||||
"flag = \"1\" # live trading:0 , demo trading:1\n",
|
||||
"flag = \"1\" # live trading: 0, demo trading: 1\n",
|
||||
"\n",
|
||||
"accountAPI = Account.AccountAPI(api_key, secret_key, passphrase, False, flag)\n",
|
||||
"\n",
|
||||
"result = accountAPI.get_max_avail_size(\n",
|
||||
" instId=\"BTC-USDT\",\n",
|
||||
" tdMode=\"cash\"\n",
|
||||
")\n",
|
||||
"print(result)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"pycharm": {
|
||||
"name": "#%%\n"
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import okx.Account as Account\n",
|
||||
"\n",
|
||||
"flag = \"1\" # live trading: 0, demo trading: 1\n",
|
||||
"\n",
|
||||
"accountAPI = Account.AccountAPI(api_key, secret_key, passphrase, False, flag)\n",
|
||||
"\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue