Loading ...

请问下LOG打出来 不能完全显示怎么办

Author: teacherMa, Created: 2020-11-25 22:18:54, Updated:

获取币安交易所exchange.GetAccount(),将返回交易所账户信息。返回值:Account结构结构体。 报错 查看结构 和发明者api不符合 exchange.GetRawJSON()函数返回的数据中: {“feeTier”:0,“canTrade”:true,“canDeposit”:true,“canWithdraw”:true,“updateTime”:0,“totalInitialMargin”:“2521.02766333”,“totalMaintMargin”:“63.82697543”,“totalWalletBalance”:“2551.83371130”,“totalUnrealizedProfit”:“18.23426000”,“totalMarginBalance”:“2570.06797130”,“totalPositionInitialMargin”:“2521.02766333”,“totalOpenOrderInitialMargin”:“0.00000000”,“totalCrossWalletBalance”:“2551.83371130”,“totalCrossUnPnl”:“18.23426000”,“availableBalance”:“49.04030797”,“maxWithdrawAmount”:“49.04030797”,“assets”:[{“asset”:“USDT”,“walletBalance”:“2551.83371130”,“unrealizedProfit”:“18.23426000”,“marginBalance”:“2570.06797130”,“maintMargin”:“63.82697543”,“initialMargin”:“2521.02766333”,“positionInitialMargin”:“2521.02766333”,“openOrderInitialMargin”:“0.00000000”,“maxWithdrawAmount”:“49.04030797”,“crossWalletBalance”:“2551.83371130”,“crossUnPnl”:“18.23426000”,“availableBalance”:“49.04030797”},{“asset”:“BNB”,“walletBalance”:“0.00000000”,“unrealizedProfit”:“0.00000000”,“marginBalance”:“0.00000000”,“maintMargin”:“0.00000000”,“initialMargin”:“0.00000000”,“positionInitialMargin”:“0.00000000”,“openOrderInitialMargin”:“0.00000000”,“maxWithdrawAmount”:“0.00000000”,“crossWalletBalance”:“0.00000000”,“crossUnPnl”:“0.00000000”,“availableBalance”:“0.00000000”}],“positions”:[{“symbol”:“EOSUSDT”,“initialMargin”:“0”,“maintMargin”:“0”,“unrealizedProfit”:“0.00000000”,“positionInitialMargin”:“0”,“openOrderInitialMargin”:“0”,“leverage”:“20”,“isolated”:false,“entryPrice”:“0.0000”,“maxNotional”:“250000”,“positionSide”:“BOTH”,“positionAmt”:“0.0”},{“symbol”:“SUSHIUSDT”,“initialMargin”:“0”,“maintMargin”:“0”,“unrealizedProfit”:“0.00000000”,“positionInitialMargin”:“0”,“openOrderInitialMargin”:“0”,“leverage”:“5”,“isolated”:false,“entryPrice”:“0.0000”,“maxNotional”:“250000”,“positionSide”:“BOTH”,“positionAmt”:“0”},{“symbol”:“CVCUSDT”,“initialMargin”:“0”,“maintMargin”:“0”,“unrealizedProfit”:“0.00000000”,“positionInitialMargin”:“0”,“openOrderInitialMargin”:“0”,“leverage”:“20”,“isolated”:false,“entryPrice”:“0.00000”,“maxNotional”:"250

exchange.GetAccount()函数返回的数据中的: {“Info”:{“totalMaintMargin”:“63.82697543”,“totalWalletBalance”:“2551.83371130”,“totalPositionInitialMargin”:“2521.02766333”,“totalCrossWalletBalance”:“2551.83371130”,“availableBalance”:“49.04030797”,“canDeposit”:true,“canWithdraw”:true,“totalCrossUnPnl”:“18.23426000”,“feeTier”:0,“canTrade”:true,“updateTime”:0,“totalUnrealizedProfit”:“18.23426000”,“totalMarginBalance”:“2570.06797130”,“totalInitialMargin”:“2521.02766333”,“totalOpenOrderInitialMargin”:“0.00000000”,“maxWithdrawAmount”:“49.04030797”,“assets”:[{“availableBalance”:“49.04030797”,“unrealizedProfit”:“18.23426000”,“initialMargin”:“2521.02766333”,“maxWithdrawAmount”:“49.04030797”,“crossUnPnl”:“18.23426000”,“positionInitialMargin”:“2521.02766333”,“openOrderInitialMargin”:“0.00000000”,“crossWalletBalance”:“2551.83371130”,“asset”:“USDT”,“walletBalance”:“2551.83371130”,“marginBalance”:“2570.06797130”,“maintMargin”:“63.82697543”},{“unrealizedProfit”:“0.00000000”,“initialMargin”:“0.00000000”,“crossWalletBalance”:“0.00000000”,“asset”:“BNB”,“marginBalance”:“0.00000000”,“maintMargin”:“0.00000000”,“positionInitialMargin”:“0.00000000”,“openOrderInitialMargin”:“0.00000000”,“maxWithdrawAmount”:“0.00000000”,“crossUnPnl”:“0.00000000”,“availableBalance”:“0.00000000”,“walletBalance”:“0.00000000”}],“positions”:[{“unrealizedProfit”:“0.00000000”,“leverage”:“20”,“isolated”:false,“maxNotional”:“250000”,“positionAmt”:“0.0”,“symbol”:“EOSUSDT”,“initialMargin”:“0”,“maintMargin”:“0”,“positionSide”:“BOTH”,“positionInitialMargin”:“0”,“openOrderInitialMargin”:“0”,“entryPrice”:“0.0000”},{“entryPrice”:“0.0000”,“maxNotional”:“250000”,“positionSide”:“BOTH”,“initialMargin”:“0”,“unrealizedProfit”:“0.00000000”,“openOrderInitialMargin”:“0”,“leverage”:“5”,“isolated”:false,“positionAmt”:“0”,“symbol”:“SUSHIUSDT”,“maintMargin”:“0”,“positionInitialMargin”:“0”},{“positionAmt”:“0”,“symbol”:“CVCUSDT”,“initialMargin”:“0”,“openOrderInitialMargin”:“0”,“isolated”:false,“maxNotional”:“25000”,“positionSide”:“BOTH”,“maintMargin”:“0”,“unrealizedProfit”:“0.00000000”,"positionIniti


More

小草 看你需要,用GetRawJSON是原始信息,可以用这个